I tried installing GRPC on Laradock in various ways.
-
First in
laradock/php-fpm/Dockerfile
:RUN apt-get update && apt-get install -y -q git rake ruby-ronn zlib1g-dev && apt-get clean RUN pecl install grpc
-
Second I did everything according to this instruction
But I always get an error and the download continues indefinitely (as if it goes into recursion):
https://i.imgur.com/Q7ib73P.png
https://i.imgur.com/D1rOz5Y.png
These two errors periodically appear on the screen
Solution with https://cloud.google.com/php/grpc :
In laradock/php-fpm/Dockerfile
:
RUN apt-get install autoconf zlib1g-dev php-dev php-pear
RUN pecl install grpc
Result:
https://i.imgur.com/j6yvSMI.png