Update dockerfile

- Fix typo in version number
- Add sample cfg
- Update makefile to run the HLDS
This commit is contained in:
Ari Timonen 2018-05-07 04:49:11 +00:00
parent 5d59382be8
commit a56c67d611
4 changed files with 55 additions and 2 deletions

1
.gitignore vendored
View file

@ -1,4 +1,5 @@
overlay/*
!overlay/*.sample
!overlay/.placeholder
logs/
!logs/.placeholder

View file

@ -46,12 +46,12 @@ RUN echo 70 > steam_appid.txt
RUN mv dlls/ns_i386.so dlls/ns.so
# Patch NS
RUN wget 'https://github.com/ENSL/NS/releases/download/v3.2.1b/ns_v321a_patch.zip' && unzip -o ns_v321a_patch.zip
RUN wget 'https://github.com/ENSL/NS/releases/download/v3.2.1b/ns_v321b_patch.zip' && unzip -o ns_v321b_patch.zip
# ENSL package
RUN cp liblist.gam liblist.bak
# RUN wget https://github.com/ENSL/ensl-plugin/releases/download/v1.4/ensl_srvpkg-v1.4.zip -O srv.zip
RUN echo && wget https://github.com/ENSL/ensl-plugin/releases/download/1.4-extra/ENSL_SrvPkg-1.4-extra.zip -O srv.zip
RUN wget https://github.com/ENSL/ensl-plugin/releases/download/1.4-extra/ENSL_SrvPkg-1.4-extra.zip -O srv.zip
RUN unzip -o srv.zip
# Use seperate server.cfg because autoexec.cfg is unreliable

View file

@ -24,6 +24,7 @@ run: build
mkdir -p logs
#docker run -p 27015:27015 27015/udp:27015/udp -v $(shell pwd)/logs:/home/steam/hlds/ns/logs -ti $(IMAGE)
docker run --name=$(PROJECT) --net=host -v $(shell pwd)/logs:/home/steam/hlds/ns/logs -ti $(IMAGE)
# docker run -e HLDS='1' --name=$(PROJECT) --net=host -v $(shell pwd)/logs:/home/steam/hlds/ns/logs -ti $(IMAGE)
stop:
docker stop $(PROJECT)

51
overlay/server.cfg.sample Normal file
View file

@ -0,0 +1,51 @@
// General settings
hostname "Natural Selection v3.2.1b"
mp_autoconcede 4
mp_blockscripts 0
mp_combattime 15
mp_consistency 1
mp_countdowntime .2
mp_drawdamage 0
mp_falldamage 1
mp_flashlight 1
mp_footsteps 1
mp_friendlyfire 1
mp_killdelay 3
mp_latejointime 1.5
mp_limitteams 1
mp_logdetail 0
mp_mapvoteratio .6
mp_minvotesneeded 3
mp_serverops ""
mp_team1damagepercent 100
mp_team2damagepercent 100
mp_timelimit 0
mp_tournamentmode 1
mp_uplink 1
mp_votecasttime 2
mp_votedowntime 90
mp_votepercentneeded .55
pausable 0
rcon_password "cbfkgRSK0RrvJzQ"
sv_aim 0
sv_allowdownload 1
sv_cheats 0
sv_clienttrace 3.5
sv_downloadurl "http://www.ensl.org/files/preload"
sv_lan 0
sv_maxrate 25000
sv_maxspectatorspeed 1000
sv_maxspeed 4000
sv_maxupdaterate 150
sv_minrate 10000
sv_minupdaterate 40
sv_proxies 5
sv_password ""
sv_region 3
sv_voicecodec voice_speex
sv_voicequality 5
violence_agibs 0
violence_hgibs 0
# ensl_membersonly 1
mapchangecfgfile "server.cfg"