Dockerfile 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. # Copyright 2021 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 gcc:5
  15. RUN apt-get update && apt-get install -y curl git time wget zip && apt-get clean
  16. #====================
  17. # run_tests.py python dependencies
  18. # Basic python dependencies to be able to run tools/run_tests python scripts
  19. # These dependencies are not sufficient to build gRPC Python, gRPC Python
  20. # deps are defined elsewhere (e.g. python_deps.include)
  21. RUN apt-get update && apt-get install -y \
  22. python3 \
  23. python3-pip \
  24. python3-setuptools \
  25. python3-yaml \
  26. && apt-get clean
  27. # use pinned version of pip to avoid sudden breakages
  28. RUN python3 -m pip install --upgrade pip==19.3.1
  29. # TODO(jtattermusch): currently six is needed for tools/run_tests scripts
  30. # but since our python2 usage is deprecated, we should get rid of it.
  31. RUN python3 -m pip install six==1.16.0
  32. # Google Cloud Platform API libraries
  33. # These are needed for uploading test results to BigQuery (e.g. by tools/run_tests scripts)
  34. RUN python3 -m pip install --upgrade google-auth==1.23.0 google-api-python-client==1.12.8 oauth2client==4.1.0
  35. #=================
  36. # Use cmake 3.6 from jessie-backports
  37. # should only be used for images based on debian jessie.
  38. RUN echo "deb http://archive.debian.org/debian jessie-backports main" | tee /etc/apt/sources.list.d/jessie-backports.list
  39. RUN echo 'Acquire::Check-Valid-Until "false";' > /etc/apt/apt.conf
  40. RUN sed -i '/deb http:\/\/deb.debian.org\/debian jessie-updates main/d' /etc/apt/sources.list
  41. RUN apt-get update && apt-get install -t jessie-backports -y cmake && apt-get clean
  42. RUN mkdir /var/local/jenkins
  43. # Define the default command.
  44. CMD ["bash"]