Skip to content

Commit

Permalink
Change endpoint for download kubectl
Browse files Browse the repository at this point in the history
Signed-off-by: Pitos <biuro@gawsoft.pl>
  • Loading branch information
gawsoftpl committed Aug 18, 2023
1 parent cf14ebd commit 5a5524d
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions bitnami/kubectl/1.28/debian-11/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ARG TARGETARCH

LABEL com.vmware.cp.artifact.flavor="sha256:1e1b4657a77f0d47e9220f0c37b9bf7802581b93214fff7d1bd2364c8bf22e8e" \
org.opencontainers.image.base.name="docker.io/bitnami/minideb:bullseye" \
org.opencontainers.image.created="2023-08-15T03:34:32Z" \
org.opencontainers.image.created="2023-08-18T18:27:32Z" \
org.opencontainers.image.description="Application packaged by VMware, Inc" \
org.opencontainers.image.licenses="Apache-2.0" \
org.opencontainers.image.ref.name="1.28.0-debian-11-r26" \
Expand All @@ -26,16 +26,18 @@ SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN install_packages ca-certificates curl git jq procps
RUN mkdir -p /tmp/bitnami/pkg/cache/ && cd /tmp/bitnami/pkg/cache/ && \
COMPONENTS=( \
"kubectl-1.28.0-1-linux-${OS_ARCH}-debian-11" \
"v1.28.0" \
) && \
for COMPONENT in "${COMPONENTS[@]}"; do \
if [ ! -f "${COMPONENT}.tar.gz" ]; then \
curl -SsLf "https://downloads.bitnami.com/files/stacksmith/${COMPONENT}.tar.gz" -O ; \
curl -SsLf "https://downloads.bitnami.com/files/stacksmith/${COMPONENT}.tar.gz.sha256" -O ; \
curl -SsLf "https://cdn.dl.k8s.io/release/${COMPONENT}/bin/linux/amd64/kubectl" -O ; \
curl -SsLf "https://cdn.dl.k8s.io/release/${COMPONENT}/bin/linux/amd64/kubectl.sha256" -O ; \
fi && \
sha256sum -c "${COMPONENT}.tar.gz.sha256" && \
tar -zxf "${COMPONENT}.tar.gz" -C /opt/bitnami --strip-components=2 --no-same-owner --wildcards '*/files' && \
rm -rf "${COMPONENT}".tar.gz{,.sha256} ; \
echo "`cat kubectl.sha256` ./kubectl" | sha256sum -c && \
chmod +x kubectl && \
mkdir -p /opt/bitnami/kubectl/bin && \
cp kubectl /opt/bitnami/kubectl/bin && \
rm -rf kubectl{,.sha256} ; \
done
RUN apt-get autoremove --purge -y curl && \
apt-get update && apt-get upgrade -y && \
Expand Down

0 comments on commit 5a5524d

Please sign in to comment.