initial commit

This commit is contained in:
ale 2024-04-22 19:15:18 +02:00
commit efd576a287
4 changed files with 41 additions and 0 deletions

6
Dockerfile Normal file
View File

@ -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"]

23
README.md Normal file
View File

@ -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

12
docker-compose.yml Normal file
View File

@ -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

BIN
game.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 373 KiB