initial commit
This commit is contained in:
commit
efd576a287
6
Dockerfile
Normal file
6
Dockerfile
Normal 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
23
README.md
Normal 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
12
docker-compose.yml
Normal 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
|
Loading…
Reference in New Issue
Block a user