k8s.io/test-infra@v0.0.0-20240520184403-27c6b4c223d8/kettle/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:18.04 16 17 ENV KETTLE_DB=/data/build.db TZ=America/Los_Angeles 18 19 RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime \ 20 && echo $TZ > /etc/timezone \ 21 && apt-get update \ 22 && apt-get install -y \ 23 tzdata \ 24 curl \ 25 pv \ 26 time \ 27 sqlite3 \ 28 python \ 29 python3 \ 30 python3-pip \ 31 && rm -rf /var/lib/apt/lists/* 32 33 RUN pip3 install --no-cache-dir --upgrade pip && \ 34 pip3 install --no-cache-dir requests google-cloud-pubsub==2.3.0 google-cloud-bigquery==2.11.0 ruamel.yaml==0.16 35 36 RUN curl -fsSL https://downloads.python.org/pypy/pypy3.6-v7.3.1-linux64.tar.bz2 | tar xj -C opt && \ 37 ln -s /opt/pypy*/bin/pypy3 /usr/bin 38 39 RUN curl https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-320.0.0-linux-x86_64.tar.gz | tar xfz - -C . && \ 40 ./google-cloud-sdk/install.sh -q && \ 41 ln -s /google-cloud-sdk/bin/* /bin/ 42 43 ADD *.py schema.json runner.sh buckets.yaml /kettle/ 44 45 VOLUME ["/data"] 46 47 CMD ["/kettle/runner.sh"]