-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.dev.yml
38 lines (37 loc) · 1001 Bytes
/
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
version: '3.8'
services:
development:
build:
args:
UID: ${UID}
GID: ${GID}
USER: ${USER}
REPO: ${REPO}
context: .
dockerfile: Dockerfile
command: bash -c "source /opt/upstream/install/setup.sh &&
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:
- /dev:/dev
- ~/.ssh:${HOME}/.ssh:ro
- ~/.gitconfig:${HOME}/.gitconfig:ro
- ${PWD}:${HOME}/ws/src/${REPO}
- ~/.${REPO}/ccache:${HOME}/.ccache
- /tmp/.X11-unix:/tmp/.X11-unix:ro
- ${XDG_RUNTIME_DIR}:${XDG_RUNTIME_DIR}:ro
- /etc/group:/etc/group:ro
- /etc/passwd:/etc/passwd:ro
- /etc/shadow:/etc/shadow:ro
working_dir: ${HOME}/ws