1# Copyright 2018 The gRPC 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 15FROM golang:1.11 16 17# Using login shell removes Go from path, so we add it. 18RUN ln -s /usr/local/go/bin/go /usr/local/bin 19 20#==================== 21# run_tests.py python dependencies 22 23# Basic python dependencies to be able to run tools/run_tests python scripts 24# These dependencies are not sufficient to build gRPC Python, gRPC Python 25# deps are defined elsewhere (e.g. python_deps.include) 26RUN apt-get update && apt-get install -y \ 27 python3 \ 28 python3-pip \ 29 python3-setuptools \ 30 python3-yaml \ 31 && apt-get clean 32 33# use pinned version of pip to avoid sudden breakages 34RUN python3 -m pip install --upgrade pip==19.3.1 35 36# TODO(jtattermusch): currently six is needed for tools/run_tests scripts 37# but since our python2 usage is deprecated, we should get rid of it. 38RUN python3 -m pip install six==1.16.0 39 40# Google Cloud Platform API libraries 41# These are needed for uploading test results to BigQuery (e.g. by tools/run_tests scripts) 42RUN python3 -m pip install --upgrade google-auth==1.23.0 google-api-python-client==1.12.8 oauth2client==4.1.0 43 44 45# Define the default command. 46CMD ["bash"] 47