Skip to content

Commit

Permalink
fix(dev): add grpc ext to docs container (#6595)
Browse files Browse the repository at this point in the history
  • Loading branch information
bshaffer committed Apr 30, 2024
1 parent f7c3fd6 commit d590f0e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .kokoro/docs/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM gcr.io/gcp-runtimes/ubuntu_16_0_4
FROM gcr.io/gcp-runtimes/ubuntu_20_0_4
ENV PHP_DIR=/opt/php80
ENV PHP_VERSION=8.1.18
ENV PHP_SRC_DIR=/usr/local/src/php81-build
Expand All @@ -21,6 +21,7 @@ RUN apt-get update && \
libkrb5-dev \
libmcrypt-dev \
libpq-dev \
libsodium-dev \
libssl-dev \
libxml2-dev \
libzip-dev \
Expand Down Expand Up @@ -75,11 +76,16 @@ RUN ln -s /usr/lib/libc-client.a /usr/lib/x86_64-linux-gnu/libc-client.a && \
--with-kerberos \
--without-sqlite3 \
--without-pdo-sqlite \
--with-pear && \
--with-pear \
--with-sodium && \
make && \
make install && \
cp php.ini-production ${PHP_DIR}/lib/php.ini

# Install gRPC
RUN pecl install grpc && \
echo 'extension=grpc.so' >> ${PHP_DIR}/lib/conf.d/ext-grpc.ini

# Install composer
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" && \
php -r "if (hash_file('SHA384', 'composer-setup.php') === rtrim(file_get_contents('https://composer.github.io/installer.sig'))) { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" && \
Expand Down

0 comments on commit d590f0e

Please sign in to comment.