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: machine_configuration/mco-coreos-layering.adoc
+34-6Lines changed: 34 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -84,9 +84,21 @@ RUN rpm-ostree override replace https://example.com/myrepo/haproxy-1.0.16-5.el8.
84
84
* *{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.
85
85
+
86
86
.Example out-of-cluster Containerfile to apply the libreswan utility
# Get {op-system} base image of target cluster `oc adm release info --image-for rhel-coreos`
90
+
# hadolint ignore=DL3006
91
+
FROM quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256...
92
+
93
+
# Install our config file
94
+
COPY my-host-to-host.conf /etc/ipsec.d/
95
+
96
+
# {op-system-base} entitled host is needed here to access {op-system-base} packages
97
+
# Install libreswan as extra {op-system-base} package
98
+
RUN dnf install -y libreswan && \
99
+
dnf clean all && \
100
+
systemctl enable ipsec && \
101
+
ostree container commit
90
102
----
91
103
+
92
104
Because libreswan requires additional {op-system-base} packages, the image must be built on an entitled {op-system-base} host. For RHEL entitlements to work, you must copy the `etc-pki-entitlement` secret into the `openshift-machine-api` namespace.
@@ -113,9 +125,17 @@ RUN rpm-ostree install https://dl.fedoraproject.org/pub/epel/epel-release-latest
113
125
----
114
126
+
115
127
.Example out-of-cluster Containerfile to apply a third-party package from EPEL
# Get {op-system} base image of target cluster `oc adm release info --image-for rhel-coreos`
131
+
# hadolint ignore=DL3006
132
+
FROM quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256...
133
+
134
+
#Enable EPEL (more info at https://docs.fedoraproject.org/en-US/epel/ ) and install htop
135
+
RUN dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm && \
136
+
dnf install -y htop && \
137
+
dnf clean all && \
138
+
ostree container commit
119
139
----
120
140
+
121
141
This Containerfile installs the {op-system-base} fish program. Because fish requires additional {op-system-base} packages, the image must be built on an entitled {op-system-base} host. For {op-system-base} entitlements to work, you must copy the `etc-pki-entitlement` secret into the `openshift-machine-api` namespace.
@@ -132,9 +152,17 @@ RUN rpm-ostree install https://dl.fedoraproject.org/pub/epel/9/Everything/x86_64
132
152
----
133
153
+
134
154
.Example out-of-cluster Containerfile to apply a third-party package that has {op-system-base} dependencies
0 commit comments