Amongst other things, this can be useful for:
- Automated E2E testing in the cloud (can run on Kubernetes)
- Manual testing with multiple CS:GO instances from one PC
- uses https://gitlab.com/Mr_Goldberg/goldberg_emulator to avoid the need for steam
- adds
LD_PRELOAD
forgameoverlayrenderer.so
(otherwise the game crashes)
docker build -t csgo .
CSGO_DIR=/home/mark/games/SteamLibrary/steamapps/common/Counter-Strike\ Global\ Offensive/
docker run --rm -it \
--name csgo \
--shm-size 256M \
-p 5800:5800 -p 5900:5900 \
-v csgo:/csgo -v $CSGO_DIR:/opt/csgo:ro \
-e USER_ID=1000 -e GROUP_ID=984 -e GAMEROOT=/opt/csgo \
csgo
Then go to http://localhost:5800/
This is heavily based on https://github.com/mikenye/docker-steam
The contents of this repository are licensed under the MIT license. However, CS:GO and the contents of any built docker image are subject to licenses from third parties, including Valve. No affiliation with Valve.