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
* *{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.
@@ -114,9 +126,17 @@ RUN dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.n
114
126
----
115
127
+
116
128
.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`
132
+
# hadolint ignore=DL3006
133
+
FROM quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256...
134
+
135
+
#Enable EPEL (more info at https://docs.fedoraproject.org/en-US/epel/ ) and install htop
136
+
RUN dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm && \
137
+
dnf install -y htop && \
138
+
dnf clean all && \
139
+
ostree container commit
120
140
----
121
141
+
122
142
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.
@@ -134,9 +154,17 @@ RUN dnf install -y https://dl.fedoraproject.org/pub/epel/9/Everything/x86_64/Pac
134
154
----
135
155
+
136
156
.Example out-of-cluster Containerfile to apply a third-party package that has {op-system-base} dependencies
0 commit comments