Skip to content

Commit

Permalink
Add ARK: SE
Browse files Browse the repository at this point in the history
  • Loading branch information
Ethorbit committed Mar 14, 2024
1 parent acedeb2 commit fa9e2ce
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
9 changes: 9 additions & 0 deletions servers/ark-se-server/Dockerfile
Original file line number Diff line number Diff line change
@@ -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}
3 changes: 3 additions & 0 deletions servers/ark-se-server/start.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
cd "${SERVER_DIR}/ShooterGame/Binaries/Linux/"
./ShooterGameServer "${START_ARGS} -server -log -UseBattlEye"

0 comments on commit fa9e2ce

Please sign in to comment.