-
Notifications
You must be signed in to change notification settings - Fork 107
/
docker-compose.yml
91 lines (89 loc) · 1.98 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
version: '2.4'
services:
devel:
image: local/osbuild-composer-devel
build:
context: .
dockerfile: ./.devcontainer/Dockerfile
volumes:
- config:/etc/osbuild-composer
- weldr:/run/weldr
- dnf-json:/run/osbuild-dnf-json
- .:/workspace
- go-cache:/root/.cache/go-build
- go-mod:/root/go/pkg/mod
networks:
net:
ipv4_address: 172.30.0.2
working_dir: /workspace
command: /bin/sh -c "while sleep 1000; do :; done"
create-config:
image: local/osbuild-composer-create-config
build:
context: .
dockerfile: ./distribution/Dockerfile-config
volumes:
- config:/config
composer:
image: local/osbuild-composer
build:
context: .
dockerfile: ./distribution/Dockerfile-ubi
entrypoint:
[
"python3",
"/opt/entrypoint.py",
"--weldr-api",
"--remote-worker-api",
"--composer-api",
"--composer-api-port",
"8080"
]
volumes:
- config:/etc/osbuild-composer
- weldr:/run/weldr
- dnf-json:/run/osbuild-dnf-json
networks:
net:
ipv4_address: 172.30.0.10
depends_on:
- create-config
worker:
image: local/osbuild-worker
build:
context: .
dockerfile: ./distribution/Dockerfile-worker
# override the entrypoint to specify composer hostname and port
entrypoint:
[
"/usr/libexec/osbuild-composer/osbuild-worker",
"composer:8700"
]
volumes:
- config:/etc/osbuild-composer
- dnf-json:/run/osbuild-dnf-json
environment:
- CACHE_DIRECTORY=/var/cache/osbuild-worker
privileged: true
cap_add:
- MKNOD
- SYS_ADMIN
- NET_ADMIN
networks:
net:
ipv4_address: 172.30.0.20
depends_on:
- "create-config"
- "composer"
networks:
net:
ipam:
driver: default
config:
- subnet: 172.30.0.0/16
volumes:
config:
weldr:
dnf-json:
go-cache:
go-mod: