GoldenEye: Source Docker Container
This Docker container runs a GoldenEye: Source dedicated server. It is built on the WINE image. GE:S has only a Windows server, so the container runs the Windows Source 2007 Dedicated Server (srcds.exe -game gesource) under Wine.
Quick Start
services:
goldeneyesource:
image: lancommander/goldeneyesource:latest
container_name: goldeneyesource
ports:
- 27015:27015/udp
- 27015:27015/tcp
volumes:
- "/data/Servers/GoldenEye - Source/Deathmatch:/config"
environment:
GES_HOSTNAME: "My GoldenEye: Source Server"
GES_RCON_PASSWORD: "changeme"
user: root
cap_add:
- SYS_ADMIN
security_opt:
- apparmor:unconfined
restart: unless-stopped
Before the first start, download GoldenEye_Source_v5.0.6_full_server_windows.7z from geshl2.com/server-downloads and put it in the /config volume. ModDB, which hosts it, doesn't allow scripted downloads. You can instead set GES_ARCHIVE to an http(s) URL where you host the file.
How It Starts
PostInitialization/10-InitializeWinePrefix.ps1(from the WINE image) creates the Wine prefix in/config/wineprefix.PostInitialization/20-InstallGoldenEyeSource.ps1:- runs SteamCMD with
+@sSteamCmdForcePlatformType windows +app_update 310intoServer/. The Linux build of app 310 can't load the GE:S server DLLs, so the hook always installs the Windows depot. - checks the GE:S archive against
GES_ARCHIVE_SHA256, extracts it with 7-Zip and moves itsgesource/folder toServer/gesource/. The archive's hash is saved inServer/gesource/.lancommander-archive. The mod is reinstalled only whenGES_ARCHIVE_SHA256(or, with no hash,GES_ARCHIVE) changes. Delete the marker to force a reinstall. - 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/ges-server) runswine-run srcds.exe -console -game gesource -condebug -port <GES_PORT> +maxplayers ... +map <GES_MAP>under Xvfb. It also followsgesource/console.logto stdout.
The first start downloads about 3 GB from Steam and extracts the 2 GB GE:S archive, so it takes several minutes. Later starts skip the extraction.
A successful start ends with:
Attempting to load scenario: deathmatch
Loading scenario DeathMatch from disk
Successfully loaded scenario deathmatch!
Why Wine
The archive also contains a Linux gesource/bin/server_i486.so, but it isn't usable. Running on the Linux build of app 310, it needs libldap_r-2.4.so.2 (no longer in Debian 12). With that supplied, it still aborts during the map load (free(): invalid pointer, Invalid scenario ''). The GE:S team's own Linux guide runs the Windows server under Wine, as this image does.
Configuration Options
Ports
- 27015/udp: game traffic and server queries (
GES_PORT) - 27015/tcp: RCON
Environment Variables
See the README for the full table.
Maps
ge_archives, ge_aztec, ge_basement, ge_bunker, ge_casino, ge_caverns, ge_caves, ge_complex, ge_control, ge_cradle, ge_dam, ge_depot, ge_egyptian, ge_facility, ge_facility_backzone, ge_runway, ge_silo, ge_transition. N64-style versions: ge_archives_classic, ge_basement_classic, ge_bunker_classic, ge_complex_classic, ge_facility_classic, ge_library_classic, ge_stack_classic, ge_temple_classic.
Server Configuration
Put config files in Overlay/gesource/cfg/, so they're layered over the installed files. The archive ships several ready-made configs (server_dm_only.cfg, server_teamplay.cfg, server_n64_classic.cfg, ...), which you can select with GES_SERVER_CFG.
server.cfg(orGES_SERVER_CFG) runs on every map loadvalve.rcruns once at server startcfg/<gameplay>.cfgruns when that gameplay mode loadsmapcycle.txt/gameplaycycle.txthold the legacy map and gameplay cycles
See the GE:S server configuration reference.
The GES_* variables are passed as command-line cvars, which run before server.cfg. So a value that server.cfg sets for the same cvar (e.g. hostname) wins.
Hooks
| Hook | When |
|---|---|
PreSteamInstallGame / PostSteamInstallGame | Around the SteamCMD install of app 310 |
PreInstallGoldenEyeSource / PostInstallGoldenEyeSource | Around the GE:S archive install |
PreInitializeWinePrefix / PostInitializeWinePrefix | Around Wine prefix creation (WINE image) |
Put .ps1 scripts in config/Scripts/Hooks/<HookName>/.
Troubleshooting
GoldenEye: Source is not installed and GES_ARCHIVE (...) was not found: the archive isn't at theGES_ARCHIVEpath. Check the file name and that it's inside the/configvolume.sha256 mismatch: the archive isn't the official 5.0.6 server archive, or the download is incomplete. If you use another release on purpose, setGES_ARCHIVE_SHA256to its hash, or to empty to skip the check.- About 20% CPU when idle: this is normal for srcds under Wine.
- No output in
docker logsafterStarting: srcds.exe ...: srcds writes its console togesource/console.logonly after the engine has started. The first start under Wine can take a minute.