Skip to content

Commit 3d5bfe9

Browse files
committed
Improved gearman compatibility
1 parent 3ffcf7f commit 3d5bfe9

3 files changed

Lines changed: 59 additions & 1 deletion

File tree

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
FROM php:8.1-bookworm
2+
3+
LABEL maintainer="Andrea Falco <andrea@falco.sh>"
4+
5+
# PHP ext-gearman
6+
ARG PHPEXT_GEARMAN_VERSION=2.1.0
7+
RUN set -eux; \
8+
persistentDeps=" \
9+
libgearman8 \
10+
"; \
11+
buildDeps=" \
12+
libgearman-dev \
13+
"; \
14+
DEBIAN_FRONTEND=noninteractive apt-get update; \
15+
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
16+
${persistentDeps} \
17+
${buildDeps} \
18+
; \
19+
\
20+
pecl bundle -d /usr/src/php/ext gearman-${PHPEXT_GEARMAN_VERSION}; \
21+
docker-php-ext-install -j$(nproc) gearman; \
22+
\
23+
DEBIAN_FRONTEND=noninteractive apt-get purge -y --auto-remove \
24+
-o APT::AutoRemove::RecommendsImportant=false \
25+
-o APT::AutoRemove::SuggestsImportant=false \
26+
${buildDeps} \
27+
; \
28+
docker-php-source delete; \
29+
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
FROM php:8.2-bookworm
2+
3+
LABEL maintainer="Andrea Falco <andrea@falco.sh>"
4+
5+
# PHP ext-gearman
6+
ARG PHPEXT_GEARMAN_VERSION=2.1.0
7+
RUN set -eux; \
8+
persistentDeps=" \
9+
libgearman8 \
10+
"; \
11+
buildDeps=" \
12+
libgearman-dev \
13+
"; \
14+
DEBIAN_FRONTEND=noninteractive apt-get update; \
15+
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
16+
${persistentDeps} \
17+
${buildDeps} \
18+
; \
19+
\
20+
pecl bundle -d /usr/src/php/ext gearman-${PHPEXT_GEARMAN_VERSION}; \
21+
docker-php-ext-install -j$(nproc) gearman; \
22+
\
23+
DEBIAN_FRONTEND=noninteractive apt-get purge -y --auto-remove \
24+
-o APT::AutoRemove::RecommendsImportant=false \
25+
-o APT::AutoRemove::SuggestsImportant=false \
26+
${buildDeps} \
27+
; \
28+
docker-php-source delete; \
29+
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Extension | PHP `8.0` `bullseye` | PHP `8.0` `alpine3.16` | PHP `8.1` `bookworm`
2323
[`ds`](https://pecl.php.net/package/ds) _PECL_ | `(1.4.0)` [:whale:](8.0/bullseye/pecl_ds/Dockerfile) | `(1.4.0)` [:whale:](8.0/alpine3.16/pecl_ds/Dockerfile) | `(1.4.0)` [:whale:](8.1/bookworm/pecl_ds/Dockerfile) | `(1.4.0)` [:whale:](8.1/alpine3.18/pecl_ds/Dockerfile) | `(1.4.0)` [:whale:](8.2/bookworm/pecl_ds/Dockerfile) | `(1.4.0)` [:whale:](8.2/alpine3.18/pecl_ds/Dockerfile)
2424
[`fann`](https://pecl.php.net/package/fann) _PECL_ | `(1.2.0RC2)` [:whale:](8.0/bullseye/pecl_fann/Dockerfile) | `(1.2.0RC2)` [:whale:](8.0/alpine3.16/pecl_fann/Dockerfile) | `(1.2.0RC2)` [:whale:](8.1/bookworm/pecl_fann/Dockerfile) | `(1.2.0RC2)` [:whale:](8.1/alpine3.18/pecl_fann/Dockerfile) | `(1.2.0RC2)` [:whale:](8.2/bookworm/pecl_fann/Dockerfile) | `(1.2.0RC2)` [:whale:](8.2/alpine3.18/pecl_fann/Dockerfile)
2525
[`gd`](https://php.net/gd) | [:whale:](8.0/bullseye/gd/Dockerfile) | [:whale:](8.0/alpine3.16/gd/Dockerfile) | [:whale:](8.1/bookworm/gd/Dockerfile) | [:whale:](8.1/alpine3.18/gd/Dockerfile) | [:whale:](8.2/bookworm/gd/Dockerfile) | [:whale:](8.2/alpine3.18/gd/Dockerfile)
26-
[`gearman`](https://pecl.php.net/package/gearman) _PECL_ | `(2.1.0)` [:whale:](8.0/bullseye/pecl_gearman/Dockerfile) | `(2.1.0)` [:whale:](8.0/alpine3.16/pecl_gearman/Dockerfile) | :x: | :x: | :x: | :x:
26+
[`gearman`](https://pecl.php.net/package/gearman) _PECL_ | `(2.1.0)` [:whale:](8.0/bullseye/pecl_gearman/Dockerfile) | `(2.1.0)` [:whale:](8.0/alpine3.16/pecl_gearman/Dockerfile) | `(2.1.0)` [:whale:](8.1/bookworm/pecl_gearman/Dockerfile) | :x: | `(2.1.0)` [:whale:](8.2/bookworm/pecl_gearman/Dockerfile) | :x:
2727
[`geospatial`](https://pecl.php.net/package/geospatial) _PECL_ | `(0.3.2)` [:whale:](8.0/bullseye/pecl_geospatial/Dockerfile) | `(0.3.2)` [:whale:](8.0/alpine3.16/pecl_geospatial/Dockerfile) | `(0.3.2)` [:whale:](8.1/bookworm/pecl_geospatial/Dockerfile) | `(0.3.2)` [:whale:](8.1/alpine3.18/pecl_geospatial/Dockerfile) | `(0.3.2)` [:whale:](8.2/bookworm/pecl_geospatial/Dockerfile) | `(0.3.2)` [:whale:](8.2/alpine3.18/pecl_geospatial/Dockerfile)
2828
[`gmp`](https://php.net/gmp) | [:whale:](8.0/bullseye/gmp/Dockerfile) | [:whale:](8.0/alpine3.16/gmp/Dockerfile) | [:whale:](8.1/bookworm/gmp/Dockerfile) | [:whale:](8.1/alpine3.18/gmp/Dockerfile) | [:whale:](8.2/bookworm/gmp/Dockerfile) | [:whale:](8.2/alpine3.18/gmp/Dockerfile)
2929
[`grpc`](https://pecl.php.net/package/grpc) _PECL_ | `(1.59.1)` [:whale:](8.0/bullseye/pecl_grpc/Dockerfile) | `(1.59.1)` [:whale:](8.0/alpine3.16/pecl_grpc/Dockerfile) | `(1.59.1)` [:whale:](8.1/bookworm/pecl_grpc/Dockerfile) | `(1.59.1)` [:whale:](8.1/alpine3.18/pecl_grpc/Dockerfile) | `(1.59.1)` [:whale:](8.2/bookworm/pecl_grpc/Dockerfile) | `(1.59.1)` [:whale:](8.2/alpine3.18/pecl_grpc/Dockerfile)

0 commit comments

Comments
 (0)