Dockerfile and build scripts for using https://github.com/ValveSoftware/steam-runtime in Docker
Docker images with the 32-bit and 64-bit Linux runtime environments built by https://github.com/ValveSoftware/steam-runtime. These are intended to be used to make Linux builds for Steam games on a Windows host.
Note: I'm only using the GCC version myself, CLANG versions are untested
Sources Dockerfiles
Prerequisites - Windows
First, open the Docker Quickstart Terminal at least once for it to do initial setup.
Recommended: if you want to set the VM disk maximum size to more than the default 20GB (it auto-grows to this limit, it won't actually take 100gb if you set the max to 100gb), use the Docker Quickstart Terminal
docker-machine stop default
docker-machine rm default
docker-machine create -d virtualbox --virtualbox-disk-size "100000" default
Next need to set up the shares so processes in your Docker image can get at your files. I'm only running build processes (inherently trusted), so simply share my entire drive(s). Again using Docker Quickstart Terminal:
docker-machine stop default
docker-machine start default
Finally, to actually use these images, open your favorite terminal (or keep using the Docker Quickstart Terminal) and navigate to the example/ folder
docker-machine env --shell=cmd default
- get these variables into your environment via copy and paste or following the instructions - you'll need to do this in any automated scripts that make use of Docker.docker build -t steamrt-example .
- only need to do this once, or when you make changes to example/Dockerfile
docker run -it --rm -v /C/:/C steamrt-example bash
docker run -i --rm -v /C/:/C steamrt-example bash -c "mkdir -p /C/SRC/MyProject/build/ && cd /C/SRC/MyProject/build && cmake .. && make"