Skip to content

Commit ddbdf7d

Browse files
author
Michael Burke
committed
Add new coreos layering example
1 parent c5b30a7 commit ddbdf7d

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

post_installation_configuration/coreos-layering.adoc

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ RUN rpm-ostree override replace https://example.com/myrepo/haproxy-1.0.16-5.el8.
5656
5757
* *{op-system-base} packages*. You can download {op-system-base-full} packages from the link:https://access.redhat.com/downloads/content/479/ver=/rhel---9/9.1/x86_64/packages[Red Hat Customer Portal], such as chrony, firewalld, and iputils.
5858
+
59-
.Example Containerfile to apply a RHEL package
59+
.Example Containerfile to apply the firewalld utility
6060
[source,yaml]
6161
----
6262
FROM quay.io/openshift-release-dev/ocp-release@sha256:6499bc69a0707fcad481c3cb73225b867d
@@ -66,6 +66,12 @@ RUN rpm-ostree install firewalld ansible && \
6666
rpm -e ansible && \
6767
ostree container commit
6868
----
69+
+
70+
.Example Containerfile to apply the libreswan utility
71+
[source,yaml]
72+
----
73+
include::https://raw.githubusercontent.com/openshift/rhcos-image-layering-examples/master/libreswan/Containerfile[]
74+
----
6975
7076
* *Third-party packages*. You can download and install RPMs from third-party organizations, such as the following types of packages:
7177
+
@@ -82,6 +88,14 @@ RUN rpm-ostree install firewalld ansible && \
8288
----
8389
include::https://raw.githubusercontent.com/openshift/rhcos-image-layering-examples/master/htop/Containerfile[]
8490
----
91+
+
92+
.Example Containerfile to apply a third-party package that has {op-system-base} dependencies
93+
[source,yaml]
94+
----
95+
include::https://raw.githubusercontent.com/openshift/rhcos-image-layering-examples/master/fish/Containerfile[]
96+
----
97+
+
98+
This Containerfile installs the Linux fish program. Because fish requires additional RHEL packages, the image must be built on an entitled {op-system-base} host.
8599
86100
After you create the machine config, the Machine Config Operator (MCO) performs the following steps:
87101

0 commit comments

Comments
 (0)