-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
34 lines (33 loc) · 1.28 KB
/
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
services:
core-builder:
build:
context: ./docker/core-builder
dockerfile: Dockerfile
user: "${UID:-1000}:${GID:-1000}"
volumes:
- ./dist:/chipkit/dist
- ./tmp:/chipkit/tmp
environment:
- ANT_CACHE=/chipkit/tmp
- HOME=/tmp
command: bash -c "cd /chipkit && git config --global --add safe.directory '*' && ant linux32-build"
arduino-cli:
build:
context: ./docker/arduino-cli
dockerfile: Dockerfile
user: "${UID:-1000}:${GID:-1000}"
volumes:
- ./:/workspace
- ./arduino_data:/data
- ./dist/linux32/chipkit-core/pic32:/data/packages/chipKIT/hardware/pic32/2.1.0
- ./dist/linux32/chipkit-core/pic32/compiler/pic32-tools:/data/packages/chipKIT/tools/pic32-tools/1.43
# Map pic32prog to both locations to ensure it's available where needed
- ./dist/linux32/chipkit-core/pic32/tools/bin/pic32prog:/data/packages/chipKIT/hardware/pic32/2.1.0/tools/bin/pic32prog
- ./dist/linux32/chipkit-core/pic32/tools/bin/pic32prog:/data/packages/chipKIT/tools/pic32prog/1.0.0/pic32prog
- ./tmp:/workspace/tmp
environment:
- ARDUINO_DIRECTORIES_DATA=/data
- ARDUINO_DIRECTORIES_DOWNLOADS=/data/staging
- ARDUINO_DIRECTORIES_USER=/data/user
depends_on:
- core-builder