mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2025-06-25 12:21:23 +02:00
Updated PHP for Alpine and Oracle Linux
This commit is contained in:
parent
5f35f580e1
commit
f2d61c731a
@ -35,22 +35,22 @@ RUN set -eux && \
|
|||||||
curl \
|
curl \
|
||||||
mariadb-client \
|
mariadb-client \
|
||||||
mariadb-connector-c \
|
mariadb-connector-c \
|
||||||
php8-apache2 \
|
php81-apache2 \
|
||||||
php8-bcmath \
|
php81-bcmath \
|
||||||
php8-ctype \
|
php81-ctype \
|
||||||
php8-gd \
|
php81-gd \
|
||||||
php8-gettext \
|
php81-gettext \
|
||||||
php8-json \
|
php81-json \
|
||||||
php8-ldap \
|
php81-ldap \
|
||||||
php8-mbstring \
|
php81-mbstring \
|
||||||
php8-mysqli \
|
php81-mysqli \
|
||||||
php8-session \
|
php81-session \
|
||||||
php8-simplexml \
|
php81-simplexml \
|
||||||
php8-sockets \
|
php81-sockets \
|
||||||
php8-fileinfo \
|
php81-fileinfo \
|
||||||
php8-xmlreader \
|
php81-xmlreader \
|
||||||
php8-xmlwriter \
|
php81-xmlwriter \
|
||||||
php8-openssl" && \
|
php81-openssl" && \
|
||||||
apk add \
|
apk add \
|
||||||
--no-cache \
|
--no-cache \
|
||||||
--clean-protected \
|
--clean-protected \
|
||||||
@ -99,9 +99,9 @@ RUN set -eux && \
|
|||||||
chown --quiet -R zabbix:root /etc/zabbix/ /usr/share/zabbix/include/defines.inc.php /usr/share/zabbix/modules/ && \
|
chown --quiet -R zabbix:root /etc/zabbix/ /usr/share/zabbix/include/defines.inc.php /usr/share/zabbix/modules/ && \
|
||||||
chgrp -R 0 /etc/zabbix/ /usr/share/zabbix/include/defines.inc.php /usr/share/zabbix/modules/ && \
|
chgrp -R 0 /etc/zabbix/ /usr/share/zabbix/include/defines.inc.php /usr/share/zabbix/modules/ && \
|
||||||
chmod -R g=u /etc/zabbix/ /usr/share/zabbix/include/defines.inc.php /usr/share/zabbix/modules/ && \
|
chmod -R g=u /etc/zabbix/ /usr/share/zabbix/include/defines.inc.php /usr/share/zabbix/modules/ && \
|
||||||
chown --quiet -R zabbix:root /etc/apache2/ /etc/php8/ && \
|
chown --quiet -R zabbix:root /etc/apache2/ /etc/php81/ && \
|
||||||
chgrp -R 0 /etc/apache2/ /etc/php8/ && \
|
chgrp -R 0 /etc/apache2/ /etc/php81/ && \
|
||||||
chmod -R g=u /etc/apache2/ /etc/php8/ && \
|
chmod -R g=u /etc/apache2/ /etc/php81/ && \
|
||||||
rm -rf /var/cache/apk/*
|
rm -rf /var/cache/apk/*
|
||||||
|
|
||||||
EXPOSE 8080/TCP 8443/TCP
|
EXPOSE 8080/TCP 8443/TCP
|
||||||
|
@ -50,7 +50,7 @@ RUN set -eux && \
|
|||||||
supervisor" && \
|
supervisor" && \
|
||||||
dnf -y install epel-release && \
|
dnf -y install epel-release && \
|
||||||
dnf -y module enable mysql && \
|
dnf -y module enable mysql && \
|
||||||
dnf -y module enable php:7.4 && \
|
dnf -y module enable php:8.0 && \
|
||||||
dnf -y install \
|
dnf -y install \
|
||||||
--disablerepo "*" \
|
--disablerepo "*" \
|
||||||
--enablerepo "${REPOLIST}" \
|
--enablerepo "${REPOLIST}" \
|
||||||
|
@ -49,7 +49,7 @@ RUN set -eux && \
|
|||||||
glibc-locale-source \
|
glibc-locale-source \
|
||||||
supervisor" && \
|
supervisor" && \
|
||||||
microdnf -y module enable mysql && \
|
microdnf -y module enable mysql && \
|
||||||
microdnf -y module enable php:7.4 && \
|
microdnf -y module enable php:8.0 && \
|
||||||
microdnf -y install \
|
microdnf -y install \
|
||||||
--disablerepo="*" \
|
--disablerepo="*" \
|
||||||
--enablerepo="ol8_baseos_latest" \
|
--enablerepo="ol8_baseos_latest" \
|
||||||
|
@ -33,22 +33,22 @@ RUN set -eux && \
|
|||||||
INSTALL_PKGS="bash \
|
INSTALL_PKGS="bash \
|
||||||
apache2 \
|
apache2 \
|
||||||
curl \
|
curl \
|
||||||
php8-apache2 \
|
php81-apache2 \
|
||||||
php8-bcmath \
|
php81-bcmath \
|
||||||
php8-ctype \
|
php81-ctype \
|
||||||
php8-gd \
|
php81-gd \
|
||||||
php8-gettext \
|
php81-gettext \
|
||||||
php8-json \
|
php81-json \
|
||||||
php8-ldap \
|
php81-ldap \
|
||||||
php8-pgsql \
|
php81-pgsql \
|
||||||
php8-mbstring \
|
php81-mbstring \
|
||||||
php8-session \
|
php81-session \
|
||||||
php8-simplexml \
|
php81-simplexml \
|
||||||
php8-sockets \
|
php81-sockets \
|
||||||
php8-fileinfo \
|
php81-fileinfo \
|
||||||
php8-xmlreader \
|
php81-xmlreader \
|
||||||
php8-xmlwriter \
|
php81-xmlwriter \
|
||||||
php8-openssl \
|
php81-openssl \
|
||||||
postgresql-client" && \
|
postgresql-client" && \
|
||||||
apk add \
|
apk add \
|
||||||
--no-cache \
|
--no-cache \
|
||||||
@ -98,9 +98,9 @@ RUN set -eux && \
|
|||||||
chown --quiet -R zabbix:root /etc/zabbix/ /usr/share/zabbix/include/defines.inc.php /usr/share/zabbix/modules/ && \
|
chown --quiet -R zabbix:root /etc/zabbix/ /usr/share/zabbix/include/defines.inc.php /usr/share/zabbix/modules/ && \
|
||||||
chgrp -R 0 /etc/zabbix/ /usr/share/zabbix/include/defines.inc.php /usr/share/zabbix/modules/ && \
|
chgrp -R 0 /etc/zabbix/ /usr/share/zabbix/include/defines.inc.php /usr/share/zabbix/modules/ && \
|
||||||
chmod -R g=u /etc/zabbix/ /usr/share/zabbix/include/defines.inc.php /usr/share/zabbix/modules/ && \
|
chmod -R g=u /etc/zabbix/ /usr/share/zabbix/include/defines.inc.php /usr/share/zabbix/modules/ && \
|
||||||
chown --quiet -R zabbix:root /etc/apache2/ /etc/php8/ && \
|
chown --quiet -R zabbix:root /etc/apache2/ /etc/php81/ && \
|
||||||
chgrp -R 0 /etc/apache2/ /etc/php8/ && \
|
chgrp -R 0 /etc/apache2/ /etc/php81/ && \
|
||||||
chmod -R g=u /etc/apache2/ /etc/php8/ && \
|
chmod -R g=u /etc/apache2/ /etc/php81/ && \
|
||||||
rm -rf /var/cache/apk/*
|
rm -rf /var/cache/apk/*
|
||||||
|
|
||||||
EXPOSE 8080/TCP 8443/TCP
|
EXPOSE 8080/TCP 8443/TCP
|
||||||
|
@ -49,7 +49,7 @@ RUN set -eux && \
|
|||||||
glibc-locale-source \
|
glibc-locale-source \
|
||||||
supervisor" && \
|
supervisor" && \
|
||||||
dnf -y install epel-release && \
|
dnf -y install epel-release && \
|
||||||
dnf -y module enable php:7.4 && \
|
dnf -y module enable php:8.0 && \
|
||||||
dnf -y install \
|
dnf -y install \
|
||||||
--disablerepo "*" \
|
--disablerepo "*" \
|
||||||
--enablerepo "${REPOLIST}" \
|
--enablerepo "${REPOLIST}" \
|
||||||
|
@ -48,7 +48,7 @@ RUN set -eux && \
|
|||||||
findutils \
|
findutils \
|
||||||
glibc-locale-source \
|
glibc-locale-source \
|
||||||
supervisor" && \
|
supervisor" && \
|
||||||
microdnf -y module enable php:7.4 && \
|
microdnf -y module enable php:8.0 && \
|
||||||
microdnf -y install \
|
microdnf -y install \
|
||||||
--disablerepo="*" \
|
--disablerepo="*" \
|
||||||
--enablerepo="ol8_baseos_latest" \
|
--enablerepo="ol8_baseos_latest" \
|
||||||
|
@ -35,22 +35,22 @@ RUN set -eux && \
|
|||||||
mariadb-client \
|
mariadb-client \
|
||||||
mariadb-connector-c \
|
mariadb-connector-c \
|
||||||
nginx \
|
nginx \
|
||||||
php8-bcmath \
|
php81-bcmath \
|
||||||
php8-ctype \
|
php81-ctype \
|
||||||
php8-fpm \
|
php81-fpm \
|
||||||
php8-gd \
|
php81-gd \
|
||||||
php8-gettext \
|
php81-gettext \
|
||||||
php8-json \
|
php81-json \
|
||||||
php8-ldap \
|
php81-ldap \
|
||||||
php8-mbstring \
|
php81-mbstring \
|
||||||
php8-mysqli \
|
php81-mysqli \
|
||||||
php8-session \
|
php81-session \
|
||||||
php8-simplexml \
|
php81-simplexml \
|
||||||
php8-sockets \
|
php81-sockets \
|
||||||
php8-fileinfo \
|
php81-fileinfo \
|
||||||
php8-xmlreader \
|
php81-xmlreader \
|
||||||
php8-xmlwriter \
|
php81-xmlwriter \
|
||||||
php8-openssl \
|
php81-openssl \
|
||||||
supervisor" && \
|
supervisor" && \
|
||||||
apk add \
|
apk add \
|
||||||
--no-cache \
|
--no-cache \
|
||||||
@ -79,7 +79,7 @@ RUN set -eux && \
|
|||||||
mkdir -p /etc/zabbix/web && \
|
mkdir -p /etc/zabbix/web && \
|
||||||
mkdir -p /etc/zabbix/web/certs && \
|
mkdir -p /etc/zabbix/web/certs && \
|
||||||
mkdir -p /var/lib/php/session && \
|
mkdir -p /var/lib/php/session && \
|
||||||
rm -rf /etc/php8/php-fpm.d/www.conf && \
|
rm -rf /etc/php81/php-fpm.d/www.conf && \
|
||||||
rm -f /etc/nginx/http.d/*.conf && \
|
rm -f /etc/nginx/http.d/*.conf && \
|
||||||
ln -sf /dev/fd/2 /var/lib/nginx/logs/error.log && \
|
ln -sf /dev/fd/2 /var/lib/nginx/logs/error.log && \
|
||||||
cd /usr/share/zabbix/ && \
|
cd /usr/share/zabbix/ && \
|
||||||
@ -93,9 +93,9 @@ RUN set -eux && \
|
|||||||
chown --quiet -R zabbix:root /etc/zabbix/ /usr/share/zabbix/include/defines.inc.php /usr/share/zabbix/modules/ && \
|
chown --quiet -R zabbix:root /etc/zabbix/ /usr/share/zabbix/include/defines.inc.php /usr/share/zabbix/modules/ && \
|
||||||
chgrp -R 0 /etc/zabbix/ /usr/share/zabbix/include/defines.inc.php /usr/share/zabbix/modules/ && \
|
chgrp -R 0 /etc/zabbix/ /usr/share/zabbix/include/defines.inc.php /usr/share/zabbix/modules/ && \
|
||||||
chmod -R g=u /etc/zabbix/ /usr/share/zabbix/include/defines.inc.php /usr/share/zabbix/modules/ && \
|
chmod -R g=u /etc/zabbix/ /usr/share/zabbix/include/defines.inc.php /usr/share/zabbix/modules/ && \
|
||||||
chown --quiet -R zabbix:root /etc/nginx/ /etc/php8/php-fpm.d/ /etc/php8/php-fpm.conf && \
|
chown --quiet -R zabbix:root /etc/nginx/ /etc/php81/php-fpm.d/ /etc/php81/php-fpm.conf && \
|
||||||
chgrp -R 0 /etc/nginx/ /etc/php8/php-fpm.d/ /etc/php8/php-fpm.conf && \
|
chgrp -R 0 /etc/nginx/ /etc/php81/php-fpm.d/ /etc/php81/php-fpm.conf && \
|
||||||
chmod -R g=u /etc/nginx/ /etc/php8/php-fpm.d/ /etc/php8/php-fpm.conf && \
|
chmod -R g=u /etc/nginx/ /etc/php81/php-fpm.d/ /etc/php81/php-fpm.conf && \
|
||||||
chown --quiet -R zabbix:root /var/lib/php/session/ /var/lib/nginx/ && \
|
chown --quiet -R zabbix:root /var/lib/php/session/ /var/lib/nginx/ && \
|
||||||
chgrp -R 0 /var/lib/php/session/ /var/lib/nginx/ && \
|
chgrp -R 0 /var/lib/php/session/ /var/lib/nginx/ && \
|
||||||
chmod -R g=u /var/lib/php/session/ /var/lib/nginx/ && \
|
chmod -R g=u /var/lib/php/session/ /var/lib/nginx/ && \
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
include=/etc/php8/php-fpm.d/*.conf
|
include=/etc/php81/php-fpm.d/*.conf
|
||||||
|
|
||||||
[global]
|
[global]
|
||||||
|
|
@ -15,8 +15,8 @@ redirect_stderr=true
|
|||||||
stdout_logfile = /dev/stdout
|
stdout_logfile = /dev/stdout
|
||||||
stdout_logfile_maxbytes = 0
|
stdout_logfile_maxbytes = 0
|
||||||
|
|
||||||
[program:php-fpm8]
|
[program:php-fpm81]
|
||||||
command = /usr/sbin/%(program_name)s -F -y /etc/php8/php-fpm.conf
|
command = /usr/sbin/%(program_name)s -F -y /etc/php81/php-fpm.conf
|
||||||
auto_start = true
|
auto_start = true
|
||||||
autorestart = true
|
autorestart = true
|
||||||
|
|
||||||
|
@ -143,7 +143,7 @@ prepare_web_server() {
|
|||||||
prepare_zbx_web_config() {
|
prepare_zbx_web_config() {
|
||||||
echo "** Preparing Zabbix frontend configuration file"
|
echo "** Preparing Zabbix frontend configuration file"
|
||||||
|
|
||||||
PHP_CONFIG_FILE="/etc/php8/php-fpm.d/zabbix.conf"
|
PHP_CONFIG_FILE="/etc/php81/php-fpm.d/zabbix.conf"
|
||||||
|
|
||||||
export PHP_FPM_PM=${PHP_FPM_PM:-"dynamic"}
|
export PHP_FPM_PM=${PHP_FPM_PM:-"dynamic"}
|
||||||
export PHP_FPM_PM_MAX_CHILDREN=${PHP_FPM_PM_MAX_CHILDREN:-"50"}
|
export PHP_FPM_PM_MAX_CHILDREN=${PHP_FPM_PM_MAX_CHILDREN:-"50"}
|
||||||
|
@ -47,7 +47,7 @@ RUN set -eux && \
|
|||||||
glibc-locale-source \
|
glibc-locale-source \
|
||||||
supervisor" && \
|
supervisor" && \
|
||||||
microdnf -y module enable mysql && \
|
microdnf -y module enable mysql && \
|
||||||
microdnf -y module enable php:7.4 && \
|
microdnf -y module enable php:8.0 && \
|
||||||
microdnf -y install \
|
microdnf -y install \
|
||||||
--disablerepo="*" \
|
--disablerepo="*" \
|
||||||
--enablerepo="ol8_baseos_latest" \
|
--enablerepo="ol8_baseos_latest" \
|
||||||
|
@ -33,22 +33,22 @@ RUN set -eux && \
|
|||||||
INSTALL_PKGS="bash \
|
INSTALL_PKGS="bash \
|
||||||
curl \
|
curl \
|
||||||
nginx \
|
nginx \
|
||||||
php8-bcmath \
|
php81-bcmath \
|
||||||
php8-ctype \
|
php81-ctype \
|
||||||
php8-fpm \
|
php81-fpm \
|
||||||
php8-gd \
|
php81-gd \
|
||||||
php8-gettext \
|
php81-gettext \
|
||||||
php8-json \
|
php81-json \
|
||||||
php8-ldap \
|
php81-ldap \
|
||||||
php8-mbstring \
|
php81-mbstring \
|
||||||
php8-pgsql \
|
php81-pgsql \
|
||||||
php8-session \
|
php81-session \
|
||||||
php8-simplexml \
|
php81-simplexml \
|
||||||
php8-sockets \
|
php81-sockets \
|
||||||
php8-fileinfo \
|
php81-fileinfo \
|
||||||
php8-xmlreader \
|
php81-xmlreader \
|
||||||
php8-xmlwriter \
|
php81-xmlwriter \
|
||||||
php8-openssl \
|
php81-openssl \
|
||||||
postgresql-client \
|
postgresql-client \
|
||||||
supervisor" && \
|
supervisor" && \
|
||||||
apk add \
|
apk add \
|
||||||
@ -78,7 +78,7 @@ RUN set -eux && \
|
|||||||
mkdir -p /etc/zabbix/web && \
|
mkdir -p /etc/zabbix/web && \
|
||||||
mkdir -p /etc/zabbix/web/certs && \
|
mkdir -p /etc/zabbix/web/certs && \
|
||||||
mkdir -p /var/lib/php/session && \
|
mkdir -p /var/lib/php/session && \
|
||||||
rm -rf /etc/php8/php-fpm.d/www.conf && \
|
rm -rf /etc/php81/php-fpm.d/www.conf && \
|
||||||
rm -f /etc/nginx/http.d/*.conf && \
|
rm -f /etc/nginx/http.d/*.conf && \
|
||||||
ln -sf /dev/fd/2 /var/lib/nginx/logs/error.log && \
|
ln -sf /dev/fd/2 /var/lib/nginx/logs/error.log && \
|
||||||
cd /usr/share/zabbix/ && \
|
cd /usr/share/zabbix/ && \
|
||||||
@ -92,9 +92,9 @@ RUN set -eux && \
|
|||||||
chown --quiet -R zabbix:root /etc/zabbix/ /usr/share/zabbix/include/defines.inc.php /usr/share/zabbix/modules/ && \
|
chown --quiet -R zabbix:root /etc/zabbix/ /usr/share/zabbix/include/defines.inc.php /usr/share/zabbix/modules/ && \
|
||||||
chgrp -R 0 /etc/zabbix/ /usr/share/zabbix/include/defines.inc.php /usr/share/zabbix/modules/ && \
|
chgrp -R 0 /etc/zabbix/ /usr/share/zabbix/include/defines.inc.php /usr/share/zabbix/modules/ && \
|
||||||
chmod -R g=u /etc/zabbix/ /usr/share/zabbix/include/defines.inc.php /usr/share/zabbix/modules/ && \
|
chmod -R g=u /etc/zabbix/ /usr/share/zabbix/include/defines.inc.php /usr/share/zabbix/modules/ && \
|
||||||
chown --quiet -R zabbix:root /etc/nginx/ /etc/php8/php-fpm.d/ /etc/php8/php-fpm.conf && \
|
chown --quiet -R zabbix:root /etc/nginx/ /etc/php81/php-fpm.d/ /etc/php81/php-fpm.conf && \
|
||||||
chgrp -R 0 /etc/nginx/ /etc/php8/php-fpm.d/ /etc/php8/php-fpm.conf && \
|
chgrp -R 0 /etc/nginx/ /etc/php81/php-fpm.d/ /etc/php81/php-fpm.conf && \
|
||||||
chmod -R g=u /etc/nginx/ /etc/php8/php-fpm.d/ /etc/php8/php-fpm.conf && \
|
chmod -R g=u /etc/nginx/ /etc/php81/php-fpm.d/ /etc/php81/php-fpm.conf && \
|
||||||
chown --quiet -R zabbix:root /var/lib/php/session/ /var/lib/nginx/ && \
|
chown --quiet -R zabbix:root /var/lib/php/session/ /var/lib/nginx/ && \
|
||||||
chgrp -R 0 /var/lib/php/session/ /var/lib/nginx/ && \
|
chgrp -R 0 /var/lib/php/session/ /var/lib/nginx/ && \
|
||||||
chmod -R g=u /var/lib/php/session/ /var/lib/nginx/ && \
|
chmod -R g=u /var/lib/php/session/ /var/lib/nginx/ && \
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
include=/etc/php8/php-fpm.d/*.conf
|
include=/etc/php81/php-fpm.d/*.conf
|
||||||
|
|
||||||
[global]
|
[global]
|
||||||
|
|
@ -15,8 +15,8 @@ redirect_stderr=true
|
|||||||
stdout_logfile = /dev/stdout
|
stdout_logfile = /dev/stdout
|
||||||
stdout_logfile_maxbytes = 0
|
stdout_logfile_maxbytes = 0
|
||||||
|
|
||||||
[program:php-fpm8]
|
[program:php-fpm81]
|
||||||
command = /usr/sbin/%(program_name)s -F -y /etc/php8/php-fpm.conf
|
command = /usr/sbin/%(program_name)s -F -y /etc/php81/php-fpm.conf
|
||||||
auto_start = true
|
auto_start = true
|
||||||
autorestart = true
|
autorestart = true
|
||||||
|
|
||||||
|
@ -143,7 +143,7 @@ prepare_web_server() {
|
|||||||
prepare_zbx_web_config() {
|
prepare_zbx_web_config() {
|
||||||
echo "** Preparing Zabbix frontend configuration file"
|
echo "** Preparing Zabbix frontend configuration file"
|
||||||
|
|
||||||
PHP_CONFIG_FILE="/etc/php8/php-fpm.d/zabbix.conf"
|
PHP_CONFIG_FILE="/etc/php81/php-fpm.d/zabbix.conf"
|
||||||
|
|
||||||
export PHP_FPM_PM=${PHP_FPM_PM:-"dynamic"}
|
export PHP_FPM_PM=${PHP_FPM_PM:-"dynamic"}
|
||||||
export PHP_FPM_PM_MAX_CHILDREN=${PHP_FPM_PM_MAX_CHILDREN:-"50"}
|
export PHP_FPM_PM_MAX_CHILDREN=${PHP_FPM_PM_MAX_CHILDREN:-"50"}
|
||||||
|
@ -46,7 +46,7 @@ RUN set -eux && \
|
|||||||
php-xml \
|
php-xml \
|
||||||
postgresql \
|
postgresql \
|
||||||
supervisor" && \
|
supervisor" && \
|
||||||
microdnf -y module enable php:7.4 && \
|
microdnf -y module enable php:8.0 && \
|
||||||
microdnf -y install \
|
microdnf -y install \
|
||||||
--disablerepo="*" \
|
--disablerepo="*" \
|
||||||
--enablerepo="ol8_baseos_latest" \
|
--enablerepo="ol8_baseos_latest" \
|
||||||
|
@ -15,7 +15,7 @@ ARG ZBX_SOURCES=https://git.zabbix.com/scm/zbx/zabbix.git
|
|||||||
|
|
||||||
ENV TERM=xterm \
|
ENV TERM=xterm \
|
||||||
ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES} \
|
ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES} \
|
||||||
PATH=/usr/lib64/chromium-browser:$PATH \
|
PATH=/usr/lib64/chromium-browser:$PATH
|
||||||
|
|
||||||
LABEL description="Zabbix web service for performing various tasks using headless web browser" \
|
LABEL description="Zabbix web service for performing various tasks using headless web browser" \
|
||||||
maintainer="alexey.pustovalov@zabbix.com" \
|
maintainer="alexey.pustovalov@zabbix.com" \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user