Skip to content

Commit 4bf18ce

Browse files
committed
Initial PHP 8.1
1 parent f702a79 commit 4bf18ce

15 files changed

+643
-72
lines changed

README.md

Lines changed: 71 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# k8s-openresty-php
22

3-
> A set of relatively clean but full-featured, split solution to running openresty and php-fpm together but in seperate containers, supporting PHP versions 5.6, 7.1, 7.2, 7.3, 7.4 maintained by [Parallax](https://parall.ax/)
3+
> A set of relatively clean but full-featured, split solution to running openresty and php-fpm together but in seperate containers, supporting PHP versions 5.6, 7.1, 7.2, 7.3, 7.4, 8.0, and 8.1 maintained by [Parallax](https://parall.ax/)
44
55
## Docker Tags
66
|openresty | Docker tag |
@@ -15,6 +15,7 @@
1515
| 7.3 | prlx/k8s-openresty-php-php:release-php-7.3-latest |
1616
| 7.4 | prlx/k8s-openresty-php-php:release-php-7.4-latest |
1717
| 8.0 | prlx/k8s-openresty-php-php:release-php-8.0-latest |
18+
| 8.1 | prlx/k8s-openresty-php-php:release-php-8.1-latest |
1819

1920
## Browse all tags on Docker Hub
2021
[Openresty](https://hub.docker.com/r/prlx/k8s-openresty-php-openresty)
@@ -213,72 +214,72 @@ The worker will run php artisan queue:work --timeout=$WORKER_TIMEOUT --tries=$WO
213214
To run in this mode, change the Docker CMD to be /start-worker.sh instead of the default /start-web.sh.
214215
215216
# PHP Modules
216-
| Module | 5.6 | 7.1 | 7.2 | 7.3 | 7.4 | 8.0 |
217-
| --- | --- | --- | --- | --- | --- | --- |
218-
| | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
219-
| apc | ✓ | ✖ | ✖ | ✖ | ✖ | ✖ |
220-
| apcu | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
221-
| atatus | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
222-
| bcmath | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
223-
| bz2 | ✖ | ✓ | ✓ | ✓ | ✓ | ✓ |
224-
| calendar | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
225-
| Core | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
226-
| ctype | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
227-
| curl | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
228-
| date | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
229-
| dom | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
230-
| ereg | ✓ | ✖ | ✖ | ✖ | ✖ | ✖ |
231-
| exif | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
232-
| fileinfo | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
233-
| filter | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
234-
| ftp | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
235-
| gd | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
236-
| gettext | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
237-
| hash | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
238-
| iconv | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
239-
| igbinary | ✖ | ✖ | ✖ | ✖ | ✓ | ✓ |
240-
| imagick | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
241-
| intl | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
242-
| json | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
243-
| ldap | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
244-
| libxml | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
245-
| mbstring | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
246-
| mcrypt | ✓ | ✖ | ✖ | ✖ | ✖ | ✖ |
247-
| memcached | ✖ | ✓ | ✓ | ✓ | ✓ | ✖ |
248-
| mysql | ✓ | ✖ | ✖ | ✖ | ✖ | ✖ |
249-
| mysqli | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
250-
| mysqlnd | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
251-
| openssl | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
252-
| pcntl | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
253-
| pcre | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
254-
| PDO | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
255-
| pdo_mysql | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
256-
| pdo_sqlite | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
257-
| Phar | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
258-
| phpdbg_webhelper | ✖ | ✓ | ✓ | ✓ | ✖ | ✖ |
259-
| posix | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
260-
| readline | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
261-
| redis | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
262-
| Reflection | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
263-
| session | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
264-
| shmop | ✖ | ✓ | ✓ | ✓ | ✓ | ✓ |
265-
| SimpleXML | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
266-
| soap | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
267-
| sockets | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
268-
| SPL | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
269-
| sqlite3 | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
270-
| standard | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
271-
| sysvmsg | ✖ | ✓ | ✓ | ✓ | ✓ | ✓ |
272-
| sysvsem | ✖ | ✓ | ✓ | ✓ | ✓ | ✓ |
273-
| sysvshm | ✖ | ✓ | ✓ | ✓ | ✓ | ✓ |
274-
| tidy | ✖ | ✓ | ✓ | ✓ | ✓ | ✓ |
275-
| tokenizer | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
276-
| wddx | ✓ | ✓ | ✓ | ✓ | ✖ | ✖ |
277-
| xml | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
278-
| xmlreader | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
279-
| xmlrpc | ✓ | ✓ | ✓ | ✓ | ✓ | ✖ |
280-
| xmlwriter | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
281-
| xsl | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
282-
| Zend OPcache | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
283-
| zip | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
284-
| zlib | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
217+
| Module | 5.6 | 7.1 | 7.2 | 7.3 | 7.4 | 8.0 | 8.1 |
218+
| --- | --- | --- | --- | --- | --- | --- | --- |
219+
| | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
220+
| apc | ✓ | ✖ | ✖ | ✖ | ✖ | ✖ | ✖ |
221+
| apcu | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
222+
| atatus | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✖ |
223+
| bcmath | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
224+
| bz2 | ✖ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
225+
| calendar | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
226+
| Core | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
227+
| ctype | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
228+
| curl | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
229+
| date | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
230+
| dom | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
231+
| ereg | ✓ | ✖ | ✖ | ✖ | ✖ | ✖ | ✖ |
232+
| exif | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
233+
| fileinfo | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
234+
| filter | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
235+
| ftp | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
236+
| gd | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
237+
| gettext | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
238+
| hash | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
239+
| iconv | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
240+
| igbinary | ✖ | ✖ | ✖ | ✖ | ✓ | ✓ | ✓ |
241+
| imagick | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
242+
| intl | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
243+
| json | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
244+
| ldap | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
245+
| libxml | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
246+
| mbstring | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
247+
| mcrypt | ✓ | ✖ | ✖ | ✖ | ✖ | ✖ | ✖ |
248+
| memcached | ✖ | ✓ | ✓ | ✓ | ✓ | ✖ | ✖ |
249+
| mysql | ✓ | ✖ | ✖ | ✖ | ✖ | ✖ | ✖ |
250+
| mysqli | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
251+
| mysqlnd | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
252+
| openssl | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
253+
| pcntl | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
254+
| pcre | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
255+
| PDO | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
256+
| pdo_mysql | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
257+
| pdo_sqlite | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
258+
| Phar | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
259+
| phpdbg_webhelper | ✖ | ✓ | ✓ | ✓ | ✖ | ✖ | ✖ |
260+
| posix | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
261+
| readline | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
262+
| redis | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
263+
| Reflection | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
264+
| session | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
265+
| shmop | ✖ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
266+
| SimpleXML | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
267+
| soap | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
268+
| sockets | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
269+
| SPL | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
270+
| sqlite3 | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
271+
| standard | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
272+
| sysvmsg | ✖ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
273+
| sysvsem | ✖ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
274+
| sysvshm | ✖ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
275+
| tidy | ✖ | ✓ | ✓ | ✓ | ✓ | ✓ | ✖ |
276+
| tokenizer | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
277+
| wddx | ✓ | ✓ | ✓ | ✓ | ✖ | ✖ | ✖ |
278+
| xml | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
279+
| xmlreader | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
280+
| xmlrpc | ✓ | ✓ | ✓ | ✓ | ✓ | ✖ | ✖ |
281+
| xmlwriter | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
282+
| xsl | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
283+
| Zend OPcache | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
284+
| zip | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
285+
| zlib | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |

README.md.template

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# k8s-openresty-php
22

3-
> A set of relatively clean but full-featured, split solution to running openresty and php-fpm together but in seperate containers, supporting PHP versions 5.6, 7.1, 7.2, 7.3, 7.4 maintained by [Parallax](https://parall.ax/)
3+
> A set of relatively clean but full-featured, split solution to running openresty and php-fpm together but in seperate containers, supporting PHP versions 5.6, 7.1, 7.2, 7.3, 7.4, 8.0, and 8.1 maintained by [Parallax](https://parall.ax/)
44

55
## Docker Tags
66
|openresty | Docker tag |
@@ -15,6 +15,7 @@
1515
| 7.3 | prlx/k8s-openresty-php-php:release-php-7.3-latest |
1616
| 7.4 | prlx/k8s-openresty-php-php:release-php-7.4-latest |
1717
| 8.0 | prlx/k8s-openresty-php-php:release-php-8.0-latest |
18+
| 8.1 | prlx/k8s-openresty-php-php:release-php-8.1-latest |
1819

1920
## Browse all tags on Docker Hub
2021
[Openresty](https://hub.docker.com/r/prlx/k8s-openresty-php-openresty)

build/build-8.1.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
# Used to build and deploy to minikube for local dev
3+
4+
BUILDNUMBER=$bamboo_buildNumber
5+
6+
# PHP
7+
docker build --build-arg PHP_VERSION=81 --build-arg ATATUS_VERSION=1.12.0 -t prlx/k8s-openresty-php-php:build-$BUILDNUMBER-php-8.1 -f php/Dockerfile-8.1 .

build/build-test-image-8.1.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
BUILDNUMBER=$bamboo_buildNumber
3+
4+
sed -i -e "s#{{ BUILDNUMBER }}#$BUILDNUMBER#g" test/Dockerfile-8.1
5+
docker build -t prlx/k8s-openresty-php-php:build-$BUILDNUMBER-php-8.1-test -f test/Dockerfile-8.1 .

build/deploy-8.1.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
# Apply to Kubernetes
3+
kubectl --kubeconfig=$KUBERNETESCONFIG apply -f yaml-deploy/namespace.yaml
4+
kubectl --kubeconfig=$KUBERNETESCONFIG apply -f yaml-deploy/deployment-8.1.yaml
5+
kubectl --kubeconfig=$KUBERNETESCONFIG apply -f yaml-deploy/service-8.1.yaml
6+
kubectl --kubeconfig=$KUBERNETESCONFIG apply -f yaml-deploy/ingress-8.1.yaml
7+
kubectl --kubeconfig=$KUBERNETESCONFIG apply -f yaml-deploy/certificate-8.1.yaml

php/Dockerfile-8.1

Lines changed: 192 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,192 @@
1+
FROM alpine:3.15
2+
3+
ARG PHP_VERSION=8
4+
ARG ATATUS_VERSION=1.12.0
5+
ARG ATATUS_ENABLED=TRUE
6+
7+
ENV \
8+
# When using Composer, disable the warning about running commands as root/super user
9+
COMPOSER_ALLOW_SUPERUSER=1 \
10+
# Persistent runtime dependencies
11+
DEPS="php81 \
12+
php81-common \
13+
php81-curl \
14+
php81-dom \
15+
php81-exif \
16+
php81-fileinfo \
17+
php81-ftp \
18+
php81-gd \
19+
php81-iconv \
20+
php81-mysqli \
21+
php81-openssl \
22+
php81-pdo \
23+
php81-posix \
24+
php81-soap \
25+
php81-zip \
26+
php81-ldap \
27+
php81-bcmath \
28+
php81-calendar \
29+
php81-gettext \
30+
php81-mbstring \
31+
php81-pcntl \
32+
php81-phar \
33+
php81-simplexml \
34+
php81-sockets \
35+
php81-tokenizer \
36+
php81-xmlreader \
37+
php81-zip \
38+
php81-zlib \
39+
php81-xsl \
40+
php81-opcache \
41+
php81-ctype \
42+
php81-pdo_mysql \
43+
php81-pdo_sqlite \
44+
php81-sqlite3 \
45+
php81-intl \
46+
php81-fpm \
47+
php81-mysqli \
48+
curl \
49+
ca-certificates \
50+
supervisor \
51+
bash \
52+
tzdata \
53+
openssl \
54+
wget \
55+
curl \
56+
bash"
57+
58+
RUN echo -n "https://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories && \
59+
apk update
60+
61+
# Install deps
62+
RUN apk add --no-cache \
63+
curl \
64+
ca-certificates \
65+
supervisor \
66+
bash \
67+
tzdata \
68+
openssl \
69+
wget \
70+
curl \
71+
bash \
72+
fcgi \
73+
nano \
74+
php81 \
75+
php81-pecl-apcu \
76+
php81-bz2 \
77+
php81-common \
78+
php81-curl \
79+
php81-dom \
80+
php81-exif \
81+
php81-fileinfo \
82+
php81-ftp \
83+
php81-gd \
84+
php81-iconv \
85+
php81-pecl-imagick \
86+
php81-mbstring \
87+
php81-mysqli \
88+
php81-openssl \
89+
php81-pdo \
90+
php81-posix \
91+
php81-soap \
92+
php81-session \
93+
php81-redis \
94+
php81-zip \
95+
php81-ldap \
96+
php81-bcmath \
97+
php81-calendar \
98+
php81-gettext \
99+
php81-pcntl \
100+
php81-phar \
101+
php81-simplexml \
102+
php81-shmop \
103+
php81-sysvmsg \
104+
php81-sysvsem \
105+
php81-sysvshm \
106+
php81-sockets \
107+
# php81-tidy \
108+
php81-tokenizer \
109+
php81-xmlreader \
110+
php81-zip \
111+
php81-zlib \
112+
php81-xsl \
113+
php81-xml \
114+
php81-xmlwriter \
115+
php81-opcache \
116+
php81-ctype \
117+
php81-pdo_mysql \
118+
php81-pdo_sqlite \
119+
php81-sqlite3 \
120+
php81-intl \
121+
php81-fpm \
122+
php81-mysqli && \
123+
124+
ln -snf /usr/bin/php81 /usr/bin/php && \
125+
ln -snf /usr/sbin/php-fpm81 /usr/sbin/php-fpm && \
126+
127+
# Symlink current version
128+
mkdir /etc/php && \
129+
ln -snf /etc/php81 /etc/php/current;
130+
131+
# Composer
132+
RUN EXPECTED_SIGNATURE="$(wget -q -O - https://composer.github.io/installer.sig)" && \
133+
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" && \
134+
ACTUAL_SIGNATURE="$(php -r "echo hash_file('sha384', 'composer-setup.php');")" && \
135+
if [ "$EXPECTED_SIGNATURE" != "$ACTUAL_SIGNATURE" ]; \
136+
then \
137+
>&2 echo 'ERROR: Invalid installer signature' \
138+
rm composer-setup.php \
139+
exit 1; \
140+
fi && \
141+
php composer-setup.php --quiet --install-dir=/usr/local/bin --filename=composer && \
142+
RESULT=$? && \
143+
rm composer-setup.php && \
144+
exit $RESULT
145+
146+
#RUN version=$(php -r "echo PHP_MAJOR_VERSION.PHP_MINOR_VERSION;") \
147+
# && architecture=$(case $(uname -m) in i386 | i686 | x86) echo "i386" ;; x86_64 | amd64) echo "amd64" ;; aarch64 | arm64 | armv8) echo "arm64" ;; *) echo "amd64" ;; esac) \
148+
# && curl -A "Docker" -o /tmp/blackfire-probe.tar.gz -D - -L -s https://blackfire.io/api/v1/releases/probe/php/alpine/$architecture/$version \
149+
# && mkdir -p /tmp/blackfire \
150+
# && tar zxpf /tmp/blackfire-probe.tar.gz -C /tmp/blackfire \
151+
# && mv /tmp/blackfire/blackfire-*.so $(php -r "echo ini_get ('extension_dir');")/blackfire.so \
152+
# && rm -rf /tmp/blackfire /tmp/blackfire-probe.tar.gz
153+
154+
#RUN if [ "$ATATUS_ENABLED" == "TRUE" ]; then \
155+
# # Atatus
156+
# wget https://s3.amazonaws.com/atatus-artifacts/atatus-php/downloads/atatus-php-$ATATUS_VERSION-x64-musl.tar.gz && tar -xzvf atatus-php-$ATATUS_VERSION-x64-musl.tar.gz && cd atatus-php-$ATATUS_VERSION-x64-musl && ./install.sh && rm -f /atatus-php-$ATATUS_VERSION-x64-musl.tar.gz && rm -rf /atatus-php-$ATATUS_VERSION-x64-musl && \
157+
# sed -i -e 's#atatus.trace.response_time = 2000#atatus.trace.response_time = 1500#g' /etc/php/current/conf.d/atatus.ini && \
158+
# sed -i -e 's#atatus.collector.pidfile = "/var/run/atatus-php-collector.pid"#atatus.collector.pidfile = "/run/atatus-php-collector.pid"#g' /etc/php/current/conf.d/atatus.ini && \
159+
# sed -i -e 's#atatus.collector.connection = "/tmp/.atatus.sock"#atatus.collector.connection = "/run/atatus.sock"#g' /etc/php/current/conf.d/atatus.ini && \
160+
# # Write log files to stdout
161+
# rm -f /var/log/atatus/agent.log && rm -f /var/log/atatus/collector.log && rm -f /var/log/atatus/debug.txt && ln -sf /dev/null /var/log/atatus/agent.log && ln -sf /dev/null /var/log/atatus/collector.log && ln -sf /dev/null /var/log/atatus/debug.txt; \
162+
# fi
163+
164+
# PHP Config
165+
ADD /php/conf/php-fpm.conf /etc/php/current/php-fpm.conf
166+
ADD /php/conf/php.ini /etc/php/current/php.ini
167+
ADD /php/conf/php-www.conf /etc/php/current/php-fpm.d/www.conf
168+
169+
# Clear out garbage
170+
RUN unset DEPS && rm -rf /run/php && rm -rf /run/php-fpm8.1
171+
172+
# Start script
173+
ADD /php/scripts/start.sh /start.sh
174+
RUN chmod +x /start.sh
175+
176+
# Start cron script
177+
ADD /php/scripts/start-cron.sh /start-cron.sh
178+
RUN chmod +x /start-cron.sh
179+
180+
# Start worker script
181+
ADD /php/scripts/start-worker.sh /start-worker.sh
182+
RUN chmod +x /start-worker.sh
183+
184+
# Configure script
185+
ADD /php/scripts/configure.sh /configure.sh
186+
RUN chmod +x /configure.sh
187+
188+
# Healthcheck script
189+
ADD /php/scripts/healthcheck.sh /healthcheck.sh
190+
RUN chmod +x /healthcheck.sh
191+
192+
CMD ["/start.sh"]

test/Dockerfile-8.1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
FROM prlx/k8s-openresty-php-php:build-{{ BUILDNUMBER }}-php-8.1
2+
3+
ADD test/public /src/public

0 commit comments

Comments
 (0)