Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .ci/oci.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,20 @@

FROM registry.ci.openshift.org/openshift/release:rhel-9-release-golang-1.24-openshift-4.20

ENV GO_VERSION=1.25.7
ENV GOROOT=/usr/local/go
ENV PATH=$GOROOT/bin:$PATH

SHELL ["/bin/bash", "-c"]

# Install Go 1.25.7 to satisfy go.mod toolchain requirement (go 1.25.0)
RUN export ARCH="$(uname -m)" && if [[ ${ARCH} == "x86_64" ]]; then export ARCH="amd64"; elif [[ ${ARCH} == "aarch64" ]]; then export ARCH="arm64"; fi && \
curl -fsSL "https://go.dev/dl/go${GO_VERSION}.linux-${ARCH}.tar.gz" -o go.tar.gz && \
rm -rf /usr/local/go && \
tar -C /usr/local -xzf go.tar.gz && \
rm go.tar.gz
RUN go version

# Temporary workaround since mirror.centos.org is down and can be replaced with vault.centos.org
RUN sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo && sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo && sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo

Expand Down
Loading