forked from knative/serving
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump go version for builder image (#1174)
* Bump go version for builder image * update autogenerated image
- Loading branch information
Showing
2 changed files
with
11 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,26 @@ | ||
# DO NOT EDIT! Generated Dockerfile. | ||
|
||
FROM registry.ci.openshift.org/ocp/4.17:cli-artifacts as tools | ||
|
||
# Dockerfile to bootstrap build and test in openshift-ci | ||
FROM registry.ci.openshift.org/openshift/release:rhel-8-release-golang-1.22-openshift-4.17 as builder | ||
FROM registry.ci.openshift.org/openshift/release:rhel-8-release-golang-1.23-openshift-4.19 as builder | ||
|
||
ARG TARGETARCH | ||
|
||
RUN echo "[kubernetes]" >> /etc/yum.repos.d/kubernetes.repo && \ | ||
echo "name=Kubernetes" >> /etc/yum.repos.d/kubernetes.repo && \ | ||
echo "baseurl=https://pkgs.k8s.io/core:/stable:/v1.29/rpm/" >> /etc/yum.repos.d/kubernetes.repo && \ | ||
echo "enabled=1" >> /etc/yum.repos.d/kubernetes.repo && \ | ||
echo "gpgcheck=1" >> /etc/yum.repos.d/kubernetes.repo && \ | ||
echo "gpgkey=https://pkgs.k8s.io/core:/stable:/v1.29/rpm/repodata/repomd.xml.key" >> /etc/yum.repos.d/kubernetes.repo | ||
COPY --from=tools /usr/share/openshift/linux_$TARGETARCH/oc.rhel8 /usr/bin/oc | ||
|
||
RUN yum install -y kubectl httpd-tools | ||
RUN ln -s /usr/bin/oc /usr/bin/kubectl | ||
|
||
RUN yum install -y httpd-tools | ||
|
||
RUN wget https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 && \ | ||
chmod 700 ./get-helm-3 | ||
|
||
RUN ./get-helm-3 --version v3.11.3 --no-sudo && helm version | ||
|
||
RUN GOFLAGS='' go install github.com/mikefarah/yq/v3@latest | ||
RUN GOFLAGS='' go install -tags="exclude_graphdriver_btrfs containers_image_openpgp" github.com/containers/skopeo/cmd/[email protected] | ||
|
||
# go install creates $GOPATH/.cache with root permissions, we delete it here | ||
# to avoid permission issues with the runtime users | ||
RUN rm -rf $GOPATH/.cache | ||
|
||
# Allow runtime users to add entries to /etc/passwd | ||
RUN chmod g+rw /etc/passwd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters