-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
64 lines (60 loc) · 1.79 KB
/
justfile
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
comps-sync:
#!/usr/bin/env bash
pushd ./scripts/comps-sync
podman build \
-t localhost/comps-sync \
.
popd
rm -rf fedora-comps
git clone https://pagure.io/fedora-comps.git
version=$(jq -r '.Labels."redhat.version-id"' fedora-bootc-config.json)
echo "Version: $version"
podman run \
--rm \
-v $(pwd):/mnt:Z \
localhost/comps-sync \
/app/comps-sync.py \
/mnt/fedora-comps/comps-f${version}.xml.in --save
build-minimal:
podman build \
--security-opt label=disable \
--cap-add=all \
--device /dev/fuse \
--no-cache \
--build-arg MANIFEST=./fedora-bootc-minimal.yaml \
-t localhost/fedora-bootc-minimal \
.
build-full:
podman build \
--security-opt label=disable \
--cap-add=all \
--device /dev/fuse \
--no-cache \
--build-arg MANIFEST=./fedora-bootc-full.yaml \
-t localhost/fedora-bootc-full \
.
build-atomic desktop:
podman build \
--security-opt label=disable \
--cap-add=all \
--device /dev/fuse \
--build-arg MANIFEST=./fedora-bootc-atomic-{{desktop}}.yaml \
-t localhost/fedora-bootc-atomic-{{desktop}} \
.
build-atomic-qcow desktop:
#!/usr/bin/env bash
pushd .osbuild
mkdir -p output
sudo podman run \
--rm \
-it \
--privileged \
--pull=newer \
--security-opt label=type:unconfined_t \
-v $(pwd)/config.toml:/config.toml \
-v $(pwd)/output:/output -v /var/lib/containers/storage:/var/lib/containers/storage \
quay.io/centos-bootc/bootc-image-builder:latest \
--type qcow2 --rootfs ext4 \
--local localhost/fedora-bootc-atomic-{{desktop}}:latest
popd
sudo chown -R $(whoami):$(whoami) .osbuild/output