Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM thmhoag/steamcmd:latest
USER root

RUN apt-get update && \
apt-get install -y curl cron bzip2 perl-modules lsof libc6-i386 lib32gcc1 sudo
apt-get install -y curl cron bzip2 perl-modules lsof libc6-i386 lib32gcc1 sudo socat

RUN curl -sL "https://raw.githubusercontent.com/FezVrasta/ark-server-tools/v1.6.54/netinstall.sh" | bash -s steam && \
ln -s /usr/local/bin/arkmanager /usr/bin/arkmanager
Expand Down
7 changes: 7 additions & 0 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ echo "##########################################################################
echo "# Ark Server - " `date`
echo "###########################################################################"

echo "Starting listener on 4000/tcp for health checks"
(socat -4 -lf/dev/null TCP-LISTEN:4000,fork UNIX-CONNECT:/var/run/docker.sock) &
SOCAT_PID=$!
echo "Listener PID ${SOCAT_PID}"

echo "Ensuring correct permissions..."
sudo find /ark -not -user steam -o -not -group steam -exec chown -v steam:steam {} \;
sudo find /home/steam -not -user steam -o -not -group steam -exec chown -v steam:steam {} \;
Expand Down Expand Up @@ -121,6 +126,8 @@ fi


function stop {
echo "Killing listener on 4000/tcp"
kill -SIGTERM $SOCAT_PID
arkmanager broadcast "Server is shutting down"
arkmanager notify "Server is shutting down"
arkmanager stop
Expand Down