Double Action: Boogaloo Docker Container
This Docker container runs a Double Action: Boogaloo dedicated server. It is built on the WINE image. The server's game content has only Windows binaries, so the container runs the Windows srcds.exe -game dab under Wine.
Quick Start
services:
doubleactionboogaloo:
image: lancommander/doubleactionboogaloo:latest
container_name: doubleactionboogaloo
ports:
- 27015:27015/udp
- 27015:27015/tcp
volumes:
- "/data/Servers/Double Action - Boogaloo/Deathmatch:/config"
environment:
DAB_HOSTNAME: "My Double Action Server"
DAB_RCON_PASSWORD: "changeme"
user: root
cap_add:
- SYS_ADMIN
security_opt:
- apparmor:unconfined
restart: unless-stopped
How It Starts
PostInitialization/10-InitializeWinePrefix.ps1(from the WINE image) creates the Wine prefix in/config/wineprefix.PostInitialization/20-InstallDoubleAction.ps1:- runs SteamCMD with
+@sSteamCmdForcePlatformType windows +app_info_update 1 +app_update 317800intoServer/. It retries withvalidate(STEAM_INSTALL_ATTEMPTS) untilsrcds.exeanddab/bin/server.dllexist. - chowns
Server/to the server user and remounts the overlay, so the new files show up inMerged/.
- runs SteamCMD with
START_EXE(/usr/local/bin/dab-server) writesdab/cfg/lancommander.cfgfrom theDAB_*variables, then runswine-run srcds.exe -console -game dab -condebug -port <DAB_PORT> +maxplayers <DAB_MAX_PLAYERS> <DAB_EXTRA_ARGS> +servercfgfile lancommander.cfg +map <DAB_MAP>under Xvfb. It also followsda_info/console.logto stdout.
The first start downloads about 2.3 GB from Steam, so it takes several minutes. Under Wine the server answers queries about a minute after Starting: srcds.exe ....
Why Wine
The Linux depot of app 317800 is the 2014 release: its srcds_linux crashes in BreakpadMiniDumpSystemInit. Its game content depot is shared with the game and has been updated since, but it only contains Windows binaries (dab/bin/server.dll), with no server.so. The Windows engine from the same app loads the current server.dll under Wine.
Configuration Options
Ports
- 27015/udp: game traffic and server queries (
DAB_PORT) - 27015/tcp: RCON. srcds listens on the container's IP address, not on
127.0.0.1.
Environment Variables
See the README for the full table.
Server Configuration
The stock dab/cfg/server.cfg runs on every map load. It sets hostname "Double Action: Boogaloo", sv_lan 0, bot_quota 2 and sv_allow_votes 1, then runs banned_ip.cfg, banned_user.cfg and server_custom.cfg (none of which ship with the game). Because it runs after the command line, cvars passed as +cvar arguments would be overridden.
So dab-server sets servercfgfile to a generated dab/cfg/lancommander.cfg, which runs on every map load:
exec "server.cfg" // DAB_SERVER_CFG
hostname "..." // DAB_HOSTNAME
sv_lan "1" // DAB_LAN
sv_password "" // DAB_PASSWORD
rcon_password "..." // DAB_RCON_PASSWORD
Put your own settings in Overlay/dab/cfg/server_custom.cfg, which the stock server.cfg runs. To replace the stock file entirely, overlay dab/cfg/server.cfg or set DAB_SERVER_CFG to another file in dab/cfg/. lancommander.cfg is rewritten on every start, so don't edit it. valve.rc and autoexec.cfg run once at server start.
Maps
The game ships da_cocaine, da_doubletrouble, da_holdingcell, da_megachat, da_morgendorffer, da_official, da_rooftops, da_sacred, da_streets and da_trainingday. dab/mapcycle.txt holds the rotation (all ten maps); overlay dab/mapcycle.txt or dab/cfg/mapcycle.txt to change it.
Hooks
| Hook | When |
|---|---|
PreSteamInstallGame / PostSteamInstallGame | Around the SteamCMD install of app 317800 |
PreInitializeWinePrefix / PostInitializeWinePrefix | Around Wine prefix creation (WINE image) |
Put .ps1 scripts in config/Scripts/Hooks/<HookName>/.
Troubleshooting
ERROR! Failed to install app '317800' (Missing configuration)in the SteamCMD output: a fresh SteamCMD fails the first attempt with this error. The hook retries, and the second attempt installs the app.- Clients can't join: version mismatch: the image always installs the newest content from Steam. Compare
PatchVersionindab/steam.infon the server and the client, and update the client. hostnameorsv_lanisn't what you set: a cfg that runs afterlancommander.cfgsets it, e.g. a map config. Set it inserver_custom.cfgor use theDAB_*variables.- No output in
docker logsafterStarting: srcds.exe ...: srcds writes its console toda_info/console.log(DAB's write path, next todab/) only after the engine has started. The first start under Wine can take a minute. - Harmless console messages:
prop_dynamic_override ... no matching entry in propdata.txt,No such file scripts/weapons/...,Error loading cfg/trusted_keys_base.txt,'banned_ip.cfg' not presentand'server_custom.cfg' not presentappear on every map load.