-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (37 loc) · 878 Bytes
/
docker-compose.yml
File metadata and controls
40 lines (37 loc) · 878 Bytes
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
name: ${PACKAGE_NAME}
services:
work:
build:
context: ./.docker
dockerfile: ./work/Dockerfile
args:
ros_distro: ${ROS_DISTRO}
user: "${USER_ID}:${GROUP_ID}"
working_dir: /home/ubuntu/ros_ws/src/pkg
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix:rw
- .:/home/ubuntu/ros_ws/src/pkg:rw
environment:
TERM: xterm-color
DISPLAY:
ROS_DOMAIN_ID:
RCUTILS_COLORIZED_OUTPUT:
post_start:
- command: |
chown -R ${USER_ID}:${GROUP_ID} /home/ubuntu
user: root
- command: |
sudo apt update && \
rosdep update && \
rosdep install -i --from-paths src/pkg -y
user: ubuntu
working_dir: /home/ubuntu/ros_ws
restart: always
ipc: host
privileged: true
networks:
- ros
tty: true
networks:
ros:
driver: bridge