-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
100 lines (95 loc) · 2.51 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
---
services:
eval-base:
image: aichallenge-2024:eval-base
build:
context: .
dockerfile: ./docker/Dockerfile
target: eval
dev-base:
image: aichallenge-2024:dev-base
build:
context: .
dockerfile: ./docker/Dockerfile
target: dev
eval:
depends_on:
- eval-base
image: aichallenge-2024:eval
build:
context: .
dockerfile: ./docker/Dockerfile.eval
args:
BASE_IMAGE: aichallenge-2024:eval-base
UID: ${UID:-1000}
GID: ${GID:-1000}
USERNAME: ${USERNAME}
container_name: aic
stdin_open: true
tty: true
init: true
network_mode: host
user: ${USERNAME}
environment:
- DISPLAY=${DISPLAY}
- QT_X11_NO_MITSHM=1
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix:rw
privileged: true
devices:
- /dev/dri:/dev/dri
command: /bin/bash -i -c "echo -e 'start aichallenge!' && sleep infinity"
dev:
depends_on:
- dev-base
image: aichallenge-2024:dev
build:
context: .
dockerfile: ./docker/Dockerfile.dev
args:
BASE_IMAGE: aichallenge-2024:dev-base
UID: ${UID:-1000}
GID: ${GID:-1000}
USERNAME: ${USERNAME}
container_name: aic
stdin_open: true
tty: true
init: true
network_mode: host
user: ${USERNAME}
environment:
- TZ=Asia/Tokyo
- DISPLAY=${DISPLAY}
- QT_X11_NO_MITSHM=1
- SSH_AUTH_SOCK=/ssh-auth-sock
- AWSIM_PATH=/aichallenge/simulator/AWSIM_CPU
# - "RCUTILS_CONSOLE_OUTPUT_FORMAT=[{severity}] [{time}] [{name}] [{file_name}:{line_number}:{function_name}]: {message}" # set the ROS2 log format
volumes:
- ${AIC_HOME}/aichallenge-2024/output:/output
- ${AIC_HOME}/aichallenge-2024/aichallenge:/aichallenge
- ${AIC_HOME}/autoware-practice:/autoware-practice
- /tmp/.X11-unix:/tmp/.X11-unix:rw
- ${SSH_AUTH_SOCK}:/ssh-auth-sock
- ${HOME}/.ssh:${HOME}/.ssh
- ${HOME}/.tmux:${HOME}/.tmux
- ${HOME}/.tmux.conf:${HOME}/.tmux.conf
- bash_history:/commandhistory
- user_config:${HOME}/.config
- ros2_log:${HOME}/.ros/log
- ccache:${HOME}/.cache/ccache
- vscode_server:${HOME}/.vscode-server
privileged: true
devices:
- /dev/dri:/dev/dri
command: /bin/bash -i -c "echo -e 'start aichallenge!' && sleep infinity"
volumes:
bash_history:
driver: local
user_config:
driver: local
ros2_log:
driver: local
ccache:
driver: local
vscode_server:
driver: local