-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
58 lines (51 loc) · 1.23 KB
/
docker-compose.yml
File metadata and controls
58 lines (51 loc) · 1.23 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
49
50
51
52
53
54
55
56
57
58
services:
chaos-builder:
build:
context: .
dockerfile: Dockerfile
args:
BUILDER_UID: ${BUILDER_UID:-1000}
BUILDER_GID: ${BUILDER_GID:-1000}
image: chaos-builder:latest
container_name: chaos-builder
platform: linux/amd64
hostname: chaos-build
stdin_open: true
tty: true
volumes:
- ./src:/src
- ./keys:/keys
- ./assets:/assets
- ./out:/src/out
- ./scripts:/scripts:ro
- ./config:/config:ro
- ccache:/ccache
environment:
- DEVICE=komodo
- BUILD_ID=ChaOS
- CCACHE_DIR=/ccache
- USE_CCACHE=1
- CCACHE_MAXSIZE=50G
- CCACHE_EXEC=/usr/bin/ccache
- QEMU_STACK_SIZE=8388608
deploy:
resources:
limits:
cpus: "20"
memory: 120G
reservations:
cpus: "16"
memory: 64G
# USB passthrough for ADB/fastboot
devices:
- /dev/bus/usb:/dev/bus/usb
# Relaxed security for qemu-user x86 emulation on ARM64 host
security_opt:
- seccomp:unconfined
privileged: false
# Keep container alive for interactive use
command: ["-c", "sleep infinity"]
entrypoint: ["/bin/bash"]
volumes:
ccache:
name: chaos-ccache