22EDPM bootc image builder
33========================
44
5+ Pre-requesites can be installed by running::
6+
7+ make host-deps
8+
59To build a CentOS-9-Stream based bootc EDPM container image, run the following
6- command::
10+ commands::
11+
12+ export EDPM_BOOTC_REPO=quay.io/<account>/edpm-bootc
13+ export EDPM_BOOTC_TAG=centos9
14+ make build
15+ sudo podman push $EDPM_BOOTC_REPO:$EDPM_BOOTC_TAG
16+
17+ To build a RHEL-9.4 based bootc EDPM container image using internal
18+ repositories, install the required certificates then run the following
19+ commands::
20+
21+ # switch to RHEL-9.4 images
22+ export BUILDER_IMAGE=registry.redhat.io/rhel9/bootc-image-builder:9.4
23+ export EDPM_BASE_IMAGE=registry.redhat.io/rhel9/rhel-bootc:9.4
24+
25+ # Config to build repository files for internal repos
26+ export CURL_CA_BUNDLE=/etc/pki/ca-trust/extracted/openssl/ca-bundle.trust.crt
27+ export REPO_SETUP_DISTRO=rhel9
28+ export REPO_SETUP=current-podified
29+ export REPO_SETUP_BRANCH=osp18
30+ export REPO_SETUP_MIRROR=<mirror for internal repos>
31+ export REPO_SETUP_EXTRA="rhos-release ceph-6.0 -r 9.4 -t yum.repos.d"
32+
33+ # login to the registry
34+ sudo podman login registry.redhat.io
35+
36+ export EDPM_BOOTC_REPO=quay.io/<account>/edpm-bootc
37+ export EDPM_BOOTC_TAG=rhel9-rhos-release
38+ make build
39+ sudo podman push $EDPM_BOOTC_REPO:$EDPM_BOOTC_TAG
40+
41+ To build a RHEL-9.4 based bootc EDPM container using published packages, run
42+ the following commands::
43+
44+ # switch to RHEL-9.4 images
45+ export BUILDER_IMAGE=registry.redhat.io/rhel9/bootc-image-builder:9.4
46+ export EDPM_BASE_IMAGE=registry.redhat.io/rhel9/rhel-bootc:9.4
47+
48+ # make a custom copy of the subscription-manager script and edit it for
49+ # your registration details
50+ cp rhsm.sh rhsm-custom.sh
51+ export RHSM_SCRIPT=rhsm-custom.sh
752
853 export EDPM_BOOTC_REPO=quay.io/<account>/edpm-bootc
54+ export EDPM_BOOTC_TAG=rhel9-rhsm
955 make build
10- sudo podman push $EDPM_BOOTC_REPO:latest
56+ sudo podman push $EDPM_BOOTC_REPO:$EDPM_BOOTC_TAG
1157
1258To convert this container image to ``output/edpm-bootc.qcow2 ``, run the
1359following command::
@@ -18,12 +64,14 @@ To package ``edpm-bootc.qcow2`` inside a container image EDPM baremetal
1864deployment, run the following command::
1965
2066 make package
21- sudo podman push $EDPM_BOOTC_REPO:latest -qcow2
67+ sudo podman push $EDPM_BOOTC_REPO:$EDPM_BOOTC_TAG -qcow2
2268
23- To deploy EDPM baremetal with this image, customize the ``baremetalSetTemplate `` with::
69+ To deploy EDPM baremetal with this image, customize the
70+ ``baremetalSetTemplate `` substituting values for ``<EDPM_BOOTC_REPO> `` and
71+ ``<EDPM_BOOTC_TAG> `` ::
2472
2573 kind: OpenStackDataPlaneNodeSet
2674 spec:
2775 baremetalSetTemplate:
28- osContainerImageUrl: quay.io/<account>/edpm-bootc:latest -qcow2
76+ osContainerImageUrl: <EDPM_BOOTC_REPO>:<EDPM_BOOTC_TAG> -qcow2
2977 osImage: edpm-bootc.qcow2
0 commit comments