Dockerfile.template 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. %YAML 1.2
  2. --- |
  3. # Copyright 2016 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. # debian 11 = "bullseye"
  17. FROM php:7.3-zts-bullseye
  18. RUN apt-get update && apt-get install -y ${'\\'}
  19. autoconf automake build-essential git libtool curl ${'\\'}
  20. zlib1g-dev ${'\\'}
  21. && apt-get clean
  22. # install php pthreads from source
  23. # TODO(jtattermusch): is this really needed?
  24. # See https://github.com/grpc/grpc/pull/23056
  25. WORKDIR /tmp
  26. RUN git clone https://github.com/krakjoe/pthreads
  27. RUN cd pthreads && ${'\\'}
  28. phpize && ${'\\'}
  29. ./configure && ${'\\'}
  30. make && ${'\\'}
  31. make install
  32. <%include file="../../run_tests_python_deps.include"/>
  33. <%include file="../../php_common_deps.include"/>
  34. <%include file="../../cmake.include"/>
  35. <%include file="../../ccache.include"/>
  36. <%include file="../../run_tests_addons.include"/>
  37. # Seems required by XDS interop tests.
  38. RUN python3 -m pip install virtualenv==16.7.9
  39. # Define the default command.
  40. CMD ["bash"]