From 0f666997a5f0e8cacb9324e572b73501c93a659b Mon Sep 17 00:00:00 2001 From: Guahos Date: Thu, 13 Feb 2020 13:41:41 +0000 Subject: [PATCH] 7d2d --- linux/7d2d/Dockerfile | 18 +++-- linux/7d2d/docker-compose.yml | 3 +- linux/7d2d/run_7d2d.sh | 4 +- linux/7d2d/vol/serverconfig.xml | 118 ++++++++++++++++++++++++++++++++ 4 files changed, 136 insertions(+), 7 deletions(-) mode change 100644 => 100755 linux/7d2d/run_7d2d.sh create mode 100755 linux/7d2d/vol/serverconfig.xml diff --git a/linux/7d2d/Dockerfile b/linux/7d2d/Dockerfile index b902c4e..61f6e06 100644 --- a/linux/7d2d/Dockerfile +++ b/linux/7d2d/Dockerfile @@ -1,7 +1,17 @@ -FROM epicmorg/steamcmd +############################################## +# 7d2d dedicated server +############################################## +FROM epicmorg/linux-steamcmd +LABEL maintainer="EpicMorg DevTeam, developer@epicm.org" WORKDIR $VALVE_GAME_FOLDER -RUN steamcmd +login anonymous +force_install_dir $VALVE_GAME_FOLDER +app_update 294420 +quit -COPY run_7d2d.sh $VALVE_GAME_FOLDER/run_7d2d.sh -CMD $VALVE_GAME_FOLDER/run_7d2d.sh +#Install 7d2d dedicated server +RUN steamcmd +login anonymous +force_install_dir $VALVE_GAME_FOLDER +app_update 294420 +quit && \ + mkdir $VALVE_VOLUME_FOLDER + +#Copy run script and set permissions +COPY run_7d2d.sh $VALVE_GAME_FOLDER/run_7d2d.sh && chmod +x $VALVE_GAME_FOLDER/run_7d2d.sh + +#Run the server +ENTRYPOINT $VALVE_GAME_FOLDER/run_7d2d.sh diff --git a/linux/7d2d/docker-compose.yml b/linux/7d2d/docker-compose.yml index b9fd560..7711d91 100644 --- a/linux/7d2d/docker-compose.yml +++ b/linux/7d2d/docker-compose.yml @@ -11,4 +11,5 @@ services: - "8081:8081" restart: always volumes: - - /docker/7test/vol:/steamcmd/vol + - /docker/7test/vol:/valve/volume + diff --git a/linux/7d2d/run_7d2d.sh b/linux/7d2d/run_7d2d.sh old mode 100644 new mode 100755 index df7575c..ff971ad --- a/linux/7d2d/run_7d2d.sh +++ b/linux/7d2d/run_7d2d.sh @@ -1,4 +1,4 @@ #!/bin/bash $VALVE_GAME_FOLDER/7DaysToDieServer.x86_64 \ --logfile $VALVE_STEAMCMD_FOLDER/vol/7d2d_output_log__`date +%Y-%m-%d__%H-%M-%S`.txt \ --quit -batchmode -nographics -dedicated -configfile=$VALVE_STEAMCMD_FOLDER/vol/serverconfig.xml +-logfile $VALVE_VOLUME_FOLDER/7d2d_output_log__`date +%Y-%m-%d__%H-%M-%S`.txt \ +-quit -batchmode -nographics -dedicated -configfile=$VALVE_VOLUME_FOLDER/serverconfig.xml diff --git a/linux/7d2d/vol/serverconfig.xml b/linux/7d2d/vol/serverconfig.xml new file mode 100755 index 0000000..7bdb38b --- /dev/null +++ b/linux/7d2d/vol/serverconfig.xml @@ -0,0 +1,118 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +