feat: add gtetrinet

This commit is contained in:
oupala 2020-03-20 23:00:35 +01:00 committed by Romain Du Chaffaut
parent a20a544be1
commit e001d02c22
2 changed files with 37 additions and 0 deletions

28
gtetrinet/Dockerfile Normal file
View File

@ -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 <jess@linux.com>"
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
gtetrinet/dbus.conf Normal file
View File

@ -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>