From f7bdb46c3f8a44af2a4f10f2ed1444999cbe714f Mon Sep 17 00:00:00 2001 From: Paul Scheunemann Date: Tue, 29 Aug 2017 23:15:37 +0200 Subject: [PATCH] add compose file --- Dockerfile | 2 +- bin/entrypoint.sh | 6 ++++++ docker-compose.yml | 19 +++++++++++++++++++ 3 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 docker-compose.yml diff --git a/Dockerfile b/Dockerfile index 54a6b61..011075b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,5 +6,5 @@ ADD bin/entrypoint.sh /entrypoint.sh RUN chmod +xr /entrypoint.sh USER steam -ENTRYPOINT ["./entrypoint.sh"] +ENTRYPOINT ["/entrypoint.sh"] CMD ["+maxplayers", "16", "+hostname", "Zom.bi TTT", "+gamemode", "terrortown", "+map", "gm_construct"] diff --git a/bin/entrypoint.sh b/bin/entrypoint.sh index 25b58db..a6d812c 100644 --- a/bin/entrypoint.sh +++ b/bin/entrypoint.sh @@ -29,6 +29,12 @@ else echo "Skipped game installation." fi +cd $installdir/garrysmod/addons + +# Install ULX +git clone https://github.com/TeamUlysses/ulx.git +git clone https://github.com/TeamUlysses/ulib.git + # run the next commands from the installdir cd $installdir diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..c1b942e --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,19 @@ +version: '2' + +services: + gmod: + build: . + ports: + - 27015:27015/udp + - 27015:27015 + volumes: + - /data/steam-games/:/home/steam/games/ +# - /data/gmod/maps/:/home/steam/games/garrysmod/garrysmod/maps/ +# - /data/gmod/server.cfg:/home/steam/games/garrysmod/garrysmod/cfg/server.cfg +# - /data/gmod/motd.txt:/home/steam/games/garrysmod/garrysmod/addons/ulx/ulx_motd.txt +# - /data/gmod/bans.cfg:/home/steam/games/garrysmod/garrysmod/cfg/banned_user.cfg +# - /data/gmod/addons/tttdamagelogs:/home/steam/games/garrysmod/garrysmod/addons/tttdamagelogs/ +# - /data/gmod/data/:/home/steam/gmod/garrysmod/data/ +# command: ["+hostname", "Zom.bi TTT", "-authkey", "05620A93AEC7696DC488E6088E93DF2B", "+host_workshop_collection", "337948370", "+gamemode", "terrortown", "+maxplayers", "16", "+map", "ttt_dolls", "+rcon_password", "relativegal", "+sv_downloadurl", "https://user.zom.bi/shanks/", "+sv_allowdownload", "1", "+sv_allowupload", "1"] +# command: ["+hostname", "Zom.bi TTT", "-authkey", "05620A93AEC7696DC488E6088E93DF2B", "+host_workshop_collection", "1102662443", "+gamemode", "terrortown", "+maxplayers", "16", "+map", "gm_construct"] + command: ["+hostname", "Zom.bi TTT", "-authkey", "05620A93AEC7696DC488E6088E93DF2B", "+host_workshop_collection", "561257327", "+maxplayers", "16", "+map", "gm_construct"]