mirror of
https://github.com/ipedrazas/drone-helm.git
synced 2026-06-04 18:24:13 +08:00
33 lines
904 B
Docker
33 lines
904 B
Docker
#
|
|
# ------ Drone-Helm plugin image ------
|
|
#
|
|
|
|
FROM alpine:3.6
|
|
MAINTAINER Ivan Pedrazas <ipedrazas@gmail.com>
|
|
|
|
# Helm version: can be passed at build time
|
|
ARG VERSION
|
|
ENV VERSION ${VERSION:-v2.9.1}
|
|
ENV FILENAME helm-${VERSION}-linux-amd64.tar.gz
|
|
|
|
ARG KUBECTL
|
|
ENV KUBECTL ${KUBECTL:-v1.11.0}
|
|
|
|
RUN set -ex \
|
|
&& apk add --no-cache curl ca-certificates \
|
|
&& curl -o /tmp/${FILENAME} http://storage.googleapis.com/kubernetes-helm/${FILENAME} \
|
|
&& curl -o /tmp/kubectl https://storage.googleapis.com/kubernetes-release/release/${KUBECTL}/bin/linux/amd64/kubectl \
|
|
&& tar -zxvf /tmp/${FILENAME} -C /tmp \
|
|
&& mv /tmp/linux-amd64/helm /bin/helm \
|
|
&& chmod +x /tmp/kubectl \
|
|
&& mv /tmp/kubectl /bin/kubectl \
|
|
&& rm -rf /tmp/*
|
|
|
|
LABEL description="Kubectl and Helm."
|
|
LABEL base="alpine"
|
|
|
|
ADD release/linux/amd64/drone-helm /bin/
|
|
COPY kubeconfig /root/.kube/kubeconfig
|
|
|
|
ENTRYPOINT [ "/bin/drone-helm" ]
|