github.com/munnerz/test-infra@v0.0.0-20190108210205-ce3d181dc989/images/cluster-api/Dockerfile (about)

     1  # Copyright 2018 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  # Includes go, gcloud, and etcd
    16  FROM gcr.io/k8s-testimages/gcloud-in-go:v20180927-6b4facbe6
    17  LABEL maintainer="krousey@google.com"
    18  
    19  # add env we can debug with the image name:tag
    20  ARG IMAGE_ARG
    21  ENV IMAGE=${IMAGE_ARG}
    22  
    23  ENV ETCD_VER=v3.3.0
    24  ENV ETCD_URL=https://storage.googleapis.com/etcd
    25  
    26  RUN wget ${ETCD_URL}/${ETCD_VER}/etcd-${ETCD_VER}-linux-amd64.tar.gz && \
    27      mkdir /etcd && \
    28      tar xzf etcd-${ETCD_VER}-linux-amd64.tar.gz -C /etcd --strip-components=1 && \
    29      rm -f etcd-${ETCD_VER}-linux-amd64.tar.gz
    30  
    31  ENV PATH "/etcd:${PATH}"