Skip to content

Commit

Permalink
feat(installer): add job docker file (#2079)
Browse files Browse the repository at this point in the history
  • Loading branch information
Huimintai committed Sep 14, 2022
1 parent f72ca92 commit 77a0bd6
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions build/docker/tools/job/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM python:3.6-alpine
ENV HOME="/" \
OS_ARCH="amd64" \
OS_NAME="linux" \
APP_VERSION="1.22.13"

RUN mkdir -p /tmp/kubectl/ && cd /tmp/kubectl && \
if [ ! -f kubectl-$APP_VERSION-1-$OS_NAME-$OS_ARCH-debian-11.tar.gz ]; then \
wget https://downloads.bitnami.com/files/stacksmith/kubectl-$APP_VERSION-1-$OS_NAME-$OS_ARCH-debian-11.tar.gz ; \
fi && \
export CHECKSUM=$(sha256sum kubectl-$APP_VERSION-1-$OS_NAME-$OS_ARCH-debian-11.tar.gz) && \
echo "$CHECKSUM" | sha256sum -c - && \
tar -zxf kubectl-$APP_VERSION-1-$OS_NAME-$OS_ARCH-debian-11.tar.gz -C /bin/ --strip-components=4 && \
rm -rf /tmp/kubectl && \
apk add --update curl && \
rm -rf /var/cache/apk/*

ENTRYPOINT [ "kubectl" ]
CMD [ "--help" ]

0 comments on commit 77a0bd6

Please sign in to comment.