Skip to content

Commit

Permalink
Update CI dockerfile to fix CentOS changes
Browse files Browse the repository at this point in the history
Signed-off-by: divyansh42 <[email protected]>
  • Loading branch information
divyansh42 authored and savitaashture committed Jul 31, 2024
1 parent e2e9be8 commit 947d5c0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ci/ci.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ FROM registry.ci.openshift.org/openshift/release:golang-1.21
# Add kubernetes repository
ADD ci/kubernetes.repo /etc/yum.repos.d/

# Change baseurl for CentOS EOL workaround
# https://blog.centos.org/2023/04/end-dates-are-coming-for-centos-stream-8-and-centos-linux-7/
RUN sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
RUN sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*

RUN yum install -y kubectl httpd-tools jq make git which
RUN rpm -Uvh https://github.com/tektoncd/cli/releases/download/v0.33.0/tektoncd-cli-0.33.0_Linux-64bit.rpm

Expand Down
2 changes: 1 addition & 1 deletion hack/install-osp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ esac

# wait until tekton pipelines operator is created
echo "Waiting for OpenShift Pipelines Operator to be created..."
timeout 2m bash <<- EOF
timeout 3m bash <<- EOF
until oc get deployment openshift-pipelines-operator -n openshift-operators; do
sleep 5
done
Expand Down

0 comments on commit 947d5c0

Please sign in to comment.