Skip to content

Commit

Permalink
Revert "Merge pull request kubernetes#1703 from bertinatto/rhel9-images"
Browse files Browse the repository at this point in the history
This reverts commit 0969e70, reversing
changes made to da5122a.
  • Loading branch information
stbenjam committed Oct 3, 2023
1 parent 0969e70 commit 377868d
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .ci-operator.yaml
@@ -1,4 +1,4 @@
build_root_image:
name: release
namespace: openshift
tag: rhel-9-release-golang-1.20-openshift-4.15
tag: rhel-8-release-golang-1.20-openshift-4.14
9 changes: 5 additions & 4 deletions build/pause/Dockerfile.Rhel
@@ -1,10 +1,11 @@
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.20-openshift-4.15 AS builder
FROM registry.ci.openshift.org/ocp/builder:rhel-8-golang-1.20-openshift-4.14 AS builder
WORKDIR /go/src/github.com/openshift/kubernetes/build/pause
COPY . .
RUN mkdir -p bin && \
gcc -Os -Wall -Werror -o bin/pause ./linux/pause.c
RUN dnf install -y gcc glibc-static && \
mkdir -p bin && \
gcc -Os -Wall -Werror -static -o bin/pause ./linux/pause.c

FROM registry.ci.openshift.org/ocp/4.15:base-rhel9
FROM registry.ci.openshift.org/ocp/4.14:base
COPY --from=builder /go/src/github.com/openshift/kubernetes/build/pause/bin/pause /usr/bin/pod
LABEL io.k8s.display-name="OpenShift Pod" \
io.k8s.description="This is a component of OpenShift and contains the binary that holds the pod namespaces." \
Expand Down
4 changes: 2 additions & 2 deletions openshift-hack/images/hyperkube/Dockerfile.rhel
@@ -1,4 +1,4 @@
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.20-openshift-4.15 AS builder
FROM registry.ci.openshift.org/ocp/builder:rhel-8-golang-1.20-openshift-4.14 AS builder
WORKDIR /go/src/k8s.io/kubernetes
COPY . .
RUN make WHAT='cmd/kube-apiserver cmd/kube-controller-manager cmd/kube-scheduler cmd/kubelet cmd/watch-termination openshift-hack/cmd/k8s-tests' && \
Expand All @@ -7,7 +7,7 @@ RUN make WHAT='cmd/kube-apiserver cmd/kube-controller-manager cmd/kube-scheduler
cp /go/src/k8s.io/kubernetes/_output/local/bin/linux/$(go env GOARCH)/{kube-apiserver,kube-controller-manager,kube-scheduler,kubelet,watch-termination,k8s-tests} \
/tmp/build

FROM registry.ci.openshift.org/ocp/4.15:base-rhel9
FROM registry.ci.openshift.org/ocp/4.14:base
RUN yum install -y --setopt=tsflags=nodocs --setopt=skip_missing_names_on_install=False iproute && yum clean all
COPY --from=builder /tmp/build/* /usr/bin/
LABEL io.k8s.display-name="OpenShift Kubernetes Server Commands" \
Expand Down
4 changes: 2 additions & 2 deletions openshift-hack/images/os/install.sh
Expand Up @@ -3,7 +3,7 @@
set -xeou pipefail

yum install -y ostree rpm-ostree yum-utils selinux-policy-targeted xfsprogs
curl http://base-4-15-rhel9.ocp.svc > /etc/yum.repos.d/rhel9.repo
curl http://base-4-10-rhel8.ocp.svc > /etc/yum.repos.d/rhel8.repo

commit=$( find /srv -name *.commit | sed -Ee 's|.*objects/(.+)/(.+)\.commit|\1\2|' | head -1 )
mkdir /tmp/working && cd /tmp/working
Expand All @@ -12,7 +12,7 @@ rpm-ostree db list --repo /srv/repo $commit > /tmp/packages
PACKAGES=(openshift-hyperkube)
yumdownloader -y --disablerepo=* --enablerepo=built --destdir=/tmp/rpms "${PACKAGES[@]}"
if ! grep -q cri-o /tmp/packages; then
yumdownloader -y --disablerepo=* --enablerepo=rhel-9* --destdir=/tmp/rpms cri-o cri-tools
yumdownloader -y --disablerepo=* --enablerepo=rhel-8* --destdir=/tmp/rpms cri-o cri-tools
fi

ls /tmp/rpms/ && (cd /tmp/rpms/ && ls ${PACKAGES[@]/%/*})
Expand Down
5 changes: 3 additions & 2 deletions openshift-hack/images/tests/Dockerfile.rhel
@@ -1,4 +1,4 @@
FROM registry.ci.openshift.org/ocp/builder:rhel-8-golang-1.20-openshift-4.15 AS builder
FROM registry.ci.openshift.org/ocp/builder:rhel-8-golang-1.20-openshift-4.14 AS builder
WORKDIR /go/src/k8s.io/kubernetes
COPY . .
RUN make WHAT=openshift-hack/e2e/k8s-e2e.test; \
Expand All @@ -8,7 +8,8 @@ RUN make WHAT=openshift-hack/e2e/k8s-e2e.test; \
cp /go/src/k8s.io/kubernetes/_output/local/bin/linux/$(go env GOARCH)/ginkgo /tmp/build/; \
cp /go/src/k8s.io/kubernetes/openshift-hack/test-kubernetes-e2e.sh /tmp/build/

FROM registry.ci.openshift.org/ocp/4.15:tools

FROM registry.ci.openshift.org/ocp/4.14:tools
COPY --from=builder /tmp/build/k8s-e2e.test /usr/bin/
COPY --from=builder /tmp/build/ginkgo /usr/bin/
COPY --from=builder /tmp/build/test-kubernetes-e2e.sh /usr/bin/
Expand Down

0 comments on commit 377868d

Please sign in to comment.