Merge pull request #20944 from stanley-cheung/php-update-dockerfiles

PHP: update dockerfiles to allow them to be run on release branches
pull/20947/head
Stanley Cheung 5 years ago committed by GitHub
commit 4650df32ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      src/php/docker/alpine/Dockerfile
  2. 5
      src/php/docker/grpc-ext/Dockerfile
  3. 10
      src/php/docker/grpc-src/Dockerfile
  4. 5
      src/php/docker/php-future/Dockerfile
  5. 5
      src/php/docker/php-src/Dockerfile
  6. 5
      src/php/docker/php-zts/Dockerfile
  7. 5
      src/php/docker/php5/Dockerfile
  8. 10
      templates/src/php/docker/grpc-src/Dockerfile.template
  9. 5
      templates/src/php/docker/pecl_ext_build_src.include

@ -28,10 +28,7 @@ RUN wget https://phar.phpunit.de/phpunit-5.7.27.phar && \
WORKDIR /github/grpc WORKDIR /github/grpc
RUN git clone https://github.com/grpc/grpc . && \ COPY . .
git submodule update --init
COPY src/ ./src
RUN pear package && \ RUN pear package && \
find . -name grpc-*.tgz | xargs -I{} pecl install {} find . -name grpc-*.tgz | xargs -I{} pecl install {}

@ -30,10 +30,7 @@ RUN wget https://phar.phpunit.de/phpunit-5.7.27.phar && \
WORKDIR /github/grpc WORKDIR /github/grpc
RUN git clone https://github.com/grpc/grpc . && \ COPY . .
git submodule update --init
COPY src/ ./src
RUN pear package && \ RUN pear package && \
find . -name grpc-*.tgz | xargs -I{} pecl install {} find . -name grpc-*.tgz | xargs -I{} pecl install {}

@ -30,16 +30,12 @@ RUN wget https://phar.phpunit.de/phpunit-5.7.27.phar && \
WORKDIR /github/grpc WORKDIR /github/grpc
RUN git clone https://github.com/grpc/grpc . && \ COPY . .
git submodule update --init && \
make && make install
RUN make && make install
WORKDIR /github/grpc/src/php/ext/grpc
COPY src/php/ext/grpc/*.c ./ WORKDIR /github/grpc/src/php/ext/grpc
COPY src/php/ext/grpc/*.h ./
COPY src/php/ext/grpc/config.m4 ./
RUN phpize && \ RUN phpize && \
./configure --enable-tests && \ ./configure --enable-tests && \

@ -30,10 +30,7 @@ RUN wget https://phar.phpunit.de/phpunit-5.7.27.phar && \
WORKDIR /github/grpc WORKDIR /github/grpc
RUN git clone https://github.com/grpc/grpc . && \ COPY . .
git submodule update --init
COPY src/ ./src
RUN pear package && \ RUN pear package && \
find . -name grpc-*.tgz | xargs -I{} pecl install {} find . -name grpc-*.tgz | xargs -I{} pecl install {}

@ -52,10 +52,7 @@ RUN git checkout php-7.2.22 && \
WORKDIR /github/grpc WORKDIR /github/grpc
RUN git clone https://github.com/grpc/grpc . && \ COPY . .
git submodule update --init
COPY src/ ./src
RUN pear package && \ RUN pear package && \
find . -name grpc-*.tgz | xargs -I{} pecl install {} find . -name grpc-*.tgz | xargs -I{} pecl install {}

@ -30,10 +30,7 @@ RUN wget https://phar.phpunit.de/phpunit-5.7.27.phar && \
WORKDIR /github/grpc WORKDIR /github/grpc
RUN git clone https://github.com/grpc/grpc . && \ COPY . .
git submodule update --init
COPY src/ ./src
RUN pear package && \ RUN pear package && \
find . -name grpc-*.tgz | xargs -I{} pecl install {} find . -name grpc-*.tgz | xargs -I{} pecl install {}

@ -30,10 +30,7 @@ RUN wget https://phar.phpunit.de/phpunit-5.7.27.phar && \
WORKDIR /github/grpc WORKDIR /github/grpc
RUN git clone https://github.com/grpc/grpc . && \ COPY . .
git submodule update --init
COPY src/ ./src
RUN pear package && \ RUN pear package && \
find . -name grpc-*.tgz | xargs -I{} pecl install {} find . -name grpc-*.tgz | xargs -I{} pecl install {}

@ -29,16 +29,12 @@
WORKDIR /github/grpc WORKDIR /github/grpc
RUN git clone https://github.com/grpc/grpc . && ${'\\'} COPY . .
git submodule update --init && ${'\\'}
make && make install
RUN make && make install
WORKDIR /github/grpc/src/php/ext/grpc
COPY src/php/ext/grpc/*.c ./ WORKDIR /github/grpc/src/php/ext/grpc
COPY src/php/ext/grpc/*.h ./
COPY src/php/ext/grpc/config.m4 ./
RUN phpize && ${'\\'} RUN phpize && ${'\\'}
./configure --enable-tests && ${'\\'} ./configure --enable-tests && ${'\\'}

@ -1,9 +1,6 @@
WORKDIR /github/grpc WORKDIR /github/grpc
RUN git clone https://github.com/grpc/grpc . && ${'\\'} COPY . .
git submodule update --init
COPY src/ ./src
RUN pear package && ${'\\'} RUN pear package && ${'\\'}
find . -name grpc-*.tgz | xargs -I{} pecl install {} find . -name grpc-*.tgz | xargs -I{} pecl install {}

Loading…
Cancel
Save