Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add gtetrinet #523

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions gtetrinet/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Run gtetrinet in a container
#
# xhost +"local:docker@" && \
# docker run -it \
# -v /tmp/.X11-unix:/tmp/.X11-unix \ # mount the X11 socket
# -e DISPLAY=$DISPLAY \
# --name gtetrinet \
# jessfraz/gtetrinet

FROM debian:stretch-slim
LABEL maintainer "Jessie Frazelle <[email protected]>"

RUN apt-get update && apt-get install -y \
dbus \
gtetrinet \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/*

COPY dbus.conf /etc/dbus-1/session.d/

# Run gtetrinet as non privileged user
ENV HOME /home/gtetrinet
RUN useradd --create-home --home-dir $HOME gtetrinet \
&& chown -R gtetrinet:gtetrinet $HOME
USER gtetrinet

# Autorun gtetrinet
ENTRYPOINT ["dbus-run-session", "/usr/games/gtetrinet"]
9 changes: 9 additions & 0 deletions gtetrinet/dbus.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-Bus Bus Configuration 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">

<busconfig>
<listen>tcp:host=localhost,bind=*,port=6667,family=ipv4</listen>
<listen>unix:tmpdir=/tmp</listen>
<auth>ANONYMOUS</auth>
<allow_anonymous/>
</busconfig>