-
Notifications
You must be signed in to change notification settings - Fork 1
/
justfile
44 lines (42 loc) · 1.29 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
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-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