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
RUN if [ -f "${BUILD_IMAGE_CUSTOMIZATION}" ]; then "${BUILD_IMAGE_CUSTOMIZATION}"; fi
12
14
13
15
RUN if [ -e "/activation-key/org" ]; then unlink /etc/rhsm-host; subscription-manager register --force --org $(cat "/activation-key/org") --activationkey $(cat "/activation-key/activationkey"); fi
14
16
RUN python3 -m ensurepip
@@ -18,10 +20,13 @@ RUN make build-hiveutil
18
20
FROM ${EL9_BUILD_IMAGE} as builder_rhel9
19
21
ARG GO=${GO:-go}
20
22
ARG CONTAINER_SUB_MANAGER_OFF
23
+
ARG BUILD_IMAGE_CUSTOMIZATION
21
24
RUN mkdir -p /go/src/github.com/openshift/hive
RUN if [ -e "/activation-key/org" ]; then unlink /etc/rhsm-host; subscription-manager register --force --org $(cat "/activation-key/org") --activationkey $(cat "/activation-key/activationkey"); fi
27
32
RUN python3 -m ensurepip
@@ -44,7 +49,7 @@ RUN if ! rpm -q openssh-clients; then dnf install -y openssh-clients && dnf clea
44
49
RUN if ! rpm -q libvirt-libs; then dnf install -y libvirt-libs && dnf clean all && rm -rf /var/cache/dnf/*; fi
45
50
46
51
# tar is needed to package must-gathers on install failure
47
-
RUN if ! which tar; then dnf install -y tar && dnf clean all && rm -rf /var/cache/dnf/*; fi
52
+
RUN if ! command -v tar; then dnf install -y tar && dnf clean all && rm -rf /var/cache/dnf/*; fi
0 commit comments