From fa9e2ce34d7a5b9f5a04b81ca01220af32a12bf6 Mon Sep 17 00:00:00 2001 From: Ethorbit Date: Thu, 14 Mar 2024 08:05:58 -0700 Subject: [PATCH] Add ARK: SE --- Makefile | 4 ++-- servers/ark-se-server/Dockerfile | 9 +++++++++ servers/ark-se-server/start.sh | 3 +++ 3 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 servers/ark-se-server/Dockerfile create mode 100644 servers/ark-se-server/start.sh diff --git a/Makefile b/Makefile index 81fb860..d969e0b 100644 --- a/Makefile +++ b/Makefile @@ -9,10 +9,10 @@ build: find $(files) -maxdepth 0 -type d -exec \ /bin/sh -c 'dirname=$$(basename {}) &&\ docker build -t $$dirname -t $(docker_user)/$$dirname:latest -t $(docker_user)/$$dirname:$(git_hash) {} &&\ - docker volume rm -f $$dirname' \; + [ 1 = 0 ] && docker volume rm -f $$dirname' \; test: - docker run -it --rm -p 27015/udp -p 27015/tcp $(options) -v $(image):/server --name $(image) $(image) $(command) + docker run -it --rm -p 27015/udp -p 27015/tcp $(options) -v $(image):/home/steam/Steam/steamapps/common --name $(image) $(image) $(command) push: find $(files) -maxdepth 1 -type d -exec \ diff --git a/servers/ark-se-server/Dockerfile b/servers/ark-se-server/Dockerfile new file mode 100644 index 0000000..eed97eb --- /dev/null +++ b/servers/ark-se-server/Dockerfile @@ -0,0 +1,9 @@ +FROM steamcmd-server +USER root +ENV APP_ID=376030 +ENV SERVER_DIR="${SERVERS_DIR}/ARK Survival Evolved Dedicated Server" +ENV START_ARGS="TheIsland?listen?SessionName=My-ARK-Server?ServerCrosshair=True?MapPlayerLocation=True?AllowThirdPersonPlayer=True" +COPY ./start.sh "${IMAGE_DIR}/${START_SCRIPT}" +RUN chown ${USER}:${USER} "${IMAGE_DIR}/${START_SCRIPT}" &&\ + chmod +x "${IMAGE_DIR}/${START_SCRIPT}" +USER ${USER} diff --git a/servers/ark-se-server/start.sh b/servers/ark-se-server/start.sh new file mode 100644 index 0000000..239154b --- /dev/null +++ b/servers/ark-se-server/start.sh @@ -0,0 +1,3 @@ +#!/bin/bash +cd "${SERVER_DIR}/ShooterGame/Binaries/Linux/" +./ShooterGameServer "${START_ARGS} -server -log -UseBattlEye"