-
Notifications
You must be signed in to change notification settings - Fork 8
/
Dockerfile
26 lines (22 loc) · 1.46 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
# Based on https://github.com/linkyard/docker-helm/blob/master/Dockerfile
# and https://github.com/lachie83/k8s-helm/blob/v2.7.2/Dockerfile
# Ensure docker is present, so it can be used from gitlab too
FROM docker:latest
MAINTAINER Diederik van der Boor <[email protected]>
ARG HELM_VERSION=v2.14.0
ARG KUBE_VERSION=v1.14.2
ARG KUSTOMIZE_VERSION=2.0.3
ARG SKAFFOLD_VERSION=v0.30.0
# Add some basic packages, and allow unzipping helm.
# Make sure helm is initialized so it just works.
# Users can run `helm repo update` in case anything is needed from the stable/ repo.
RUN apk add --update --no-cache ca-certificates curl git tar gzip python py-pip sed && \
curl -Lo /bin/kubectl https://storage.googleapis.com/kubernetes-release/release/${KUBE_VERSION}/bin/linux/amd64/kubectl && \
curl -Lo /bin/kustomize https://github.com/kubernetes-sigs/kustomize/releases/download/v${KUSTOMIZE_VERSION}/kustomize_${KUSTOMIZE_VERSION}_linux_amd64 && \
curl -Lo /bin/skaffold https://storage.googleapis.com/skaffold/releases/${SKAFFOLD_VERSION}/skaffold-linux-amd64 && \
curl -L http://storage.googleapis.com/kubernetes-helm/helm-${HELM_VERSION}-linux-amd64.tar.gz | tar zxv -C /bin --strip-components=1 linux-amd64/helm && \
chmod +x /bin/kubectl /bin/helm /bin/kustomize && \
helm init --client-only --skip-refresh && \
pip install awscli
COPY create-tmp-image-pull-secret create-kubeconfig create-namespace get-gitlab-settings create-release /bin/
CMD ["/bin/kubectl"]