github.com/abayer/test-infra@v0.0.5/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:v20180725-795cceb4c-master
    16  LABEL maintainer "beacham@google.com"
    17  
    18  # add env we can debug with the image name:tag
    19  ARG IMAGE_ARG
    20  ENV IMAGE=${IMAGE_ARG}
    21  
    22  RUN apt-get update && apt-get install -y --no-install-recommends \
    23      build-essential \
    24      pkg-config \
    25      unzip \
    26      bash-completion \
    27      git \
    28      wget && \
    29      apt-get clean
    30  
    31  ENV TERRAFORM_VERSION=0.9.4 \
    32      KUBERNETES_PROVIDER=kubernetes-anywhere \
    33      PATH=/usr/local/bin:${PATH}
    34  
    35  # Add kubernetes-anywhere dependencies: jsonnet, terraform, kubectl
    36  RUN cd /tmp && \
    37      git clone https://github.com/google/jsonnet.git && \
    38      ( cd jsonnet && \
    39        make jsonnet && \
    40        cp jsonnet /bin \
    41      ) && \
    42      rm -rf /tmp/jsonnet
    43  
    44  RUN mkdir -p /tmp/terraform/ && \
    45      ( cd /tmp/terraform && \
    46        wget https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip && \
    47        unzip terraform_${TERRAFORM_VERSION}_linux_amd64.zip -d /bin \
    48      ) && \
    49      rm -rf /tmp/terraform
    50  
    51  WORKDIR /workspace
    52  ADD runner /
    53  ENTRYPOINT ["/bin/bash", "/runner"]