From e001d02c22855a72cbb11c8ad575561595dc4309 Mon Sep 17 00:00:00 2001 From: oupala Date: Fri, 20 Mar 2020 23:00:35 +0100 Subject: [PATCH] feat: add gtetrinet --- gtetrinet/Dockerfile | 28 ++++++++++++++++++++++++++++ gtetrinet/dbus.conf | 9 +++++++++ 2 files changed, 37 insertions(+) create mode 100644 gtetrinet/Dockerfile create mode 100644 gtetrinet/dbus.conf diff --git a/gtetrinet/Dockerfile b/gtetrinet/Dockerfile new file mode 100644 index 0000000..4035338 --- /dev/null +++ b/gtetrinet/Dockerfile @@ -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 " + +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"] diff --git a/gtetrinet/dbus.conf b/gtetrinet/dbus.conf new file mode 100644 index 0000000..b061e1f --- /dev/null +++ b/gtetrinet/dbus.conf @@ -0,0 +1,9 @@ + + + + tcp:host=localhost,bind=*,port=6667,family=ipv4 + unix:tmpdir=/tmp + ANONYMOUS + +