| # Copyright 2022 The ChromiumOS Authors |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| FROM python:3.8-slim-buster AS build |
| |
| # Install python packages |
| # Due to the way builds happen in the bots, the requirements.txt has a |
| # different checksum (as the file path changes per build), thus breaks the |
| # cache. This way of declaring allows the cloudbuild cache to be carried |
| # between builds/boards. |
| # To update this list, add the new dep to requirements.in, regenerate the |
| # requirements_py3.txt, then manually copy in the dep to the list below, |
| # including the \n\. |
| RUN echo "\ |
| chardet==3.0.4\n\ |
| grpcio==1.31.0\n\ |
| protobuf==3.18.0\n\ |
| requests==2.26.0\n\ |
| selenium==2.37.2\n\ |
| six==1.15.0\n\ |
| urllib3==1.26.7\n\ |
| google.cloud\n\ |
| google.cloud.pubsub\n\ |
| google.cloud.storage\n\ |
| " > requirements_py3.txt |
| RUN pip3 install -r requirements_py3.txt |
| |
| COPY tko-publish /usr/bin/tko-publish |
| |
| # Copy CIPD ensured binaries. |
| # * gcs-publish |
| # * rdb-publish |
| # * cpcon-publish |
| # * result_adapter |
| # * rdb |
| COPY --chown=chromeos-test:chromeos-test --chmod=755 pkgbin/ /usr/bin/ |
| |
| COPY autotest/ /usr/local/autotest |
| COPY contrib/ /usr/local/autotest/contrib/ |
| COPY tko_pb2.py /usr/local/autotest/tko/ |