Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(dev): add grpc ext to docs container #6595

Merged
merged 6 commits into from
Apr 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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