Skip to content

Commit 80df992

Browse files
committed
Added composer commands to PHP Dockerfiles
1 parent ce0268c commit 80df992

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

tools/dockerfile/grpc_php/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,6 @@ RUN cd /var/local/git/grpc/src/php/ext/grpc \
4646
&& ./configure \
4747
&& make
4848

49+
RUN cd /var/local/git/grpc/src/php && composer install
50+
4951
RUN cd /var/local/git/grpc/src/php && ./bin/run_tests.sh

tools/dockerfile/grpc_php_base/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,12 @@ RUN apt-get update && apt-get install -y \
6464
sqlite3 \
6565
zlib1g-dev
6666

67-
# Install the version of PHP gRPC is tested against
6867
ENV DEBIAN_FRONTEND noniteractive
6968

69+
# Install composer
70+
RUN curl -sS https://getcomposer.org/installer | php
71+
RUN mv composer.phar /usr/local/bin/composer
72+
7073
# Download the patched PHP protobuf so that PHP gRPC clients can be generated
7174
# from proto3 schemas.
7275
RUN git clone https://github.com/murgatroid99/Protobuf-PHP.git /var/local/git/protobuf-php

0 commit comments

Comments
 (0)