-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (31 loc) · 1004 Bytes
/
Makefile
File metadata and controls
32 lines (31 loc) · 1004 Bytes
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
OCI_IMAGE ?= ghcr.io/compphy/framework-fedora-bootc:latest
DISK_TYPE ?= raw
ROOTFS ?= ext4
ARCH ?= amd64
# Use upsteam build:
# BIB_IMAGE ?= quay.io/centos-bootc/bootc-image-builder:latest
# Use local build:
BIB_IMAGE ?= localhost/bootc-image-builder:latest
# See https://github.com/osbuild/bootc-image-builder
.PHONY: disk-image
disk-image:
podman build -t framework-fedora-bootc $(CURDIR)
podman build -t bootc-image-builder $(CURDIR)/bootc-image-builder
mkdir -p ./output
mkdir -p /var/lib/containers/storage
sed -e 's;@@IMAGE@@;$(OCI_IMAGE);g' config.toml.in > config.toml
podman pull $(OCI_IMAGE)
podman run \
--rm \
-it \
--privileged \
--security-opt label=type:unconfined_t \
-v ./config.toml:/config.toml:ro \
-v ./output:/output \
-v /var/lib/containers/storage:/var/lib/containers/storage \
$(BIB_IMAGE) \
--target-arch $(ARCH) \
--type $(DISK_TYPE) \
--rootfs $(ROOTFS) \
--use-librepo \
localhost/framework-fedora-bootc:latest