From e1cb7853205bd67adc9d40f1e7cf3ee10e8c52f6 Mon Sep 17 00:00:00 2001 From: useswachte Date: Mon, 18 Mar 2019 14:12:18 +0100 Subject: [PATCH] add command line interfaces for helm, kind, and openfaas --- Dockerfile | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 7a06d5d..df641c1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,11 +2,14 @@ FROM openjdk:8-jdk-slim MAINTAINER USU Software AG +RUN echo "deb http://deb.debian.org/debian stretch-backports main" >> /etc/apt/sources.list + RUN \ apt-get update && \ apt-get install -y -qq --no-install-recommends wget unzip python openssh-client python-openssl git-core jq curl vim gnupg2 && \ + apt-get install -y -t stretch-backports golang-go && \ apt-get clean && \ - rm -rf /var/lib/apt/lists/* + rm -rf /var/lib/apt/lists/* RUN \ curl -s https://raw.githubusercontent.com/paulp/sbt-extras/master/sbt > /usr/local/bin/sbt && chmod 0755 /usr/local/bin/sbt && \ @@ -30,6 +33,18 @@ RUN curl -fsSLO https://download.docker.com/linux/static/stable/x86_64/docker-${ && tar xzvf docker-${DOCKERVERSION}.tgz --strip 1 -C /usr/local/bin docker/docker \ && rm docker-${DOCKERVERSION}.tgz +ENV HELM_ARCHIVE=helm-v2.12.1-linux-amd64.tar.gz \ + HELM_DIR=linux-amd64 \ + FAAS_CLI_VERSION=0.8.5 + +RUN curl -LsO https://storage.googleapis.com/kubernetes-helm/$HELM_ARCHIVE && tar -zxvf $HELM_ARCHIVE && cp $HELM_DIR/* /usr/local/bin + +RUN curl -LsO https://github.com/openfaas/faas-cli/releases/download/${FAAS_CLI_VERSION}/faas-cli && chmod +x faas-cli && cp faas-cli /usr/local/bin + +RUN go version +RUN go get -u sigs.k8s.io/kind +RUN cp $(go env GOPATH)/bin/* /usr/local/bin + # Install node & npm RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - RUN apt install -y nodejs && npm install -g npm@6.1.0