-
Notifications
You must be signed in to change notification settings - Fork 4
/
compose.dev.yml
40 lines (39 loc) · 1.23 KB
/
compose.dev.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
version: '3.8'
services:
development:
build:
args:
UID: ${UID}
GID: ${GID}
USER: ${USER}
REPO: ${REPO}
context: .
dockerfile: Dockerfile
command: bash -c "source /usr/share/colcon_argcomplete/hook/colcon-argcomplete.bash &&
colcon mixin add default https://raw.githubusercontent.com/colcon/colcon-mixin-repository/master/index.yaml &&
colcon mixin update &&
export PATH="/usr/lib/ccache:$PATH" &&
source /opt/ros/humble/setup.bash &&
bash"
container_name: ${USER}-${REPO}-dev
environment:
- DISPLAY=${DISPLAY}
- QT_X11_NO_MITSHM=1
- ROS_DOMAIN_ID=0
- TERM=xterm-256color
extra_hosts:
- ${REPO}-dev:127.0.0.1
hostname: ${REPO}-dev
image: ${REPO}-dev:latest
network_mode: host
privileged: true
volumes:
- ~/.ssh:${HOME}/.ssh:ro
- ~/.gitconfig:${HOME}/.gitconfig:ro
- ${PWD}:${HOME}/ws/src/${REPO}
- ~/.${REPO}/ccache:${HOME}/.ccache
- /tmp/.X11-unix:/tmp/.X11-unix:ro
- /etc/group:/etc/group:ro
- /etc/passwd:/etc/passwd:ro
- /etc/shadow:/etc/shadow:ro
working_dir: ${HOME}/ws