github.com/munnerz/test-infra@v0.0.0-20190108210205-ce3d181dc989/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  # Base image must have 'journalctl' binary.
    19  FROM fedora
    20  LABEL maintainer="Shyam Jeedigunta <shyamjvs@google.com>"
    21  
    22  # Setup gcloud SDK for using gsutil.
    23  RUN dnf -y -q install which
    24  RUN dnf -y -q install python27
    25  ADD ["https://dl.google.com/dl/cloudsdk/channels/rapid/google-cloud-sdk.tar.gz", \
    26       "/workspace/"]
    27  ENV PATH=/google-cloud-sdk/bin:/workspace:${PATH} \
    28      CLOUDSDK_CORE_DISABLE_PROMPTS=1
    29  RUN tar xzf /workspace/google-cloud-sdk.tar.gz -C / && \
    30      /google-cloud-sdk/install.sh \
    31          --disable-installation-options \
    32          --bash-completion=false \
    33          --path-update=false \
    34          --usage-reporting=false && \
    35      gcloud info | tee /workspace/gcloud-info.txt
    36  
    37  # Setup the log exporter script.
    38  ADD ["logexporter", "/workspace/"]
    39  WORKDIR "/workspace"
    40  
    41  ENTRYPOINT ["/workspace/logexporter"]