Dockerfile 1.6 KB

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