Skip to content

Commit

Permalink
Merge pull request #63 from tnozicka/update-kube-tools
Browse files Browse the repository at this point in the history
Update kube-tools image
  • Loading branch information
scylla-operator-bot[bot] authored Sep 18, 2024
2 parents 7dd492d + 46b0268 commit 2724b86
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions kube-tools/latest/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM registry.access.redhat.com/ubi9/podman:9.2-15@sha256:e29e52923aeb2e3b2558df522318624843e2de4e1c22f79aa0102ff03dddc9d3
FROM registry.access.redhat.com/ubi9/podman:9.4-14@sha256:48aff9f0d4918e6db059d8041881fd4a0f3cbfb2bacb27aee0c25acc7c136052

ENV GOPATH=/go \
GOROOT=/usr/local/go
Expand All @@ -9,17 +9,17 @@ RUN set -euExo pipefail && shopt -s inherit_errexit && \
dnf install -y rsync git make tar gzip skopeo jq && \
dnf clean all && \
case $(arch) in \
x86_64) architecture="amd64" checksum="c6a35d16faddf2434da7717206a9cdd81e502fb49d79596d5a005f680611d0f34d3c8d1c68a1b2ce84bdc66883d725e2a94d60e714b3cb3f4fbafea7666b1d6c" ;; \
aarch64) architecture="arm64" checksum="243dfe3f53f263f11dd6d44cd2290704769070807b9f43a54c8b1766327a6b0bd75d8613085bdee1a68fbeb70fe095e610cd1288723c865a39c9d69f3fb48116" ;; \
x86_64) architecture="amd64" checksum="5213abec3208bc9af330c870e67c08ef4b336f6e07d119a62081dace5805478550a74e67bcc926d30f9f642a3543699936f397e123c6587e7519411d6e3648f9" ;; \
aarch64) architecture="arm64" checksum="2e24226d24617fad92f747d0a881fe8ccf7843de11b4984bae43e9892e52a9e7cf1e050ffca25523db324a96b3edea6f623d5133dda8a966326e9b103bee3797" ;; \
*) exit 42;; \
esac && \
/tmp/download-file.sh "https://go.dev/dl/go1.21.9.linux-${architecture}.tar.gz" "${checksum}" | tar -C /usr/local -xzf - && \
/tmp/download-file.sh "https://go.dev/dl/go1.22.7.linux-${architecture}.tar.gz" "${checksum}" | tar -C /usr/local -xzf - && \
ln -s /usr/local/go/bin/go /usr/local/bin/go && \
go install github.com/mikefarah/yq/v4@v4.34.1 && \
go install github.com/mikefarah/yq/v4@v4.44.3 && \
mv "$( go env GOPATH )/bin/yq" /usr/local/bin/ && \
mkdir -p /go/src/k8s.io/ && \
cd /go/src/k8s.io/ && \
git clone --depth=1 --branch v1.29.1 https://github.com/kubernetes/kubernetes.git && \
git clone --depth=1 --branch v1.31.1 https://github.com/kubernetes/kubernetes.git && \
cd ./kubernetes && \
make WHAT=cmd/kubectl && \
mv /go/src/k8s.io/kubernetes/_output/bin/kubectl /usr/bin/ && \
Expand Down

0 comments on commit 2724b86

Please sign in to comment.