-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
48 lines (45 loc) · 1.26 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
48 lines (45 loc) · 1.26 KB
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
services:
workspace:
build: .
container_name: micro_ros_workspace
environment:
DISPLAY: ${DISPLAY}
WAYLAND_DISPLAY: ${WAYLAND_DISPLAY}
XDG_RUNTIME_DIR: ${XDG_RUNTIME_DIR}
QT_X11_NO_MITSHM: "1"
GDK_BACKEND: x11
SDL_VIDEODRIVER: x11
volumes:
- ./src:/micro_ros_ws/src
- ./build:/micro_ros_ws/build
- ./install:/micro_ros_ws/install
- ./docs:/micro_ros_ws/docs
- ./firmware:/micro_ros_ws/firmware
- ./pcb:/micro_ros_ws/pcb
- ./wall_e_ws:/micro_ros_ws/wall_e_ws
- ./gas_robot_ws:/micro_ros_ws/gas_robot_ws
- /tmp/.X11-unix:/tmp/.X11-unix:rw
working_dir: /micro_ros_ws
command: >
bash -c "rosdep install --from-paths src --ignore-src -y 2>/dev/null || true
&& colcon build || echo 'Build failed, keeping container alive...'
&& tail -f /dev/null"
stdin_open: true
tty: true
devices:
- /dev/ttyUSB0:/dev/ttyUSB0
- /dev/input:/dev/input
networks:
- micro_ros_net
micro_ros_agent:
image: microros/micro-ros-agent:humble
container_name: micro_ros_agent
command: udp4 --port 9999
networks:
- micro_ros_net
networks:
micro_ros_net:
driver: bridge
volumes:
micro_ros_ws_build:
micro_ros_ws_install: