Skip to content
Snippets Groups Projects
Commit b940d813 authored by ale's avatar ale
Browse files

Bookworm build (PHP 8.2)

Based on apache2-base:bookworm for now.
parent 3f046df8
No related branches found
No related tags found
2 merge requests!6Draft: Bookworm build (PHP 8.2) with strace,!5Bookworm build (PHP 8.2)
FROM registry.git.autistici.org/ai3/docker/apache2-base:master
FROM registry.git.autistici.org/ai3/docker/apache2-base:bookworm
COPY conf /tmp/conf
COPY build.sh /tmp/build.sh
......
......@@ -43,7 +43,7 @@ echo "export PHP_FPM_EXPORTER_PORT=\`expr \$APACHE_PORT + 200\`" >> /etc/apache2
# Enable php configuration.
a2enmod proxy_fcgi setenvif
a2enconf -q php7.4-fpm
a2enconf -q php8.2-fpm
# Rsync our configuration, on top of /etc.
rsync -a /tmp/conf/ /etc/
......
[global]
pid = /run/php/php7.4-fpm.pid
pid = /run/php/php8.2-fpm.pid
error_log = /dev/fd/2
systemd_interval = 0
include=/etc/php/7.4/fpm/pool.d/*.conf
include=/etc/php/8.2/fpm/pool.d/*.conf
[www]
listen = /run/php/php7.4-fpm.sock
listen = /run/php/php8.2-fpm.sock
pm = dynamic
pm.max_children = 20
......
#!/bin/sh
. /etc/apache2/envvars
export HOME=/
exec /usr/sbin/php-fpm-exporter server "--phpfpm.scrape-uri=unix:///run/php/php7.4-fpm.sock;/status" --web.listen-address=:$PHP_FPM_EXPORTER_PORT --phpfpm.fix-process-count
exec /usr/sbin/php-fpm-exporter server "--phpfpm.scrape-uri=unix:///run/php/php8.2-fpm.sock;/status" --web.listen-address=:$PHP_FPM_EXPORTER_PORT --phpfpm.fix-process-count
#!/bin/sh
mkdir -p /run/php
exec /usr/sbin/php-fpm7.4 --force-stderr --nodaemonize
exec /usr/sbin/php-fpm8.2 --force-stderr --nodaemonize
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment