-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |