You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: microshift_install/microshift-embed-in-rpm-ostree.adoc
+25-14Lines changed: 25 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,40 +9,51 @@ toc::[]
9
9
You can embed {product-title} into a {op-system-ostree-first}{op-system-version} image. Use this guide to build a {op-system} image containing {product-title}.
* link:https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/composing_installing_and_managing_rhel_for_edge_images/setting-up-image-builder_composing-installing-managing-rhel-for-edge-images#edge-image-builder-system-requirements_setting-up-image-builder[Image Builder system requirements].
* link:https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/composing_installing_and_managing_rhel_for_edge_images/setting-up-image-builder_composing-installing-managing-rhel-for-edge-images#edge-image-builder-system-requirements_setting-up-image-builder[Image Builder system requirements]
* For more details on creating a blueprint, read link:https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/composing_installing_and_managing_rhel_for_edge_images/composing-a-rhel-for-edge-image-using-image-builder-command-line_composing-installing-managing-rhel-for-edge-images#proc_creating-a-rhel-for-edge-container-image-blueprint-using-image-builder-cli_composing-a-rhel-for-edge-image-using-image-builder-command-line[creating a RHEL for Edge Container blueprint using image builder CLI].
27
-
* For further customizations such as adding users, firewall rules, or kernel arguments to a blueprint, read link:https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/composing_installing_and_managing_rhel_for_edge_images/composing-a-rhel-for-edge-image-using-image-builder-command-line_composing-installing-managing-rhel-for-edge-images#image-customizations_composing-a-rhel-for-edge-image-using-image-builder-command-line[supported image customizations].
28
-
* For more about the composer cli, read https://www.osbuild.org/guides/user-guide/building-an-image-from-cli.html?highlight=push%20bluepring#blueprints-management-using-composer-cli[blueprint management using composer cli].
35
+
* link:https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/composing_installing_and_managing_rhel_for_edge_images/composing-a-rhel-for-edge-image-using-image-builder-command-line_composing-installing-managing-rhel-for-edge-images[Creating a RHEL for Edge Container blueprint using image builder CLI]
* link:https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/performing_an_advanced_rhel_9_installation/creating-kickstart-files_installing-rhel-as-an-experienced-user[Creating a Kickstart file].
41
-
* link:https://access.redhat.com/solutions/60959[How to embed a Kickstart file into an ISO image].
* link:https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/performing_an_advanced_rhel_9_installation/creating-kickstart-files_installing-rhel-as-an-experienced-user[Creating a Kickstart file]
51
+
* link:https://access.redhat.com/solutions/60959[How to embed a Kickstart file into an ISO image]
Copy file name to clipboardExpand all lines: modules/microshift-adding-repos-to-image-builder.adoc
+60-6Lines changed: 60 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,15 +11,69 @@ Use the following procedure to add the {product-title} repositories to Image Bui
11
11
.Prerequisites
12
12
* Your build host meets the Image Builder system requirements.
13
13
* You have installed and set up Image Builder and the `composer-cli` tool.
14
-
* You have rootuser access to your build host.
14
+
* You have root-user access to your build host.
15
15
16
16
.Procedure
17
17
18
-
* Enable the {product-title} RPM repositories on the build host by running the following command:
18
+
. Create an Image Builder configuration file for adding the `rhocp-4.13` RPM repository source required to pull {product-title} RPMs by running the following command:
= Adding the {product-title} service to a blueprint
8
8
9
9
Adding the {product-title} RPM package to an Image Builder blueprint enables the build of a {op-system-ostree} image with {product-title} embedded.
10
10
11
-
.Image Builder blueprint example
11
+
.Procedure
12
12
13
-
[source,text]
13
+
. Use the following example to create your blueprint:
14
+
+
15
+
.Image Builder blueprint example
16
+
+
17
+
[source,terminal]
14
18
----
19
+
$ cat > minimal-microshift.toml <<EOF
15
20
name = "minimal-microshift"
16
21
17
22
description = ""
@@ -21,13 +26,55 @@ groups = []
21
26
22
27
[[packages]]
23
28
name = "microshift"
24
-
version = "4.13.0-1"
29
+
version = "*"
25
30
26
31
[[packages]]
27
32
name = "microshift-greenboot" <1>
28
-
version = "4.13.0-1"
33
+
version = "*"
29
34
30
35
[customizations.services]
31
36
enabled = ["microshift"]
37
+
EOF
32
38
----
39
+
[.small]
33
40
<1> Optional `microshift-greenboot` RPM. For more information, read the "Greenboot health check" guide in the "Running Applications" section.
41
+
+
42
+
[NOTE]
43
+
====
44
+
The wildcard `*` in the commands uses the latest {product-title} RPMs. If you need a specific version, substitute the wildcard for the version you want. For example, insert `4.13.1` to download the {product-title} 4.13.1 RPMs.
45
+
====
46
+
47
+
. Add the blueprint to the Image Builder by running the following command:
Use the following procedure to create the ISO. The {op-system-ostree} Installer image pulls the commit from the running container and creates an installable boot ISO with a Kickstart file configured to use the embedded OSTree commit.
10
+
11
+
.Prerequisites
12
+
* Your build host meets the Image Builder system requirements.
13
+
* You have installed and set up Image Builder and the `composer-cli` tool.
14
+
* You have root-user access to your build host.
15
+
* You have the `podman` tool.
16
+
17
+
.Procedure
18
+
19
+
. Start an `ostree` container image build by running the following command:
0 commit comments