+ steamclient.so fix
This commit is contained in:
parent
963d3e19e4
commit
3d34e8b44a
13
Dockerfile
13
Dockerfile
@ -1,4 +1,4 @@
|
|||||||
FROM ubuntu:18.04
|
FROM ubuntu:16.04
|
||||||
|
|
||||||
EXPOSE 27015/udp 27015/tcp
|
EXPOSE 27015/udp 27015/tcp
|
||||||
|
|
||||||
@ -9,16 +9,17 @@ ENV STEAM_PATH="/home/steam" \
|
|||||||
DOCKER_USER=steam
|
DOCKER_USER=steam
|
||||||
|
|
||||||
ENTRYPOINT ["./home/entrypoint.sh"]
|
ENTRYPOINT ["./home/entrypoint.sh"]
|
||||||
|
CMD ["-game", "garrysmod", "+gamemode", "sandbox", "+map", "gm_flatgrass"]
|
||||||
|
|
||||||
COPY ["entrypoint.sh", "/home/"]
|
COPY ["entrypoint.sh", "/home/"]
|
||||||
|
|
||||||
# removed dep. lib32gcc1 libtcmalloc-minimal4:i386 gdb
|
# removed dep. lib32gcc1 libtcmalloc-minimal4:i386 gdb libreadline5
|
||||||
RUN dpkg --add-architecture i386 && \
|
RUN dpkg --add-architecture i386 && \
|
||||||
apt-get update -y && \
|
apt-get update -y && apt-get upgrade -y && \
|
||||||
apt-get install -y wget tar gzip ca-certificates lib32gcc1 lib32stdc++6 lib32ncurses5 lib32z1 locales lib32tinfo5 libtcmalloc-minimal4:i386 gdb && \
|
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 && \
|
chmod a=rx /home/entrypoint.sh && \
|
||||||
ulimit -n 2048 && \
|
|
||||||
\
|
\
|
||||||
locale-gen en_US.UTF-8
|
locale-gen en_US.UTF-8
|
||||||
|
|
||||||
|
@ -14,10 +14,18 @@ echo "installing / validating ttt"
|
|||||||
cd "$STEAM_PATH"
|
cd "$STEAM_PATH"
|
||||||
./steamcmd.sh -noasync +login anonymous +force_install_dir "$STEAM_PATH/server/" +app_update 4020 validate +quit
|
./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
|
# todo catch => send killserver / quit
|
||||||
cd "$STEAM_PATH/server/"
|
cd "$STEAM_PATH/server/"
|
||||||
trap 'pkill -15 srcds_run' SIGTERM
|
trap 'pkill -15 srcds_run' SIGTERM
|
||||||
|
|
||||||
echo "starting with"
|
echo "starting with"
|
||||||
|
for var in "$@"
|
||||||
|
do
|
||||||
|
echo "$var"
|
||||||
|
done
|
||||||
|
|
||||||
./srcds_run "$@" &
|
./srcds_run "$@" &
|
||||||
wait "$!"
|
wait "$!"
|
||||||
|
Loading…
Reference in New Issue
Block a user