initial version

This commit is contained in:
Robin Appelman 2015-11-24 19:39:25 +01:00
commit eccb34b1f8
4 changed files with 100 additions and 0 deletions

12
Dockerfile Normal file
View file

@ -0,0 +1,12 @@
from spiretf/docker-comp-server
maintainer Robin Appelman <robin@icewind.nl>
USER root
ADD ./server.cfg $SERVER/tf2/tf/cfg/server.cfg
RUN chown tf2:tf2 $SERVER/tf2/tf/cfg/server.cfg
USER $USER
ADD ./tf.sh $SERVER/tf.sh
ENTRYPOINT ["./tf.sh"]
CMD ["+sv_pure", "1", "+mapcycle", "mapcycle_quickplay_payload.txt", "+maxplayers", "24"]

14
README.md Normal file
View file

@ -0,0 +1,14 @@
## Spire Server
Docker image for a competitive tf2 server configured for spire.
## Enviroment Options
| Option | Description | Default |
| ----------------- | ------------------------------ | :--------------- |
| NAME | The name for the server | Spire Server |
| PASSWORD | The connect password | password |
| RCON_PASSWORD | The rcon password | rcon |
| WEBRCON\_PASSWORD | The webrcon password | $RCON\_PASSWORD |
| CONFIG | The server config to execute | etf2l_6v6_5cp |
| MAP | The map to start the server on | cp_badlands |

60
server.cfg Normal file
View file

@ -0,0 +1,60 @@
sv_downloadurl "http://fakkelbrigade.eu/"
// Don't Edit
mp_timelimit 30 // limit of time allowed pepr game, 0 = unlimited
mp_fraglimit 0 // limit of frags(kills) allowed per game, 0 = unlimited
mp_footsteps 1 // foot steps
mp_flashlight 1 // flash light
mp_forcerespawn 0 // forces respawn
// General Cvars
decalfrequency 60 // decal frequency
mp_decals 100 // decals
mp_falldamage 1 // 0 disables fall damage, 1 enables fall damage
sv_cheats 0 // 0 disables cheats, 1 enables cheats
sv_timeout 120 // amount of time in seconds before a player is dropped from the server
sv_allowupload 1 // 0 disables server upload, 1 enables server upload
sv_allowdownload 1 // 0 disables fast download, 1 enables fast download
sv_downloadurl "http://dl.tragicservers.com/" // fast download url, recommended not to be changed
sv_stats 0
fps_max 0
// Server Rates // Recommended to not be changed
sv_maxrate 0
sv_minrate 100000
sv_maxupdaterate 100
sv_maxcmdrate 100
sv_parallel_packentities 0
sv_parallel_sendsnapshot 1
net_queued_packet_thread 1
net_splitpacket_maxrate 100000
net_splitrate 1024
sv_minupdaterate 10
sv_max_queries_sec 3
sv_max_queries_sec_global 100000
// Ban Configs
exec banned_user.cfg
exec banned.cfg
writeid
// Force Preload
sv_forcepreload 1 // forces server side preloading, recommended not to change this cvar
// Logging
log 0
// SourceTV Settings
tv_enable 1
tv_name "SpireTV"
tv_password ""
tv_delaymapchange 1
tv_delay 90
tv_maxclients 15
tv_transmitall 1
tv_relayvoice 0
tv_autorecord 0
tv_relaypassword ""
heartbeat // heartbeat
sv_region 3

14
tf.sh Executable file
View file

@ -0,0 +1,14 @@
#!/bin/sh
CFG="$SERVER/tf2/tf/cfg/server.cfg"
# Configure server from ENV
echo "hostname \"${NAME:-'Spire Server'}\"" >> $CFG
echo "sv_password \"${PASSWORD:-'password'}\"" >> $CFG
echo "rcon_password \"${RCON_PASSWORD:-'rcon'}\"" >> $CFG
echo "sm_webrcon_key \"${WEBRCON_PASSWORD:-${RCON_PASSWORD:-'rcon'}}\"" >> $CFG
echo "exec ${CONFIG:-etf2l_6v6_5cp}" >> $CFG
cd $HOME/hlserver
tf2/srcds_run -game tf -autoupdate -steam_dir ~/hlserver -steamcmd_script ~/hlserver/tf2_ds.txt +map ${MAP:-'cp_badlands'} $@