-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcompose.yml
More file actions
58 lines (54 loc) · 1.82 KB
/
compose.yml
File metadata and controls
58 lines (54 loc) · 1.82 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
---
name: "fedora-remix"
version: "3"
services:
# Common template for kiwi-ng container isolation
x-kiwi-ng-container: &kiwi-ng-container
image: "livebuild:fc43"
privileged: true
devices:
- "/dev/loop-control"
# Note: Podman-compose appends the 'command' as the first positional argument.
# Since we use bash -c in the entrypoint, this argument is mapped to $$0.
entrypoint:
- /usr/bin/bash
- -c
- |
for i in $$(seq 0 7); do
if [ ! -b /dev/loop$$i ]; then
mknod /dev/loop$$i b 7 $$i
fi
done
echo "Running: $$0" && exec $$0
build:
context: .
args:
FEDORA_VERSION: "43"
volumes:
- ".:/live/source:ro"
- "${KIWI_TARGET_DIR:-.}:/live/target"
restart: "no"
# Build a live image
system-build:
<<: *kiwi-ng-container
command:
- >
kiwi-ng --profile=${KIWI_PROFILE:-Workstation-l10n} --type=iso --debug
--color-output --shared-cache-dir=/live/target/cache system build
--description=/live/source/kiwi-descriptions --target-dir=/live/target
# Build a live image with virtual guest support
system-build-guest:
<<: *kiwi-ng-container
command:
- >
kiwi-ng --profile=${KIWI_PROFILE:-Workstation-l10n} --profile=LiveVirtualGuest
--type=iso --debug --color-output --shared-cache-dir=/live/target/cache
system build --description=/live/source/kiwi-descriptions --target-dir=/live/target
# Create an image from the previously prepared root directory
system-create:
<<: *kiwi-ng-container
command:
- >
kiwi-ng --profile=${KIWI_PROFILE:-Workstation-l10n} --type=iso --debug
--color-output --shared-cache-dir=/live/target/cache system create
--root=/live/target/build/image-root --target-dir=/live/target