github.com/shashidharatd/test-infra@v0.0.0-20171006011030-71304e1ca560/images/kubeadm/Dockerfile (about) 1 # Copyright 2017 The Kubernetes Authors. 2 # 3 # Licensed under the Apache License, Version 2.0 (the "License"); 4 # you may not use this file except in compliance with the License. 5 # You may obtain a copy of the License at 6 # 7 # http://www.apache.org/licenses/LICENSE-2.0 8 # 9 # Unless required by applicable law or agreed to in writing, software 10 # distributed under the License is distributed on an "AS IS" BASIS, 11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 # See the License for the specific language governing permissions and 13 # limitations under the License. 14 15 FROM gcr.io/k8s-testimages/kubekins-e2e:v20171003-06931d34 16 MAINTAINER beacham@google.com 17 18 RUN apt-get update && apt-get install -y \ 19 build-essential \ 20 pkg-config \ 21 unzip \ 22 bash-completion \ 23 git \ 24 wget && \ 25 apt-get clean 26 27 ENV TERRAFORM_VERSION=0.9.4 \ 28 KUBERNETES_PROVIDER=kubernetes-anywhere \ 29 KUBECTL_VERSION=1.6.4 \ 30 PATH=/usr/local/bin:${PATH} 31 32 # Add kubernetes-anywhere dependencies: jsonnet, terraform, kubectl 33 RUN cd /tmp && \ 34 git clone https://github.com/google/jsonnet.git && \ 35 ( cd jsonnet && \ 36 make jsonnet && \ 37 cp jsonnet /bin \ 38 ) && \ 39 rm -rf /tmp/jsonnet 40 41 RUN mkdir -p /tmp/terraform/ && \ 42 ( cd /tmp/terraform && \ 43 wget https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip && \ 44 unzip terraform_${TERRAFORM_VERSION}_linux_amd64.zip -d /bin \ 45 ) && \ 46 rm -rf /tmp/terraform 47 48 # TODO(pipejakob): Instead of fetching a specific precompiled version, get 49 # kubernetes-anywhere to use the kubectl built as part of this job. 50 RUN wget https://storage.googleapis.com/kubernetes-release/release/v${KUBECTL_VERSION}/bin/linux/amd64/kubectl -O /usr/local/bin/kubectl && \ 51 chmod +x /usr/local/bin/kubectl 52 53 WORKDIR /workspace 54 ADD runner / 55 ENTRYPOINT ["/bin/bash", "/runner"]