update readme

pull/20/merge
Andy 6 years ago
parent 9b288b788d
commit c1eb6885e3
Signed by: arno
GPG Key ID: 9076D5E6B31AE99C

@ -2,23 +2,18 @@
## Why? ## Why?
Some people asked me why would someone want to have Steam in a Docker container? 1. I want to set-up more fences when running the code I cannot always trust nor verify; [issue 3671](https://github.com/valvesoftware/steam-for-linux/issues/3671)
Few main points which pushed me making this Docker container: 2. I do not want to be spending time figuring out how to install Steam (what deps) in a non-Debian (or non-SteamOS) based distro;
3. I like cleanliness: I can erase Steam and all its dependencies in a matter of seconds by just removing this image;
4. I can have Steam on my Ubuntu/openSUSE/[put any other distro I will want to use] in a short time that Docker takes to download this image;
1. I want to set-up more fences when running the code I don't/can't trust; [issue 3671](https://github.com/valvesoftware/steam-for-linux/issues/3671) > Suggestions / PR's are welcome!
2. I don't want to spend time on figuring out how to install Steam (what deps) in a non-Debian (or non-SteamOS) based distro;
3. I like cleanliness: I can erase Steam and all its dependencies in a matter of seconds;
And few Pros from my PoV:
- I can have Steam on my Ubuntu/openSUSE/[put any other distro I will want to use] in a short time that Docker takes when downloads this Steam container;
- Since Steam is meant to run in Debian (SteamOS) based distro, it is not a problem anymore, since it is in a container now.
Suggestions / PR's are welcomed!
## What's tested? ## What's tested?
The following games have been tested: ### 2016-2017
Games:
- Counter-Strike: Global Offensive - Counter-Strike: Global Offensive
- Alien: Isolation - Alien: Isolation
@ -29,20 +24,24 @@ The following games have been tested:
- Toribash - Toribash
- DeadCore (no sound) - DeadCore (no sound)
Tested in Ubuntu 16.04 LTS (64bit) and openSUSE Leap 42.1 OS:
with the following GPU's:
- Intel HD Graphics 3000 - Linux: Ubuntu 16.04 LTS (64-bit)
- Intel HD Graphics 4400 - Linux: openSUSE Leap 42.1 (64-bit)
- NVIDIA's GeForce GTX 560 Ti
### 01.03.2018 HW:
The following games have been tested in Ubuntu 16.04 LTS (64bit) running on Apple MacBook Pro "Core i7" 2.9 15" Touch/Mid-2017 - Sony Vaio Pro 13
with AMD Radeon Pro 560 graphic card: - Lenovo X1 Carbon
- ASUS P8Z68-V PRO/GEN3
- Apple MacBook Pro "Core i7" 2.9 15" Touch/Mid-2017
- Counter-Strike: Global Offensive GPU:
- Half-Life: Counter-Strike 1.6
- Intel HD Graphics 3000
- Intel HD Graphics 4400
- NVIDIA's GeForce GTX 560 Ti
- AMD Radeon Pro 560
> For running games on AMD Radeon please uncomment ``/dev/kfd`` device in the docker-compose.yml file. > For running games on AMD Radeon please uncomment ``/dev/kfd`` device in the docker-compose.yml file.
@ -55,7 +54,7 @@ with AMD Radeon Pro 560 graphic card:
## Launching Steam in Docker ## Launching Steam in Docker
The simplest way to launch Steam is by running: The simplest way to launch Steam is this:
```sh ```sh
git clone https://github.com/arno01/steam.git git clone https://github.com/arno01/steam.git
@ -63,8 +62,8 @@ cd steam
docker-compose run steam docker-compose run steam
``` ```
If Steam does not start, you may need to allow your user making local If Steam does not start, you may need to allow your user making connections to
connections to X server, which can be achieved with this command on host: your X server:
```sh ```sh
xhost +SI:localuser:$(id -un) xhost +SI:localuser:$(id -un)
@ -74,7 +73,7 @@ You can use the following shortcut function and place it to your `~/.bash_aliase
```sh ```sh
function docker_helper() { function docker_helper() {
pushd ~/docker/$1 pushd ~/github.com/$1
docker-compose rm -fa "$1" docker-compose rm -fa "$1"
docker-compose run -d --name "$1" "$@" docker-compose run -d --name "$1" "$@"
popd popd
@ -85,13 +84,15 @@ function steam() {
} }
``` ```
Then just use `steam` command to run Steam in docker. Then just use ``steam`` command to run Steam image.
## Updating Steam Docker image ## Updating image
You may want to re-run this command later on in order to keep the image updated: Re-run this command later on in order to keep the image updated:
```sh ```sh
cd steam/
git pull
VERSION=$(git rev-parse HEAD | head -c8) make VERSION=$(git rev-parse HEAD | head -c8) make
``` ```
@ -118,14 +119,12 @@ Trusted Path Execution (TPE)
This Steam docker image is working with the grsecurity patched kernel. This Steam docker image is working with the grsecurity patched kernel.
It only needs a `/proc/sys/kernel/grsecurity/tpe_gid` accessible by root for read. It only needs a `/proc/sys/kernel/grsecurity/tpe_gid` accessible by root for read.
### grsec: PaX ### grsec: PaX
It is also working with PaX part of the grsecurity. It is also working with PaX part of the grsecurity.
I have tested it with Half-Life games like CS 1.6, and CS:GO. I have tested it with Half-Life games like CS 1.6, and CS:GO.
Please refer to the `launch` file if grsecurity is blocking some executable or a library. Please refer to the `launch` file if grsecurity is blocking some executable or a library.
# Links # Links
Below is just bunch of links, someone might find them useful Below is just bunch of links, someone might find them useful

Loading…
Cancel
Save