k8s.io/test-infra@v0.0.0-20240520184403-27c6b4c223d8/images/bigquery/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 ubuntu:22.04 16 17 RUN apt-get update && apt-get install -y \ 18 git \ 19 jq \ 20 wget \ 21 python3 \ 22 python3-pip && \ 23 rm -rf /var/lib/apt/lists/* 24 25 # TODO: these are quite old ... 26 ARG CLOUD_SDK_VERSION=390.0.0 27 ARG BIGQUERY_LIBRARY_VERSION=0.26.0 28 ARG RUAMEL_VERSION=0.16 29 30 RUN pip3 install --no-cache-dir google-cloud-bigquery==${BIGQUERY_LIBRARY_VERSION} ruamel.yaml==${RUAMEL_VERSION} 31 32 ENV PATH=/google-cloud-sdk/bin:${PATH} \ 33 CLOUDSDK_CORE_DISABLE_PROMPTS=1 34 35 RUN pip3 install -U crcmod==1.7 36 RUN wget https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-${CLOUD_SDK_VERSION}-linux-x86_64.tar.gz 37 RUN tar xzf google-cloud-sdk-${CLOUD_SDK_VERSION}-linux-x86_64.tar.gz -C / 38 RUN rm google-cloud-sdk-${CLOUD_SDK_VERSION}-linux-x86_64.tar.gz 39 RUN gcloud config set core/disable_usage_reporting true && \ 40 gcloud config set component_manager/disable_update_check true && \ 41 gcloud config set metrics/environment github_docker_image && \ 42 gcloud --version 43 44 WORKDIR /workspace 45 ADD runner / 46 ENTRYPOINT ["/bin/bash", "/runner"]