-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
34 lines (28 loc) · 1.07 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
FROM alpine:3.9
# used to precache this helm & kubectl versions and bake them into the image.
ARG helm_version="v3.1.1"
ARG kubectl_version="v1.17.3"
LABEL maintainer="Paul Rogalinski-Pinter <[email protected]>" \
description="helm and kubectl binaries with drone.io integration" \
base="alpine" \
helm_version="${helm_version}" \
kubectl_version="${kubectl_version}"
LABEL org.label-schema.schema-version="1.0" \
org.label-schema.name="pulsar256/helm-bin" \
org.label-schema.description="helm and kubectl binaries with drone.io integration" \
org.label-schema.url="https://github.com/pulsar256/helm-bin" \
org.label-schema.vcs-url="https://github.com/pulsar256/helm-bin" \
org.label-schema.docker.cmd="docker run \
-e HELM_VERSION=v2.14.1 \
-e KUBECTL_VERSION=v1.14.3 \
-e KUBE_MASTER=$KUBE_MASTER \
-e KUBE_TOKEN=$KUBE_TOKEN \
-e KUBE_CA=$KUBE_CA \
pulsar256/helm-bin ls"
COPY *.sh /
RUN apk add --no-cache curl ca-certificates bash upx
RUN sh /precache.sh $helm_version $kubectl_version \
&& ln -s /init.sh /bin/kubectl \
&& ln -s /init.sh /bin/helm \
&& rm /tmp/*
ENTRYPOINT [ "/init.sh" ]