From 51373d1f4193fc5d4822c573d004c7311f603220 Mon Sep 17 00:00:00 2001 From: Andrey Arapov Date: Thu, 1 Mar 2018 20:05:37 +0100 Subject: [PATCH] support new graphic cards --- Dockerfile | 5 +++++ README.md | 9 +++++++++ docker-compose.yml | 10 +++++++--- 3 files changed, 21 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2741c40..3976626 100644 --- a/Dockerfile +++ b/Dockerfile @@ -68,6 +68,11 @@ COPY ./resolv.conf /etc/resolv.dnsmasq # when microphone is accessed via push-to-talk. RUN echo "enable-shm = no" >> /etc/pulse/client.conf +# Get newer MESA to support new GPU (graphic cards) +RUN echo "deb http://deb.debian.org/debian jessie-backports main" | tee -a /etc/apt/sources.list +RUN apt-get update +RUN apt-get -y -t jessie-backports install libegl1-mesa-drivers:amd64 libegl1-mesa-drivers:i386 libgl1-mesa-dri:amd64 libgl1-mesa-dri:i386 libgl1-mesa-glx:amd64 libgl1-mesa-glx:i386 libglapi-mesa:amd64 libglapi-mesa:i386 libegl1-mesa:amd64 libegl1-mesa:i386 libgbm1:amd64 libgbm1:i386 libopenvg1-mesa:amd64 libopenvg1-mesa:i386 libwayland-egl1-mesa:amd64 libwayland-egl1-mesa:i386 + # locale-gen: Generate locales based on /etc/locale.gen file # update-locale: Generate config /etc/default/locale (later read by /etc/pam.d/su, /etc/pam.d/login, /etc/pam.d/polkit-1) RUN sed -i.orig '/^# en_US.UTF-8.*/s/^#.//g' /etc/locale.gen && \ diff --git a/README.md b/README.md index 26b2575..d436083 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,15 @@ with the following GPU's: - Intel HD Graphics 4400 - NVIDIA's GeForce GTX 560 Ti +### 01.03.2018 + +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 +with AMD Radeon Pro 560 graphic card: + +- Half-Life: Counter-Strike 1.6 + +> For running games on AMD Radeon please uncomment ``/dev/kfd`` device in the docker-compose.yml file. + ## Requirements - [Docker](https://www.docker.com/) diff --git a/docker-compose.yml b/docker-compose.yml index 3a9951e..c8248c4 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -29,13 +29,17 @@ services: - /usr/lib64:/h13_64:ro dns: steam # a DNS cache is needed to avoid upstream bug https://github.com/ValveSoftware/steam-for-linux/issues/3401 devices: + # Common: + - /dev/dri + # - /dev/snd + # NVIDIA: - /dev/nvidia0 - /dev/nvidiactl - /dev/nvidia-uvm - # uncomment this when running NVIDIA Driver >= 361 + # NVIDIA driver >= 361: - /dev/nvidia-modeset - - /dev/dri - # - /dev/snd + # AMD/ATI Radeon: + # - /dev/kfd environment: - DISPLAY=unix$DISPLAY - PULSE_SERVER=unix:$XDG_RUNTIME_DIR/pulse/native