From 789195d2d90c2b935b9be68e1862dbc277f3cc86 Mon Sep 17 00:00:00 2001 From: Lucas Briese Date: Mon, 29 Jul 2019 21:52:25 +0200 Subject: [PATCH] + added lgsm config variables --- TTT/Dockerfile | 2 +- gmod/Dockerfile | 61 +++++++++++++++++++++++++++++++++++++++++-------- 2 files changed, 53 insertions(+), 10 deletions(-) diff --git a/TTT/Dockerfile b/TTT/Dockerfile index ba294aa..a120c8a 100644 --- a/TTT/Dockerfile +++ b/TTT/Dockerfile @@ -1,6 +1,6 @@ FROM jusito/docker-ttt:gmod_debian -ENV SERVER_GAMEMODE="+gamemode terrortown" +ENV SERVER_GAMEMODE="terrortown" COPY "server.cfg.default" "/home/server.cfg.default" diff --git a/gmod/Dockerfile b/gmod/Dockerfile index 0dc514a..08b477a 100644 --- a/gmod/Dockerfile +++ b/gmod/Dockerfile @@ -1,8 +1,6 @@ FROM jusito/docker-ttt:lgsm_debian -EXPOSE 27015/udp 27015/tcp - -# Const \\ Overwrite Env \\ Configs optional \\ Configs needed +# Const \\ Overwrite Env \\ Configs optional ENV CSS_PATH="/home/steam/addons/css" \ HL2_PATH="/home/steam/addons/hl2" \ HLDM_PATH="/home/steam/addons/hldm" \ @@ -13,22 +11,67 @@ ENV CSS_PATH="/home/steam/addons/css" \ SERVER_GAME="gmodserver" \ \ \ - WORKSHOP_COLLECTION_ID= \ + WORKSHOP_COLLECTION_ID="" \ + WORKSHOP_API_KEY="" \ + WORKSHOP_AUTOLOAD="true" \ SERVER_NAME="" \ SERVER_PASSWORD="" \ SERVER_VOICE_ENABLE="1" \ + SERVER_IP="0.0.0.0" \ + SERVER_PORT="27015" \ + SERVER_CLIENTPORT="27005" \ + SERVER_SOURCETVPORT="27020" \ + SERVER_DEFAULT_MAP="gm_construct" \ + SERVER_MAX_PLAYERS="16" \ + SERVER_TICKRATE="66" \ + SERVER_GAMEMODE="sandbox" \ + SERVER_LOGIN_TOKEN="" \ + SERVER_ADDITIONAL_PARAMETERS="-disableluarefresh" \ + LGSM_DISPLAYIP="" \ + LGSM_POSTALERT="off" \ + LGSM_POSTDAYS="7" \ + LGSM_POSTTARGET="https://hastebin.com" \ + LGSM_DISCORDALERT="off" \ + LGSM_DISCORDWEBHOOK="webhook" \ + LGSM_EMAILALERT="off" \ + LGSM_EMAIL="email@example.com" \ + LGSM_EMAILFROM="" \ + LGSM_IFTTTALERT="off" \ + LGSM_IFTTTTOKEN="accesstoken" \ + LGSM_IFTTTEVENT="linuxgsm_alert" \ + LGSM_MAILGUNALERT="off" \ + LGSM_MAILGUNTOKEN="accesstoken" \ + LGSM_MAILGUNDOMAIN="example.com" \ + LGSM_MAILGUNEMAILFROM="alert@example.com" \ + LGSM_MAILGUNEMAIL="email@myemail.com" \ + LGSM_PUSHBULLETALERT="off" \ + LGSM_PUSHBULLETTOKEN="accesstoken" \ + LGSM_CHANNELTAG="" \ + LGSM_PUSHOVERALERT="off" \ + LGSM_PUSHOVERTOKEN="accesstoken" \ + LGSM_TELEGRAMALERT="off" \ + LGSM_TELEGRAMTOKEN="accesstoken" \ + LGSM_TELEGRAMCHATID="" \ + LGSM_CURLCUSTOMSTRING="" \ + LGSM_UPDATEONSTART="off" \ + LGSM_MAXBACKUPS="4" \ + LGSM_MAXBACKUPDAYS="30" \ + LGSM_STOPONBACKUP="on" \ + LGSM_CONSOLELOGGING="on" \ + LGSM_LOGDAYS="7" \ + LGSM_QUERYDELAY="5" \ + LGSM_BRANCH="" \ + LGSM_STEAMMASTER="true" \ \ INSTALL_CSS=false \ INSTALL_HL2=false \ INSTALL_HLDM=false \ INSTALL_TF2=false \ \ - USE_MY_REPLACER_CONFIG=false \ - \ - \ - SERVER_GAMEMODE="" + USE_MY_REPLACER_CONFIG=false + -COPY ["prepareServer.sh", "initConfig.sh", "forceWorkshopDownload.sh", "installAndMountAddons.sh", "/home/"] +COPY ["prepareServer.sh", "initConfig.sh", "forceWorkshopDownload.sh", "installAndMountAddons.sh", "common.cfg", "/home/"] RUN chown "$DOCKER_USER:$DOCKER_USER" /home/prepareServer.sh && \ chown "$DOCKER_USER:$DOCKER_USER" /home/initConfig.sh && \