From 3d34e8b44a518ce4f7924f41897d2c37b3ddea1a Mon Sep 17 00:00:00 2001 From: Lucas Briese Date: Tue, 25 Sep 2018 11:01:59 +0200 Subject: [PATCH] + steamclient.so fix --- Dockerfile | 13 +++++++------ entrypoint.sh | 8 ++++++++ 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4a8f10c..d4f3324 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM ubuntu:18.04 +FROM ubuntu:16.04 EXPOSE 27015/udp 27015/tcp @@ -9,16 +9,17 @@ ENV STEAM_PATH="/home/steam" \ DOCKER_USER=steam ENTRYPOINT ["./home/entrypoint.sh"] +CMD ["-game", "garrysmod", "+gamemode", "sandbox", "+map", "gm_flatgrass"] COPY ["entrypoint.sh", "/home/"] -# removed dep. lib32gcc1 libtcmalloc-minimal4:i386 gdb +# removed dep. lib32gcc1 libtcmalloc-minimal4:i386 gdb libreadline5 RUN dpkg --add-architecture i386 && \ - apt-get update -y && \ - apt-get install -y wget tar gzip ca-certificates lib32gcc1 lib32stdc++6 lib32ncurses5 lib32z1 locales lib32tinfo5 libtcmalloc-minimal4:i386 gdb && \ - \ + apt-get update -y && apt-get upgrade -y && \ + apt-get install -y wget tar gzip ca-certificates locales && \ + apt-get install -y postfix curl wget file bzip2 gzip unzip bsdmainutils python util-linux ca-certificates binutils bc jq tmux lib32gcc1 libstdc++6 libstdc++6:i386 lib32tinfo5 && \ + apt-get install -y gcc lib32stdc++6 gdb net-tools lib32z1 zlib1g zlibc curl && \ chmod a=rx /home/entrypoint.sh && \ - ulimit -n 2048 && \ \ locale-gen en_US.UTF-8 diff --git a/entrypoint.sh b/entrypoint.sh index d02acf5..b0a447f 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -14,10 +14,18 @@ echo "installing / validating ttt" cd "$STEAM_PATH" ./steamcmd.sh -noasync +login anonymous +force_install_dir "$STEAM_PATH/server/" +app_update 4020 validate +quit +# fix steamcmd error +ln -s "${STEAM_PATH}/linux32/steamclient.so" ~/.steam/sdk32/steamclient.so + # todo catch => send killserver / quit cd "$STEAM_PATH/server/" trap 'pkill -15 srcds_run' SIGTERM echo "starting with" +for var in "$@" +do + echo "$var" +done + ./srcds_run "$@" & wait "$!"