Initial commit

This commit is contained in:
Philipp Hufnagl 2018-04-15 21:40:50 +02:00
commit 2c48098a62
8 changed files with 104 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
conf/cluster_token.txt

12
Dockerfile Normal file
View File

@ -0,0 +1,12 @@
FROM docker.zom.bi/dockerfiles/steam:latest
RUN dpkg --add-architecture i386
RUN apt-get update
RUN apt-get install -y libcurl4-gnutls-dev:i386
EXPOSE 11000 11000/udp 27018 27018/udp 8768
EXPOSE 8768/udp
COPY conf/ /home/steam/.klei/DoNotStarveTogether/
RUN chown -R steam ~steam
COPY entrypoint.sh /entrypoint.sh
RUN chmod +xr /entrypoint.sh
USER steam
ENTRYPOINT ["/entrypoint.sh"]

12
conf/Caves/server.ini Normal file
View File

@ -0,0 +1,12 @@
[NETWORK]
server_port = 11001
[SHARD]
is_master = false
name = Caves
[STEAM]
master_server_port = 27019
authentication_port = 8769

View File

@ -0,0 +1,4 @@
return {
override_enabled = true,
preset = "DST_CAVE",
}

11
conf/Master/server.ini Normal file
View File

@ -0,0 +1,11 @@
[NETWORK]
server_port = 11000
[SHARD]
is_master = true
[STEAM]
master_server_port = 27018
authentication_port = 8768

24
conf/cluster.ini Normal file
View File

@ -0,0 +1,24 @@
[GAMEPLAY]
game_mode = survival
max_players = 6
pvp = false
pause_when_empty = true
[NETWORK]
cluster_description = Don't Starve server of the Zom.bi community
cluster_name = Zom.bi
cluster_intention = cooperative
cluster_password =
[MISC]
console_enabled = true
[SHARD]
shard_enabled = true
bind_ip = 127.0.0.1
master_ip = 127.0.0.1
master_port = 10889
cluster_key = paul

39
entrypoint.sh Normal file
View File

@ -0,0 +1,39 @@
#!/bin/bash
# what are we trying to install?
game_nm="DST"
game_id=343050
cluster_name="Zom.bi"
dontstarve_dir="$HOME/.klei/DoNotStarveTogether"
# install game to this directory
installdir=/home/steam/games/$game_nm
# if path does not exist, create it
mkdir -p $installdir
if [[ -w $installdir ]] # can we write into the directory?
then
# Install or update the game in /home/steam/games/[game name]
/opt/steamcmd/steamcmd.sh \
+login anonymous \
+force_install_dir $installdir \
+app_update $game_id validate \
+quit
else
# install dir maybe mounted read-only, simply
# skip installing/updating and inform the user.
echo "Skipped game installation."
fi
# run the next commands from the installdir
cd $installdir/bin
run_shared=(./dontstarve_dedicated_server_nullrenderer)
run_shared+=(-console)
run_shared+=(-cluster "$cluster_name")
run_shared+=(-monitor_parent_process $$)
"${run_shared[@]}" -shard Caves | sed 's/^/Caves: /' &
"${run_shared[@]}" -shard Master | sed 's/^/Master: /'

1
save/adminlist.txt Normal file
View File

@ -0,0 +1 @@
KU_W-8duuIH