Dockerfile.template 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. %YAML 1.2
  2. --- |
  3. # Copyright 2015 gRPC authors.
  4. #
  5. # Licensed under the Apache License, Version 2.0 (the "License");
  6. # you may not use this file except in compliance with the License.
  7. # You may obtain a copy of the License at
  8. #
  9. # http://www.apache.org/licenses/LICENSE-2.0
  10. #
  11. # Unless required by applicable law or agreed to in writing, software
  12. # distributed under the License is distributed on an "AS IS" BASIS,
  13. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. # See the License for the specific language governing permissions and
  15. # limitations under the License.
  16. FROM alpine:3.11
  17. # Install Git and basic packages.
  18. RUN apk update && apk add ${'\\'}
  19. autoconf ${'\\'}
  20. automake ${'\\'}
  21. bzip2 ${'\\'}
  22. build-base ${'\\'}
  23. cmake ${'\\'}
  24. ccache ${'\\'}
  25. curl ${'\\'}
  26. gcc ${'\\'}
  27. git ${'\\'}
  28. libtool ${'\\'}
  29. linux-headers ${'\\'}
  30. make ${'\\'}
  31. perl ${'\\'}
  32. strace ${'\\'}
  33. python3 ${'\\'}
  34. py3-pip ${'\\'}
  35. unzip ${'\\'}
  36. wget ${'\\'}
  37. zip
  38. # use pinned version of pip to avoid sudden breakages
  39. RUN python3 -m pip install --upgrade pip==19.3.1
  40. # TODO(jtattermusch): currently six is needed for tools/run_tests scripts
  41. # but since our python2 usage is deprecated, we should get rid of it.
  42. RUN python3 -m pip install six==1.16.0
  43. # Google Cloud Platform API libraries
  44. # These are needed for uploading test results to BigQuery (e.g. by tools/run_tests scripts)
  45. RUN python3 -m pip install --upgrade google-auth==1.24.0 google-api-python-client==1.12.8 oauth2client==4.1.0
  46. RUN python3 -m pip install --upgrade --ignore-installed PyYAML==5.4.1 --user
  47. <%include file="../../ccache.include"/>
  48. <%include file="../../run_tests_addons.include"/>
  49. # Define the default command.
  50. CMD ["bash"]