Dockerfile.template 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. <%include file="../../python_debian11.include"/>
  17. <%include file="../../cxx_deps.include"/>
  18. #========================
  19. # Sanity test dependencies
  20. RUN apt-get update && apt-get install -y ${"\\"}
  21. autoconf ${"\\"}
  22. automake ${"\\"}
  23. libtool ${"\\"}
  24. curl ${"\\"}
  25. shellcheck
  26. RUN python2 -m pip install simplejson mako virtualenv==16.7.9 lxml
  27. RUN python3 -m pip install simplejson mako virtualenv==16.7.9 lxml six
  28. # Upgrade Python's YAML library
  29. RUN python2 -m pip install --upgrade --ignore-installed PyYAML==5.4.1 --user
  30. RUN python3 -m pip install --upgrade --ignore-installed PyYAML==5.4.1 --user
  31. # Install clang, clang-format, and clang-tidy
  32. RUN apt-get update && apt-get install -y clang clang-format-11 clang-tidy-11 jq
  33. ENV CLANG_FORMAT=clang-format-11
  34. ENV CLANG_TIDY=clang-tidy-11
  35. <%include file="../../bazel.include"/>
  36. <%include file="../../buildifier.include"/>
  37. # Define the default command.
  38. CMD ["bash"]