mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-27 04:16:45 +01:00
feat: add gtetrinet
This commit is contained in:
parent
a20a544be1
commit
e001d02c22
28
gtetrinet/Dockerfile
Normal file
28
gtetrinet/Dockerfile
Normal 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
9
gtetrinet/dbus.conf
Normal 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>
|
Loading…
Reference in New Issue
Block a user