Skip to content

Commit 92a3a16

Browse files
authored
Merge pull request #2209 from openshift-cherrypick-robot/cherry-pick-2208-to-release-4.20
[release-4.20] OCPBUGS-77170: Install subscription-manager in required images
2 parents 64e778a + 6c98139 commit 92a3a16

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

images/cli/Dockerfile.rhel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ RUN make build --warn-undefined-variables
55

66
FROM registry.ci.openshift.org/ocp/4.20:base-rhel9
77
COPY --from=builder /go/src/github.com/openshift/oc/oc /usr/bin/
8+
RUN dnf install -y subscription-manager && dnf clean all && rm -rf /var/cache/dnf/*
89
RUN for i in kubectl openshift-deploy openshift-docker-build openshift-sti-build openshift-git-clone openshift-manage-dockerfile openshift-extract-image-content openshift-recycle; do ln -sf /usr/bin/oc /usr/bin/$i; done
910
LABEL io.k8s.display-name="OpenShift Client" \
1011
io.k8s.description="OpenShift is a platform for developing, building, and deploying containerized applications." \

images/tools/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ RUN INSTALL_PKGS="\
3939
s-nail \
4040
strace \
4141
stress-ng \
42+
subscription-manager \
4243
sysstat \
4344
tcpdump \
4445
tmux \
@@ -47,7 +48,7 @@ RUN INSTALL_PKGS="\
4748
wget \
4849
xfsprogs \
4950
" && \
50-
yum -y install $INSTALL_PKGS && rpm -V --nosize --nofiledigest --nomtime --nomode $INSTALL_PKGS && yum clean all && rm -rf /var/cache/*
51+
yum -y install $INSTALL_PKGS && rpm -V --nogroup --nosize --nofiledigest --nomtime --nomode $INSTALL_PKGS && yum clean all && rm -rf /var/cache/*
5152
# Disabled until they are buildable on s390x
5253
# numactl \
5354
# numactl-devel \

0 commit comments

Comments
 (0)