Skip to content

Commit

Permalink
PHP: update dockerfiles to add MAKEFLAGS=-j8
Browse files Browse the repository at this point in the history
  • Loading branch information
stanley-cheung committed Oct 29, 2019
1 parent 0856e26 commit 220c4de
Show file tree
Hide file tree
Showing 20 changed files with 40 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/php/echo/apache.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ COPY client.php ./index.php
COPY composer.json .
COPY echo.proto .

RUN chmod 644 index.php

RUN protoc -I=. echo.proto --php_out=. --grpc_out=.

RUN composer install
2 changes: 2 additions & 0 deletions examples/php/echo/base.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ RUN apt-get -qq update && apt-get -qq install -y \
autoconf automake curl git libtool \
pkg-config unzip zlib1g-dev

ARG MAKEFLAGS=-j8


WORKDIR /tmp

Expand Down
2 changes: 2 additions & 0 deletions examples/php/echo/fpm.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ COPY client.php ./index.php
COPY composer.json .
COPY echo.proto .

RUN chmod 644 index.php

RUN protoc -I=. echo.proto --php_out=. --grpc_out=.

RUN composer install
2 changes: 2 additions & 0 deletions src/php/docker/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 2 additions & 0 deletions src/php/docker/grpc-ext/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 2 additions & 0 deletions src/php/docker/grpc-src/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 2 additions & 0 deletions src/php/docker/php-future/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 2 additions & 0 deletions src/php/docker/php-src/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 && \
Expand Down
2 changes: 2 additions & 0 deletions src/php/docker/php-zts/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 2 additions & 0 deletions src/php/docker/php5/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 2 additions & 0 deletions templates/examples/php/echo/apache.Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
COPY composer.json .
COPY echo.proto .

RUN chmod 644 index.php

RUN protoc -I=. echo.proto --php_out=. --grpc_out=.

RUN composer install
2 changes: 2 additions & 0 deletions templates/examples/php/echo/base.Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
autoconf automake curl git libtool ${'\\'}
pkg-config unzip zlib1g-dev

ARG MAKEFLAGS=-j8


WORKDIR /tmp

Expand Down
2 changes: 2 additions & 0 deletions templates/examples/php/echo/fpm.Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
COPY composer.json .
COPY echo.proto .

RUN chmod 644 index.php

RUN protoc -I=. echo.proto --php_out=. --grpc_out=.

RUN composer install
2 changes: 2 additions & 0 deletions templates/src/php/docker/alpine/Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@

RUN apk add autoconf g++ make zlib-dev git bash wget

ARG MAKEFLAGS=-j8


WORKDIR /tmp

Expand Down
2 changes: 2 additions & 0 deletions templates/src/php/docker/grpc-ext/Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
autoconf automake git libtool pkg-config ${'\\'}
valgrind wget zlib1g-dev

ARG MAKEFLAGS=-j8


WORKDIR /tmp

Expand Down
2 changes: 2 additions & 0 deletions templates/src/php/docker/grpc-src/Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
autoconf automake git libtool pkg-config ${'\\'}
valgrind wget zlib1g-dev

ARG MAKEFLAGS=-j8


WORKDIR /tmp

Expand Down
2 changes: 2 additions & 0 deletions templates/src/php/docker/php-future/Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
autoconf automake git libtool pkg-config ${'\\'}
wget zlib1g-dev

ARG MAKEFLAGS=-j8


WORKDIR /tmp

Expand Down
2 changes: 2 additions & 0 deletions templates/src/php/docker/php-src/Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -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 && ${'\\'}
Expand Down
2 changes: 2 additions & 0 deletions templates/src/php/docker/php-zts/Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
autoconf automake git libtool pkg-config ${'\\'}
wget zlib1g-dev

ARG MAKEFLAGS=-j8


WORKDIR /tmp

Expand Down
2 changes: 2 additions & 0 deletions templates/src/php/docker/php5/Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
autoconf automake git libtool pkg-config ${'\\'}
valgrind wget zlib1g-dev

ARG MAKEFLAGS=-j8


WORKDIR /tmp

Expand Down

0 comments on commit 220c4de

Please sign in to comment.