-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.dev.yml
37 lines (35 loc) · 931 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
version: '3.8'
services:
development:
build:
args:
UID: ${UID}
GID: ${GID}
USER: ${USER}
REPO: ${REPO}
context: .
dockerfile: Dockerfile
command: bash -c "export PATH="/usr/lib/ccache:$PATH" &&
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}/${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}/${REPO}