Skip to content

Commit c4fb6fb

Browse files
committed
Added missing variants of extensions
1 parent d3a58f2 commit c4fb6fb

12 files changed

Lines changed: 303 additions & 2 deletions

File tree

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
FROM php:8.1-alpine3.19
2+
3+
LABEL maintainer="Andrea Falco <andrea@falco.sh>"
4+
5+
# PHP ext-gearman
6+
ARG PHPEXT_GEARMAN_VERSION=2.1.2
7+
RUN set -eux; \
8+
{ \
9+
echo 'https://dl-cdn.alpinelinux.org/alpine/edge/main'; \
10+
echo 'https://dl-cdn.alpinelinux.org/alpine/edge/community'; \
11+
echo 'https://dl-cdn.alpinelinux.org/alpine/edge/testing'; \
12+
} >> /etc/apk/repositories; \
13+
persistentDeps=" \
14+
gearman-libs \
15+
"; \
16+
buildDeps=" \
17+
gearman-dev \
18+
"; \
19+
\
20+
apk add --no-cache --virtual .gearman-persistent-deps ${persistentDeps}; \
21+
apk add --no-cache --virtual .gearman-build-deps ${buildDeps}; \
22+
\
23+
pecl bundle -d /usr/src/php/ext gearman-${PHPEXT_GEARMAN_VERSION}; \
24+
docker-php-ext-install -j$(nproc) gearman; \
25+
\
26+
apk del --no-cache --no-network .gearman-build-deps; \
27+
docker-php-source delete; \
28+
rm -rf /tmp/* /var/tmp/*
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
FROM php:8.1-alpine3.19
2+
3+
LABEL maintainer="Andrea Falco <andrea@falco.sh>"
4+
5+
# PHP ext-imap
6+
ARG PHPEXT_IMAP_VERSION=1.0.2
7+
RUN set -eux; \
8+
persistentDeps=" \
9+
c-client \
10+
"; \
11+
buildDeps=" \
12+
imap-dev \
13+
krb5-dev \
14+
openssl-dev \
15+
"; \
16+
apk add --no-cache --virtual .imap-persistent-deps ${persistentDeps}; \
17+
apk add --no-cache --virtual .imap-build-deps ${buildDeps}; \
18+
\
19+
pecl bundle -d /usr/src/php/ext imap-${PHPEXT_IMAP_VERSION}; \
20+
docker-php-ext-configure imap \
21+
--with-imap-ssl \
22+
--with-kerberos \
23+
; \
24+
docker-php-ext-install -j$(nproc) imap; \
25+
\
26+
apk del --no-cache --no-network .imap-build-deps; \
27+
docker-php-source delete; \
28+
rm -rf /tmp/* /var/tmp/*

8.1/bookworm/pecl_imap/Dockerfile

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
FROM php:8.1-bookworm
2+
3+
LABEL maintainer="Andrea Falco <andrea@falco.sh>"
4+
5+
# PHP ext-imap
6+
ARG PHPEXT_IMAP_VERSION=1.0.2
7+
RUN set -eux; \
8+
buildDeps=" \
9+
libc-client-dev \
10+
libkrb5-dev \
11+
"; \
12+
DEBIAN_FRONTEND=noninteractive apt-get update; \
13+
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
14+
${buildDeps} \
15+
; \
16+
\
17+
pecl bundle -d /usr/src/php/ext imap-${PHPEXT_IMAP_VERSION}; \
18+
docker-php-ext-configure imap \
19+
--with-imap-ssl \
20+
--with-kerberos \
21+
; \
22+
docker-php-ext-install -j$(nproc) imap; \
23+
\
24+
DEBIAN_FRONTEND=noninteractive apt-get purge -y --auto-remove \
25+
-o APT::AutoRemove::RecommendsImportant=false \
26+
-o APT::AutoRemove::SuggestsImportant=false \
27+
${buildDeps} \
28+
; \
29+
docker-php-source delete; \
30+
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
FROM php:8.2-alpine3.19
2+
3+
LABEL maintainer="Andrea Falco <andrea@falco.sh>"
4+
5+
# PHP ext-gearman
6+
ARG PHPEXT_GEARMAN_VERSION=2.1.2
7+
RUN set -eux; \
8+
{ \
9+
echo 'https://dl-cdn.alpinelinux.org/alpine/edge/main'; \
10+
echo 'https://dl-cdn.alpinelinux.org/alpine/edge/community'; \
11+
echo 'https://dl-cdn.alpinelinux.org/alpine/edge/testing'; \
12+
} >> /etc/apk/repositories; \
13+
persistentDeps=" \
14+
gearman-libs \
15+
"; \
16+
buildDeps=" \
17+
gearman-dev \
18+
"; \
19+
\
20+
apk add --no-cache --virtual .gearman-persistent-deps ${persistentDeps}; \
21+
apk add --no-cache --virtual .gearman-build-deps ${buildDeps}; \
22+
\
23+
pecl bundle -d /usr/src/php/ext gearman-${PHPEXT_GEARMAN_VERSION}; \
24+
docker-php-ext-install -j$(nproc) gearman; \
25+
\
26+
apk del --no-cache --no-network .gearman-build-deps; \
27+
docker-php-source delete; \
28+
rm -rf /tmp/* /var/tmp/*
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
FROM php:8.2-alpine3.19
2+
3+
LABEL maintainer="Andrea Falco <andrea@falco.sh>"
4+
5+
# PHP ext-imap
6+
ARG PHPEXT_IMAP_VERSION=1.0.2
7+
RUN set -eux; \
8+
persistentDeps=" \
9+
c-client \
10+
"; \
11+
buildDeps=" \
12+
imap-dev \
13+
krb5-dev \
14+
openssl-dev \
15+
"; \
16+
apk add --no-cache --virtual .imap-persistent-deps ${persistentDeps}; \
17+
apk add --no-cache --virtual .imap-build-deps ${buildDeps}; \
18+
\
19+
pecl bundle -d /usr/src/php/ext imap-${PHPEXT_IMAP_VERSION}; \
20+
docker-php-ext-configure imap \
21+
--with-imap-ssl \
22+
--with-kerberos \
23+
; \
24+
docker-php-ext-install -j$(nproc) imap; \
25+
\
26+
apk del --no-cache --no-network .imap-build-deps; \
27+
docker-php-source delete; \
28+
rm -rf /tmp/* /var/tmp/*

8.2/bookworm/pecl_imap/Dockerfile

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

8.3/alpine3.19/newrelic/Dockerfile

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
FROM php:8.3-alpine3.19
2+
3+
LABEL maintainer="Andrea Falco <andrea@falco.sh>"
4+
5+
# PHP ext-newrelic
6+
ARG PHPEXT_NEWRELIC_VERSION=10.21.0.11
7+
RUN set -eux; \
8+
curl -fsSL https://download.newrelic.com/php_agent/release/newrelic-php5-${PHPEXT_NEWRELIC_VERSION}-linux-musl.tar.gz \
9+
| tar -xzC /tmp; \
10+
export NR_INSTALL_USE_CP_NOT_LN=1; \
11+
/tmp/newrelic-php5-*/newrelic-install install; \
12+
\
13+
sed -i \
14+
-e 's/"REPLACE_WITH_REAL_KEY"/"YOUR_LICENSE_KEY"/' \
15+
-e 's/newrelic.appname = "PHP Application"/newrelic.appname = "YOUR_APPLICATION_NAME"/' \
16+
-e 's/;newrelic.daemon.app_connect_timeout =.*/newrelic.daemon.app_connect_timeout=15s/' \
17+
-e 's/;newrelic.daemon.start_timeout =.*/newrelic.daemon.start_timeout=5s/' \
18+
/usr/local/etc/php/conf.d/newrelic.ini \
19+
; \
20+
\
21+
rm -rf /tmp/* /var/tmp/*
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
FROM php:8.3-alpine3.19
2+
3+
LABEL maintainer="Andrea Falco <andrea@falco.sh>"
4+
5+
# PHP ext-gearman
6+
ARG PHPEXT_GEARMAN_VERSION=2.1.2
7+
RUN set -eux; \
8+
{ \
9+
echo 'https://dl-cdn.alpinelinux.org/alpine/edge/main'; \
10+
echo 'https://dl-cdn.alpinelinux.org/alpine/edge/community'; \
11+
echo 'https://dl-cdn.alpinelinux.org/alpine/edge/testing'; \
12+
} >> /etc/apk/repositories; \
13+
persistentDeps=" \
14+
gearman-libs \
15+
"; \
16+
buildDeps=" \
17+
gearman-dev \
18+
"; \
19+
\
20+
apk add --no-cache --virtual .gearman-persistent-deps ${persistentDeps}; \
21+
apk add --no-cache --virtual .gearman-build-deps ${buildDeps}; \
22+
\
23+
pecl bundle -d /usr/src/php/ext gearman-${PHPEXT_GEARMAN_VERSION}; \
24+
docker-php-ext-install -j$(nproc) gearman; \
25+
\
26+
apk del --no-cache --no-network .gearman-build-deps; \
27+
docker-php-source delete; \
28+
rm -rf /tmp/* /var/tmp/*
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
FROM php:8.3-alpine3.19
2+
3+
LABEL maintainer="Andrea Falco <andrea@falco.sh>"
4+
5+
# PHP ext-imap
6+
ARG PHPEXT_IMAP_VERSION=1.0.2
7+
RUN set -eux; \
8+
persistentDeps=" \
9+
c-client \
10+
"; \
11+
buildDeps=" \
12+
imap-dev \
13+
krb5-dev \
14+
openssl-dev \
15+
"; \
16+
apk add --no-cache --virtual .imap-persistent-deps ${persistentDeps}; \
17+
apk add --no-cache --virtual .imap-build-deps ${buildDeps}; \
18+
\
19+
pecl bundle -d /usr/src/php/ext imap-${PHPEXT_IMAP_VERSION}; \
20+
docker-php-ext-configure imap \
21+
--with-imap-ssl \
22+
--with-kerberos \
23+
; \
24+
docker-php-ext-install -j$(nproc) imap; \
25+
\
26+
apk del --no-cache --no-network .imap-build-deps; \
27+
docker-php-source delete; \
28+
rm -rf /tmp/* /var/tmp/*

8.3/bookworm/newrelic/Dockerfile

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
FROM php:8.3-bookworm
2+
3+
LABEL maintainer="Andrea Falco <andrea@falco.sh>"
4+
5+
# PHP ext-newrelic
6+
ARG PHPEXT_NEWRELIC_VERSION=10.21.0.11
7+
RUN set -eux; \
8+
curl -fsSL https://download.newrelic.com/php_agent/archive/${PHPEXT_NEWRELIC_VERSION}/newrelic-php5-${PHPEXT_NEWRELIC_VERSION}-linux.tar.gz \
9+
| tar -xzC /tmp; \
10+
export NR_INSTALL_USE_CP_NOT_LN=1; \
11+
/tmp/newrelic-php5-*/newrelic-install install; \
12+
\
13+
sed -i \
14+
-e 's/"REPLACE_WITH_REAL_KEY"/"YOUR_LICENSE_KEY"/' \
15+
-e 's/newrelic.appname = "PHP Application"/newrelic.appname = "YOUR_APPLICATION_NAME"/' \
16+
-e 's/;newrelic.daemon.app_connect_timeout =.*/newrelic.daemon.app_connect_timeout=15s/' \
17+
-e 's/;newrelic.daemon.start_timeout =.*/newrelic.daemon.start_timeout=5s/' \
18+
/usr/local/etc/php/conf.d/newrelic.ini \
19+
; \
20+
\
21+
rm -rf /tmp/* /var/tmp/*

0 commit comments

Comments
 (0)