-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
executable file
·31 lines (30 loc) · 1 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
services:
libdinorunner:
build: .
user: dino_runner
volumes:
- .:/home/dino_runner/dinorunner
working_dir: /home/dino_runner/dinorunner
command: >
bash -c "cmake -DCMAKE_BUILD_TYPE=Release -S dinorunner -B dinorunner/build && cmake --build dinorunner/build"
dinorunner:
build: .
user: dino_runner
network_mode: "host"
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix
- $HOME/.ssh:/home/dinorunner/.ssh
- .:/home/dino_runner/dinorunner
- /dev/dri:/dev/dri
- $XDG_RUNTIME_DIR/pulse/native:$XDG_RUNTIME_DIR/pulse/native
environment:
- DISPLAY=$DISPLAY
- SSH_AUTH_SOCK=/tmp/ssh_auth_sock
- XAUTHORITY=$XAUTHORITY
- XDG_RUNTIME_DIR=$XDG_RUNTIME_DIR
- PULSE_SERVER=unix:$XDG_RUNTIME_DIR/pulse/native
working_dir: /home/dino_runner/dinorunner
depends_on:
- libdinorunner
command: >
bash -c "cmake -DCMAKE_BUILD_TYPE=Release -S demo -B demo/build && cmake --build demo/build && demo/bin/dinorunner_sdl"