Skip to content

Commit

Permalink
Merge pull request #3 from LynxSolutions/pcntl
Browse files Browse the repository at this point in the history
Add pcntl extension
  • Loading branch information
bogdannbv authored Dec 9, 2024
2 parents 000754c + 88860da commit 119a7f0
Show file tree
Hide file tree
Showing 20 changed files with 41 additions and 2 deletions.
2 changes: 2 additions & 0 deletions 8.2/cli-alpine-pcov/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ RUN apk add --no-cache --virtual .build-deps \
pcov \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-configure intl \
&& docker-php-ext-configure pcntl \
&& docker-php-ext-install \
--jobs 4 \
bcmath \
Expand All @@ -30,6 +31,7 @@ RUN apk add --no-cache --virtual .build-deps \
sockets \
zip \
intl \
pcntl \
&& docker-php-ext-enable \
redis \
pcov \
Expand Down
2 changes: 2 additions & 0 deletions 8.2/cli-alpine-xdebug/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ RUN apk add --no-cache --virtual .build-deps \
xdebug \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-configure intl \
&& docker-php-ext-configure pcntl \
&& docker-php-ext-install \
--jobs 4 \
bcmath \
Expand All @@ -30,6 +31,7 @@ RUN apk add --no-cache --virtual .build-deps \
sockets \
zip \
intl \
pcntl \
&& docker-php-ext-enable \
redis \
xdebug \
Expand Down
2 changes: 2 additions & 0 deletions 8.2/cli-alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ RUN apk add --no-cache --virtual .build-deps \
redis \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-configure intl \
&& docker-php-ext-configure pcntl \
&& docker-php-ext-install \
--jobs 4 \
bcmath \
Expand All @@ -29,6 +30,7 @@ RUN apk add --no-cache --virtual .build-deps \
sockets \
zip \
intl \
pcntl \
&& docker-php-ext-enable \
redis \
&& apk del .build-deps \
Expand Down
2 changes: 2 additions & 0 deletions 8.2/fpm-alpine-pcov/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ RUN apk add --no-cache --virtual .build-deps \
pcov \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-configure intl \
&& docker-php-ext-configure pcntl \
&& docker-php-ext-install \
--jobs 4 \
bcmath \
Expand All @@ -30,6 +31,7 @@ RUN apk add --no-cache --virtual .build-deps \
sockets \
zip \
intl \
pcntl \
&& docker-php-ext-enable \
redis \
pcov \
Expand Down
2 changes: 2 additions & 0 deletions 8.2/fpm-alpine-xdebug/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ RUN apk add --no-cache --virtual .build-deps \
xdebug \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-configure intl \
&& docker-php-ext-configure pcntl \
&& docker-php-ext-install \
--jobs 4 \
bcmath \
Expand All @@ -30,6 +31,7 @@ RUN apk add --no-cache --virtual .build-deps \
sockets \
zip \
intl \
pcntl \
&& docker-php-ext-enable \
redis \
xdebug \
Expand Down
2 changes: 2 additions & 0 deletions 8.2/fpm-alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ RUN apk add --no-cache --virtual .build-deps \
redis \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-configure intl \
&& docker-php-ext-configure pcntl \
&& docker-php-ext-install \
--jobs 4 \
bcmath \
Expand All @@ -29,6 +30,7 @@ RUN apk add --no-cache --virtual .build-deps \
sockets \
zip \
intl \
pcntl \
&& docker-php-ext-enable \
redis \
&& apk del .build-deps \
Expand Down
2 changes: 2 additions & 0 deletions 8.3/cli-alpine-pcov/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ RUN apk add --no-cache --virtual .build-deps \
pcov \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-configure intl \
&& docker-php-ext-configure pcntl \
&& docker-php-ext-install \
--jobs 4 \
bcmath \
Expand All @@ -30,6 +31,7 @@ RUN apk add --no-cache --virtual .build-deps \
sockets \
zip \
intl \
pcntl \
&& docker-php-ext-enable \
redis \
pcov \
Expand Down
2 changes: 2 additions & 0 deletions 8.3/cli-alpine-xdebug/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ RUN apk add --no-cache --virtual .build-deps \
xdebug \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-configure intl \
&& docker-php-ext-configure pcntl \
&& docker-php-ext-install \
--jobs 4 \
bcmath \
Expand All @@ -30,6 +31,7 @@ RUN apk add --no-cache --virtual .build-deps \
sockets \
zip \
intl \
pcntl \
&& docker-php-ext-enable \
redis \
xdebug \
Expand Down
2 changes: 2 additions & 0 deletions 8.3/cli-alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ RUN apk add --no-cache --virtual .build-deps \
redis \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-configure intl \
&& docker-php-ext-configure pcntl \
&& docker-php-ext-install \
--jobs 4 \
bcmath \
Expand All @@ -29,6 +30,7 @@ RUN apk add --no-cache --virtual .build-deps \
sockets \
zip \
intl \
pcntl \
&& docker-php-ext-enable \
redis \
&& apk del .build-deps \
Expand Down
2 changes: 2 additions & 0 deletions 8.3/fpm-alpine-pcov/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ RUN apk add --no-cache --virtual .build-deps \
pcov \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-configure intl \
&& docker-php-ext-configure pcntl \
&& docker-php-ext-install \
--jobs 4 \
bcmath \
Expand All @@ -30,6 +31,7 @@ RUN apk add --no-cache --virtual .build-deps \
sockets \
zip \
intl \
pcntl \
&& docker-php-ext-enable \
redis \
pcov \
Expand Down
2 changes: 2 additions & 0 deletions 8.3/fpm-alpine-xdebug/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ RUN apk add --no-cache --virtual .build-deps \
xdebug \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-configure intl \
&& docker-php-ext-configure pcntl \
&& docker-php-ext-install \
--jobs 4 \
bcmath \
Expand All @@ -30,6 +31,7 @@ RUN apk add --no-cache --virtual .build-deps \
sockets \
zip \
intl \
pcntl \
&& docker-php-ext-enable \
redis \
xdebug \
Expand Down
2 changes: 2 additions & 0 deletions 8.3/fpm-alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ RUN apk add --no-cache --virtual .build-deps \
redis \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-configure intl \
&& docker-php-ext-configure pcntl \
&& docker-php-ext-install \
--jobs 4 \
bcmath \
Expand All @@ -29,6 +30,7 @@ RUN apk add --no-cache --virtual .build-deps \
sockets \
zip \
intl \
pcntl \
&& docker-php-ext-enable \
redis \
&& apk del .build-deps \
Expand Down
2 changes: 2 additions & 0 deletions 8.4/cli-alpine-pcov/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ RUN apk add --no-cache --virtual .build-deps \
pcov \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-configure intl \
&& docker-php-ext-configure pcntl \
&& docker-php-ext-install \
--jobs 4 \
bcmath \
Expand All @@ -30,6 +31,7 @@ RUN apk add --no-cache --virtual .build-deps \
sockets \
zip \
intl \
pcntl \
&& docker-php-ext-enable \
redis \
pcov \
Expand Down
2 changes: 2 additions & 0 deletions 8.4/cli-alpine-xdebug/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ RUN apk add --no-cache --virtual .build-deps \
xdebug \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-configure intl \
&& docker-php-ext-configure pcntl \
&& docker-php-ext-install \
--jobs 4 \
bcmath \
Expand All @@ -30,6 +31,7 @@ RUN apk add --no-cache --virtual .build-deps \
sockets \
zip \
intl \
pcntl \
&& docker-php-ext-enable \
redis \
xdebug \
Expand Down
2 changes: 2 additions & 0 deletions 8.4/cli-alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ RUN apk add --no-cache --virtual .build-deps \
redis \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-configure intl \
&& docker-php-ext-configure pcntl \
&& docker-php-ext-install \
--jobs 4 \
bcmath \
Expand All @@ -29,6 +30,7 @@ RUN apk add --no-cache --virtual .build-deps \
sockets \
zip \
intl \
pcntl \
&& docker-php-ext-enable \
redis \
&& apk del .build-deps \
Expand Down
2 changes: 2 additions & 0 deletions 8.4/fpm-alpine-pcov/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ RUN apk add --no-cache --virtual .build-deps \
pcov \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-configure intl \
&& docker-php-ext-configure pcntl \
&& docker-php-ext-install \
--jobs 4 \
bcmath \
Expand All @@ -30,6 +31,7 @@ RUN apk add --no-cache --virtual .build-deps \
sockets \
zip \
intl \
pcntl \
&& docker-php-ext-enable \
redis \
pcov \
Expand Down
2 changes: 2 additions & 0 deletions 8.4/fpm-alpine-xdebug/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ RUN apk add --no-cache --virtual .build-deps \
xdebug \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-configure intl \
&& docker-php-ext-configure pcntl \
&& docker-php-ext-install \
--jobs 4 \
bcmath \
Expand All @@ -30,6 +31,7 @@ RUN apk add --no-cache --virtual .build-deps \
sockets \
zip \
intl \
pcntl \
&& docker-php-ext-enable \
redis \
xdebug \
Expand Down
2 changes: 2 additions & 0 deletions 8.4/fpm-alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ RUN apk add --no-cache --virtual .build-deps \
redis \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-configure intl \
&& docker-php-ext-configure pcntl \
&& docker-php-ext-install \
--jobs 4 \
bcmath \
Expand All @@ -29,6 +30,7 @@ RUN apk add --no-cache --virtual .build-deps \
sockets \
zip \
intl \
pcntl \
&& docker-php-ext-enable \
redis \
&& apk del .build-deps \
Expand Down
2 changes: 2 additions & 0 deletions Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ RUN apk add --no-cache --virtual .build-deps \
{{ ) else "" end -}}
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-configure intl \
&& docker-php-ext-configure pcntl \
&& docker-php-ext-install \
--jobs 4 \
bcmath \
Expand All @@ -26,6 +27,7 @@ RUN apk add --no-cache --virtual .build-deps \
sockets \
zip \
intl \
pcntl \
&& docker-php-ext-enable \
redis \
{{ if env.subvariant != "" then ( -}}
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
# [PHP](https://hub.docker.com/r/lynxsolutions/php) base image
_A [PHP](https://php.net) base image for [Laravel](https://laravel.com) projects._
_A [PHP](https://php.net) base image mainly for [Laravel](https://laravel.com) projects._

Being based on it, this image is a drop-in replacement for the [Official PHP image](https://hub.docker.com/_/php).

## Extensions
The main image comes with some commonly used extensions already installed:
The main images come with some commonly used extensions already installed:
- [`gd --with-jpeg --with-freetype`](https://www.php.net/manual/en/book.image.php)
- [`opcache`](https://www.php.net/manual/en/book.opcache.php)
- [`pdo_mysql`](https://www.php.net/manual/en/ref.pdo-mysql.php)
- [`sockets`](https://www.php.net/manual/en/book.sockets.php)
- [`zip`](https://www.php.net/manual/en/book.zip.php)
- [`redis`](https://github.com/phpredis/phpredis/)
- [`intl`](https://www.php.net/manual/en/book.intl.php) (**starting from `8.2.20` and `8.3.8`**)
- [`pcntl`](https://www.php.net/manual/en/book.pcntl.php) (**starting from `8.2.26`, `8.3.14` and `8.4.1`**)

The `-xdebug` and `-pcov` suffixed images also come with [Xdebug](https://xdebug.org) and [PCOV](https://github.com/krakjoe/pcov) installed accordingly.

Expand Down

0 comments on commit 119a7f0

Please sign in to comment.