github.com/shashidharatd/test-infra@v0.0.0-20171006011030-71304e1ca560/logexporter/cmd/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 # This file builds an image for the log exporter tool. For more info, 16 # have a look at the tool's README.md file. 17 18 FROM fedora 19 MAINTAINER Shyam Jeedigunta <shyamjvs@google.com> 20 21 # Setup gcloud SDK for using gsutil. 22 RUN dnf -y -q install which 23 RUN dnf -y -q install python27 24 ADD ["https://dl.google.com/dl/cloudsdk/channels/rapid/google-cloud-sdk.tar.gz", \ 25 "/workspace/"] 26 ENV PATH=/google-cloud-sdk/bin:/workspace:${PATH} \ 27 CLOUDSDK_CORE_DISABLE_PROMPTS=1 28 RUN tar xzf /workspace/google-cloud-sdk.tar.gz -C / && \ 29 /google-cloud-sdk/install.sh \ 30 --disable-installation-options \ 31 --bash-completion=false \ 32 --path-update=false \ 33 --usage-reporting=false && \ 34 gcloud info | tee /workspace/gcloud-info.txt 35 36 # Setup the log exporter script. 37 ADD ["logexporter", "/workspace/"] 38 WORKDIR "/workspace" 39 40 ENTRYPOINT ["/workspace/logexporter"]