Unverified Commit 199f8884 authored by ddavison's avatar ddavison
Browse files

Consolidate dependencies into Dockerfile

Instead of having an install_dependencies.sh
shell file, let's move them into the Dockerfile
as a single layer
parent 972b3793
Loading
Loading
Loading
Loading
+12 −1
Original line number Diff line number Diff line
@@ -5,5 +5,16 @@ ARG KUBERNETES_VERSION

COPY src/ build/

RUN /build/install_dependencies.sh
# Install Dependencies
RUN apk add -U openssl curl tar gzip bash ca-certificates git \
  && curl -sSL -o /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub \
  && curl -sSL -O https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.28-r0/glibc-2.28-r0.apk \
  && apk add glibc-2.28-r0.apk \
  && rm glibc-2.28-r0.apk \
  && curl -sS "https://kubernetes-helm.storage.googleapis.com/helm-v${HELM_VERSION}-linux-amd64.tar.gz" | tar zx \
  && mv linux-amd64/helm /usr/bin/ \
  && mv linux-amd64/tiller /usr/bin/ \
  && curl -sSL -o /usr/bin/kubectl "https://storage.googleapis.com/kubernetes-release/release/v${KUBERNETES_VERSION}/bin/linux/amd64/kubectl" \
  && chmod +x /usr/bin/kubectl

RUN ln -s /build/bin/* /usr/local/bin/

src/install_dependencies.sh

deleted100755 → 0
+0 −14
Original line number Diff line number Diff line
#!/bin/sh

apk add -U openssl curl tar gzip bash ca-certificates git
curl -sSL -o /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub
curl -sSL -O https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.28-r0/glibc-2.28-r0.apk
apk add glibc-2.28-r0.apk
rm glibc-2.28-r0.apk

curl -sS "https://kubernetes-helm.storage.googleapis.com/helm-v${HELM_VERSION}-linux-amd64.tar.gz" | tar zx
mv linux-amd64/helm /usr/bin/
mv linux-amd64/tiller /usr/bin/

curl -sSL -o /usr/bin/kubectl "https://storage.googleapis.com/kubernetes-release/release/v${KUBERNETES_VERSION}/bin/linux/amd64/kubectl"
chmod +x /usr/bin/kubectl