-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
70 lines (67 loc) · 2.4 KB
/
docker-compose.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
version: '3.6'
services:
aravis:
# Ensures when container crashes or host reboots, it should start up.
restart: unless-stopped
network_mode: "host" # Allows direct GigE access and X11 forwarding
privileged: true # All USB devices, even when hotplugged
environment:
# These allow x11 forwarding if whomever starts the container has them set
- DISPLAY
- LIBGL_ALWAYS_INDIRECT
build:
dockerfile: builder.dockerfile
context: ./docker
target: aravis-dev
# This ensures the current directory is installed in editable mode.
command: [ "bash", "-c", "python3 -m pip install -e /src && sleep infinity"]
volumes:
# Using variables here allows them to be over-ridden, but have sane defaults
- ${SRC_DIR:-.}:/src
- ${OUTPUT_DIR:-/media/powerplant-sink/}:/output/
- "/dev/bus/usb:/dev/bus/usb" # All USB devices, even when hotplugged
# This only makes sense if you can locate the Chronoptics SDK
multi-sdk:
restart: unless-stopped
network_mode: "host"
environment:
- DISPLAY
- LIBGL_ALWAYS_INDIRECT
build:
dockerfile: builder.dockerfile
context: ./docker
target: multi-sdk-dev
command: [ "bash", "-c", "python3 -m pip install -e /src && sleep infinity"]
volumes:
- ${SRC_DIR:-.}:/src
- ${OUTPUT_DIR:-/media/powerplant-sink/}:/output/
ros-dev:
restart: unless-stopped
network_mode: "host" # Allows direct GigE access and X11 forwarding
privileged: true # All USB devices, even when hotplugged
environment:
# These allow x11 forwarding if whomever starts the container has them set
- DISPLAY
- LIBGL_ALWAYS_INDIRECT
- TZ="Pacific/Auckland"
# image: althack/ros2:humble-dev # https://github.com/athackst/dockerfiles/tree/main/ros2
build:
dockerfile: humble.Dockerfile
context: ./docker/ros
target: dev
# This ensures the current directory is installed in editable mode.
# entrypoint: /bin/bash
command: [ "sleep", "infinity"]
cap_add:
- SYS_PTRACE
security_opt:
- seccomp:unconfined
volumes:
# Using variables here allows them to be over-ridden, but have sane defaults
- ${SRC_DIR:-.}:/src
- ros_workspace:/ros_workspace
- ${OUTPUT_DIR:-/media/powerplant-sink/}:/output/
- "/dev/bus/usb:/dev/bus/usb" # All USB devices, even when hotplugged
volumes:
output:
ros_workspace: