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

PHP: backport dockerfile fixes
pull/20978/head
Stanley Cheung 5 years ago committed by GitHub
commit 2b3501a905
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      src/php/docker/alpine/Dockerfile
  2. 7
      src/php/docker/grpc-ext/Dockerfile
  3. 12
      src/php/docker/grpc-src/Dockerfile
  4. 7
      src/php/docker/php-future/Dockerfile
  5. 7
      src/php/docker/php-src/Dockerfile
  6. 7
      src/php/docker/php-zts/Dockerfile
  7. 7
      src/php/docker/php5/Dockerfile
  8. 2
      templates/src/php/docker/alpine/Dockerfile.template
  9. 2
      templates/src/php/docker/grpc-ext/Dockerfile.template
  10. 12
      templates/src/php/docker/grpc-src/Dockerfile.template
  11. 5
      templates/src/php/docker/pecl_ext_build_src.include
  12. 2
      templates/src/php/docker/php-future/Dockerfile.template
  13. 2
      templates/src/php/docker/php-src/Dockerfile.template
  14. 2
      templates/src/php/docker/php-zts/Dockerfile.template
  15. 2
      templates/src/php/docker/php5/Dockerfile.template

@ -16,6 +16,8 @@ FROM php:7.2-alpine3.9
RUN apk add autoconf g++ make zlib-dev git bash wget
ARG MAKEFLAGS=-j8
WORKDIR /tmp
@ -26,10 +28,7 @@ RUN wget https://phar.phpunit.de/phpunit-5.7.27.phar && \
WORKDIR /github/grpc
RUN git clone https://github.com/grpc/grpc . && \
git submodule update --init
COPY src/ ./src
COPY . .
RUN pear package && \
find . -name grpc-*.tgz | xargs -I{} pecl install {}

@ -18,6 +18,8 @@ RUN apt-get -qq update && apt-get -qq install -y \
autoconf automake git libtool pkg-config \
valgrind wget zlib1g-dev
ARG MAKEFLAGS=-j8
WORKDIR /tmp
@ -28,10 +30,7 @@ RUN wget https://phar.phpunit.de/phpunit-5.7.27.phar && \
WORKDIR /github/grpc
RUN git clone https://github.com/grpc/grpc . && \
git submodule update --init
COPY src/ ./src
COPY . .
RUN pear package && \
find . -name grpc-*.tgz | xargs -I{} pecl install {}

@ -18,6 +18,8 @@ RUN apt-get -qq update && apt-get -qq install -y \
autoconf automake git libtool pkg-config \
valgrind wget zlib1g-dev
ARG MAKEFLAGS=-j8
WORKDIR /tmp
@ -28,16 +30,12 @@ RUN wget https://phar.phpunit.de/phpunit-5.7.27.phar && \
WORKDIR /github/grpc
RUN git clone https://github.com/grpc/grpc . && \
git submodule update --init && \
make && make install
COPY . .
RUN make && make install
WORKDIR /github/grpc/src/php/ext/grpc
COPY src/php/ext/grpc/*.c ./
COPY src/php/ext/grpc/*.h ./
COPY src/php/ext/grpc/config.m4 ./
WORKDIR /github/grpc/src/php/ext/grpc
RUN phpize && \
./configure --enable-tests && \

@ -18,6 +18,8 @@ RUN apt-get -qq update && apt-get -qq install -y \
autoconf automake git libtool pkg-config \
wget zlib1g-dev
ARG MAKEFLAGS=-j8
WORKDIR /tmp
@ -28,10 +30,7 @@ RUN wget https://phar.phpunit.de/phpunit-5.7.27.phar && \
WORKDIR /github/grpc
RUN git clone https://github.com/grpc/grpc . && \
git submodule update --init
COPY src/ ./src
COPY . .
RUN pear package && \
find . -name grpc-*.tgz | xargs -I{} pecl install {}

@ -36,6 +36,8 @@ RUN wget http://ftp.gnu.org/gnu/bison/bison-3.4.2.tar.gz && \
WORKDIR /github/php-src
ARG MAKEFLAGS=-j8
RUN git clone https://github.com/php/php-src .
RUN git checkout php-7.2.22 && \
@ -50,10 +52,7 @@ RUN git checkout php-7.2.22 && \
WORKDIR /github/grpc
RUN git clone https://github.com/grpc/grpc . && \
git submodule update --init
COPY src/ ./src
COPY . .
RUN pear package && \
find . -name grpc-*.tgz | xargs -I{} pecl install {}

@ -18,6 +18,8 @@ RUN apt-get -qq update && apt-get -qq install -y \
autoconf automake git libtool pkg-config \
wget zlib1g-dev
ARG MAKEFLAGS=-j8
WORKDIR /tmp
@ -28,10 +30,7 @@ RUN wget https://phar.phpunit.de/phpunit-5.7.27.phar && \
WORKDIR /github/grpc
RUN git clone https://github.com/grpc/grpc . && \
git submodule update --init
COPY src/ ./src
COPY . .
RUN pear package && \
find . -name grpc-*.tgz | xargs -I{} pecl install {}

@ -18,6 +18,8 @@ RUN apt-get -qq update && apt-get -qq install -y \
autoconf automake git libtool pkg-config \
valgrind wget zlib1g-dev
ARG MAKEFLAGS=-j8
WORKDIR /tmp
@ -28,10 +30,7 @@ RUN wget https://phar.phpunit.de/phpunit-5.7.27.phar && \
WORKDIR /github/grpc
RUN git clone https://github.com/grpc/grpc . && \
git submodule update --init
COPY src/ ./src
COPY . .
RUN pear package && \
find . -name grpc-*.tgz | xargs -I{} pecl install {}

@ -18,6 +18,8 @@
RUN apk add autoconf g++ make zlib-dev git bash wget
ARG MAKEFLAGS=-j8
WORKDIR /tmp

@ -20,6 +20,8 @@
autoconf automake git libtool pkg-config ${'\\'}
valgrind wget zlib1g-dev
ARG MAKEFLAGS=-j8
WORKDIR /tmp

@ -20,6 +20,8 @@
autoconf automake git libtool pkg-config ${'\\'}
valgrind wget zlib1g-dev
ARG MAKEFLAGS=-j8
WORKDIR /tmp
@ -27,16 +29,12 @@
WORKDIR /github/grpc
RUN git clone https://github.com/grpc/grpc . && ${'\\'}
git submodule update --init && ${'\\'}
make && make install
COPY . .
RUN make && make install
WORKDIR /github/grpc/src/php/ext/grpc
COPY src/php/ext/grpc/*.c ./
COPY src/php/ext/grpc/*.h ./
COPY src/php/ext/grpc/config.m4 ./
WORKDIR /github/grpc/src/php/ext/grpc
RUN phpize && ${'\\'}
./configure --enable-tests && ${'\\'}

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

@ -20,6 +20,8 @@
autoconf automake git libtool pkg-config ${'\\'}
wget zlib1g-dev
ARG MAKEFLAGS=-j8
WORKDIR /tmp

@ -35,6 +35,8 @@
WORKDIR /github/php-src
ARG MAKEFLAGS=-j8
RUN git clone https://github.com/php/php-src .
RUN git checkout php-7.2.22 && ${'\\'}

@ -20,6 +20,8 @@
autoconf automake git libtool pkg-config ${'\\'}
wget zlib1g-dev
ARG MAKEFLAGS=-j8
WORKDIR /tmp

@ -20,6 +20,8 @@
autoconf automake git libtool pkg-config ${'\\'}
valgrind wget zlib1g-dev
ARG MAKEFLAGS=-j8
WORKDIR /tmp

Loading…
Cancel
Save