PHP: update dockerfiles

pull/20944/head
Stanley Cheung 5 years ago
parent fd22d3ae57
commit 0579539b07
  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
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 {}

@ -30,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 {}

@ -30,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 && \

@ -30,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 {}

@ -52,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 {}

@ -30,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 {}

@ -30,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 {}

@ -29,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 {}

Loading…
Cancel
Save