Skip to content

Commit

Permalink
feat: add gtetrinet
Browse files Browse the repository at this point in the history
  • Loading branch information
oupala committed Jun 18, 2021
1 parent a20a544 commit e001d02
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
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>

0 comments on commit e001d02

Please sign in to comment.