commit efd576a2870e26a0a17606ddd30c7e1a8454f5ec Author: ale Date: Mon Apr 22 19:15:18 2024 +0200 initial commit diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..38e744a --- /dev/null +++ b/Dockerfile @@ -0,0 +1,6 @@ +FROM nvidia/opengl:base +RUN apt update && apt install -y git make gcc libsdl2-dev && apt clean +RUN git clone --depth 1 https://github.com/Q3Rally-Team/q3rally /q3rally +WORKDIR /q3rally +RUN cd engine && ./make-linux-portable.sh x86_64 +ENTRYPOINT ["./run.sh"] diff --git a/README.md b/README.md new file mode 100644 index 0000000..e46b59b --- /dev/null +++ b/README.md @@ -0,0 +1,23 @@ +# Q3Rally docker + +### Play the [Q3Rally](https://github.com/Q3Rally-Team/q3rally) game with docker and docker compose + +![Q3Rally](game.png) + +## Build + +``` +$ docker compose build +``` + +## Usage + +``` +$ xhost +local:debian +$ docker compose up +$ docker compose down +``` + +## License + + MIT diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..c69aef1 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,12 @@ +version: '3' + +services: + q3rally: + build: . + image: q3rally + container_name: q3rally + environment: + - DISPLAY=unix$DISPLAY + - NVIDIA_VISIBLE_DEVICES=all + - XDG_RUNTIME_DIR=/run/user/1000 + network_mode: host diff --git a/game.png b/game.png new file mode 100644 index 0000000..b95b980 Binary files /dev/null and b/game.png differ