some unfinished and untested work over helm mirror
This commit is contained in:
38
Dockerfile.helm
Normal file
38
Dockerfile.helm
Normal file
@@ -0,0 +1,38 @@
|
||||
FROM alpine:3
|
||||
|
||||
# variable "VERSION" must be passed as docker environment variables during the image build
|
||||
# docker build --no-cache --build-arg VERSION=2.12.0 -t alpine/helm:2.12.0 .
|
||||
|
||||
RUN apk update && apk upgrade && apk add bash tar gzip
|
||||
|
||||
ARG VERSION
|
||||
|
||||
# ENV BASE_URL="https://storage.googleapis.com/kubernetes-helm"
|
||||
ENV BASE_URL="https://get.helm.sh"
|
||||
|
||||
RUN case `uname -m` in \
|
||||
x86_64) ARCH=amd64; ;; \
|
||||
armv7l) ARCH=arm; ;; \
|
||||
aarch64) ARCH=arm64; ;; \
|
||||
ppc64le) ARCH=ppc64le; ;; \
|
||||
s390x) ARCH=s390x; ;; \
|
||||
*) echo "un-supported arch, exit ..."; exit 1; ;; \
|
||||
esac && \
|
||||
apk add --update --no-cache wget git curl && \
|
||||
wget ${BASE_URL}/helm-v2.17.0-linux-${ARCH}.tar.gz -O - | tar -xz && \
|
||||
mv linux-${ARCH}/helm /usr/bin/helm && \
|
||||
chmod +x /usr/bin/helm && \
|
||||
rm -rf linux-${ARCH}
|
||||
|
||||
RUN chmod +x /usr/bin/helm
|
||||
RUN helm init --client-only
|
||||
RUN find / -name 'install-binary.sh'
|
||||
#RUN helm plugin install --debug https://github.com/openSUSE/helm-mirror #--version master
|
||||
|
||||
WORKDIR /apps
|
||||
|
||||
COPY config/helm/entrypoint.sh /opt/entrypoint.sh
|
||||
|
||||
VOLUME ["/data/"]
|
||||
ENTRYPOINT ["/opt/entrypoint.sh"]
|
||||
# CMD ["--help"]
|
||||
Reference in New Issue
Block a user