diff --git a/.travis.yml b/.travis.yml index 780b353..5b5050d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,5 +4,5 @@ services: script: - docker build -t "jusito/docker-ttt:develop" . - docker volume create TTT - - docker run -ti --name "TTT" -p 27015:27015/tcp -p 27015:27015/udp -v "TTT:/home/steam/server:rw" \ - "jusito/docker-ttt:develop" -port 27015 -maxplayers 16 +map ttt_rooftops_2016_v1 -usercon +rcon_password "testing" -debug \ No newline at end of file + - docker run -d -P -e INSTALL_CSS=true -e WORKSHOP_COLLECTION_ID=899062542 --name "TTT" -p 27015:27015/tcp -p 27015:27015/udp -v "TTT:/home/steam/server:rw" \ + "jusito/docker-ttt:develop" "testing" \ No newline at end of file diff --git a/entrypoint.sh b/entrypoint.sh index 8e01b50..9598c5b 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -2,6 +2,11 @@ echo "starting entrypoint.sh" set -e +DEBUG_MODE=false +if [ "$1" = "testing" ]; then + DEBUG_MODE=true +fi + echo "installing / updating steamcmd" cd "$STEAM_PATH" wget -q -O - "https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz" | tar -zxvf - @@ -45,5 +50,10 @@ fi # todo catch => send killserver / quit cd "$STEAM_PATH/server/" trap 'pkill -15 srcds_run' SIGTERM -./srcds_run -console -game garrysmod +gamemode terrortown "$@" & -wait "$!" \ No newline at end of file + +if [ "$DEBUG_MODE" != "true" ]; then + ./srcds_run -console -game garrysmod +gamemode terrortown "$@" & + wait "$!" +else + echo "debug ended" +fi \ No newline at end of file