-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
43 lines (33 loc) · 1001 Bytes
/
compose.yaml
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
version: '3'
services:
arduino-ide:
image: arduino-ide.local
build:
context: .
dockerfile: Dockerfile
args:
DOCKER_SRC: dockyland/arduino-ide:2.2.1
USER_UID: ${USER_UID}
USER_GID: ${USER_GID}
PLUGDEV_GROUP_ID: ${PLUGDEV_GROUP_ID}
DIALOUT_GROUP_ID: ${DIALOUT_GROUP_ID}
container_name: arduino-ide-container
network_mode: host
privileged: true
environment:
- DISPLAY=${DISPLAY}
- XDG_RUNTIME_DIR=${XDG_RUNTIME_DIR}
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix
- /dev:/dev
- ${PWD}/arduino-cli.yaml:/home/docky/.arduinoIDE/arduino-cli.yaml
- ${PWD}/CLI-init.sh:/workspace/CLI-init.sh
- ${PWD}/project:/workspace/project
- arduino15:/home/docky/.arduino15
- arduinoIDE:/home/docky/.arduinoIDE
- workspace:/workspace
command: sh -c "bash /workspace/CLI-init.sh && arduino-ide /workspace/project"
volumes:
arduino15:
arduinoIDE:
workspace: