steam-arma3: Some improvements

This commit is contained in:
Hive 2018-05-24 14:20:56 +02:00
parent 3150bc4818
commit 35d21aa0e5
4 changed files with 7 additions and 3 deletions

View file

@ -1,6 +1,6 @@
FROM zombi/steam-base FROM zombi/steam-base
MAINTAINER MadMaurice <madmaurice@zom.bi>, Paul <paul@zom.bi> MAINTAINER MadMaurice <madmaurice@zom.bi>, Paul <paul@zom.bi>
EXPOSE 2302-2305/udp EXPOSE 2302-2305/udp 2308/udp
ADD bin/entrypoint.sh /entrypoint.sh ADD bin/entrypoint.sh /entrypoint.sh
ADD server.cfg /home/steam ADD server.cfg /home/steam

View file

@ -17,6 +17,7 @@ docker build -t zombi/steam-arma3 .
docker run -d \ docker run -d \
--name arma3 \ --name arma3 \
-p 2302-2305:2302-2305/udp \ -p 2302-2305:2302-2305/udp \
-p 2308:2308/udp \
-v /data/steam-games:/home/steam/games \ -v /data/steam-games:/home/steam/games \
zombi/steam-arma3 zombi/steam-arma3
``` ```

View file

@ -35,9 +35,11 @@ then
/opt/steamcmd/steamcmd.sh \ /opt/steamcmd/steamcmd.sh \
+login $steam_user $steam_password\ +login $steam_user $steam_password\
+force_install_dir $installdir \ +force_install_dir $installdir \
+app_update $game_id -beta legacyPorts -betapassword Arma3LegacyPorts validate \ +app_update $game_id validate \
+quit +quit
#+app_update $game_id -beta legacyPorts -betapassword Arma3LegacyPorts validate \
exit 0 exit 0
else else
# install dir maybe mounted read-only, simply # install dir maybe mounted read-only, simply
@ -64,6 +66,7 @@ if [ ! -x ./arma3server ]
then then
# we cant run the game then. # we cant run the game then.
echo "game launcher not found, installed incorrectly?" echo "game launcher not found, installed incorrectly?"
ls -alh
exit 1 exit 1
fi fi

View file

@ -1,5 +1,5 @@
hostname="Community Server"; hostname="Community Server";
passwordAdmin = "password"; passwordAdmin = "boobs";
maxPlayers = 20; maxPlayers = 20;
motd[] = {"Welcome to the ARMA3 Server","Please enjoy your stay!"}; motd[] = {"Welcome to the ARMA3 Server","Please enjoy your stay!"};