another fix

This commit is contained in:
Guahos 2020-02-17 17:05:09 +00:00
parent ddf4da3ab6
commit c835ff62ae
4 changed files with 24 additions and 16 deletions

View File

@ -7,12 +7,14 @@ LABEL maintainer="Guahos, chipmunkzombie@gmail.com"
#Steam App ID
ARG STEAM_APP_ID=294420
#Environmental variables
ENV LD_LIBRARY_PATH ${VALVE_STEAMCMD_FOLDER}/linux64/
#Vols & dirs
WORKDIR ${VALVE_GAME_FOLDER}
VOLUME ${VALVE_VOLUME_FOLDER}
ENV LD_LIBRARY_PATH ${VALVE_STEAMCMD_FOLDER}/linux64/
RUN mkdir ${VALVE_VOLUME_FOLDER}/worldsave && chmod 777 ${VALVE_VOLUME_FOLDER}/worldsave && \
mkdir ${VALVE_VOLUME_FOLDER}/worlddata && chmod 777 ${VALVE_VOLUME_FOLDER}/worlddata
RUN mkdir ${VALVE_VOLUME_FOLDER}/worldsave && mkdir ${VALVE_VOLUME_FOLDER}/worlddata && \
chmod 777 ${VALVE_VOLUME_FOLDER}/world*
#Expose ports
EXPOSE 26900/tcp
@ -24,9 +26,9 @@ EXPOSE 8080/tcp
EXPOSE 8081/tcp
#Install 7d2d dedicated server
RUN steamcmd +login anonymous +force_install_dir ${VALVE_GAME_FOLDER} +app_update $STEAM_APP_ID +quit
RUN steamcmd +login anonymous +force_install_dir ${VALVE_GAME_FOLDER} +app_update ${STEAM_APP_ID} +quit
#Copy run script and set permissions
#Copy entrypoint script and set permissions
COPY serverconfig.xml ${VALVE_VOLUME_FOLDER}/serverconfig.xml
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh

View File

@ -1,5 +1,11 @@
all: emgcmd
emgcmd:
docker build --compress -t epicmorg/linux-7d2d .
docker push epicmorg/linux-7d2d
build:
docker build --tag "7d2d_ds:latest" .
run:
docker run -itd --name "7d2d-docker" -p 26900-26903:26900-26903/udp -p 26900:26900/tcp -p 8080-8081:8080-8081 -v 7d2dvol:/valve/volume 7d2d_ds:latest
start:
docker start 7d2d-docker
stop:
docker stop 7d2d-docker

View File

@ -8,5 +8,5 @@ services:
- "8080-8081:8080-8081"
restart: always
volumes:
- ./vol:/valve/volume
- /docker/7test/vol:/valve/volume

View File

@ -54,7 +54,7 @@
<property name="GameWorld" value="Navezgane"/> <!-- "RWG" (see WorldGenSeed and WorldGenSize options below) or any already existing world name in the Worlds folder (currently shipping with e.g. "Navezgane", "PREGEN01", ...) -->
<property name="WorldGenSeed" value="asdf"/> <!-- If RWG this is the seed for the generation of the new world. If a world with the resulting name already exists it will simply load it -->
<property name="WorldGenSize" value="4096"/> <!-- If RWG this controls the width and height of the created world. It is also used in combination with WorldGenSeed to create the internal RWG seed thus also creating a unique map name even if using the same WorldGenSeed. Has to be between 2048 and 16384, though large map sizes will take long to generate / download / load -->
<property name="GameName" value="dbz-7d2d-dedicated"/> <!-- Whatever you want the game name to be. This affects the save game name as well as the seed used when placing decoration (trees etc) in the world. It does not control the generic layout of the world if creating an RWG world -->
<property name="GameName" value="My Game"/> <!-- Whatever you want the game name to be. This affects the save game name as well as the seed used when placing decoration (trees etc) in the world. It does not control the generic layout of the world if creating an RWG world -->
<property name="GameMode" value="GameModeSurvival"/> <!-- GameModeSurvival -->
<!-- Difficulty -->