Skip to content

Commit

Permalink
Switch to CentOS stream9 builder
Browse files Browse the repository at this point in the history
Signed-off-by: Maya Rashish <mrashish@redhat.com>
  • Loading branch information
maya-r committed Jan 12, 2022
1 parent f2939fc commit fed3448
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 55 deletions.
2 changes: 2 additions & 0 deletions hack/build/bazel-build-builder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,5 @@ if ! git diff-index --quiet HEAD~1 hack/build/docker; then

docker push ${UNTAGGED_BUILDER_IMAGE}:${BUILDER_TAG}
fi


20 changes: 5 additions & 15 deletions hack/build/docker/builder/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,20 +1,14 @@
FROM registry.fedoraproject.org/fedora-minimal:33
FROM quay.io/centos/centos:stream9
MAINTAINER "The KubeVirt Project" <kubevirt-dev@googlegroups.com>

COPY fedora.repo /tmp/fedora_ci.dnf.repo

RUN sed -i 's/proxy = None//gI' /tmp/fedora_ci.dnf.repo && \
cat /tmp/fedora_ci.dnf.repo && \
mkdir /etc/yum.repos.d/old && \
mv /etc/yum.repos.d/*.repo /etc/yum.repos.d/old && \
mv /tmp/fedora_ci.dnf.repo /etc/yum.repos.d/fedora.repo && \
microdnf update -y && microdnf install -y \
RUN dnf -y install dnf-plugins-core && \
dnf config-manager --set-enable crb && dnf update -y && \
dnf install -y \
cpio \
diffutils \
git \
python3-pip \
python3-devel \
mercurial \
gcc \
gcc-c++ \
glibc-devel \
Expand All @@ -30,11 +24,7 @@ RUN sed -i 's/proxy = None//gI' /tmp/fedora_ci.dnf.repo && \
nbdkit-devel \
unzip \
java-11-openjdk-devel \
btrfs-progs-devel \
device-mapper-devel \
&& microdnf clean all && \
mv /etc/yum.repos.d/old/* /etc/yum.repos.d/ && \
rmdir /etc/yum.repos.d/old
&& dnf clean all

RUN pip3 install --upgrade j2cli operator-courier==2.1.11 && \
curl -sL https://services.gradle.org/distributions/gradle-6.6-bin.zip -o gradle-6.6-bin.zip && \
Expand Down
40 changes: 0 additions & 40 deletions hack/build/docker/builder/fedora.repo

This file was deleted.

0 comments on commit fed3448

Please sign in to comment.