Add Apache status monitoring to Helm chart
Publish PHP Apache image / Build, test and push (push) Successful in 1m10s
Publish PHP Apache image / Build, test and push (push) Successful in 1m10s
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
FROM archlinux:latest
|
||||
|
||||
ENV APACHE_SERVER_ADMIN=webmaster@localhost \
|
||||
APACHE_STATUS_PORT=8080
|
||||
|
||||
RUN pacman -Syu --noconfirm apache php-apache php php-gd php-pgsql \
|
||||
&& pacman -Sc --noconfirm \
|
||||
&& rm -v /var/log/pacman.log /var/lib/pacman/sync/*
|
||||
@@ -10,9 +13,11 @@ RUN sed -i '/mod_mpm_event/ s/^/#/' /etc/httpd/conf/httpd.conf \
|
||||
&& sed -i -E 's#^(\s*ErrorLog\s+)(["'\'']?)[^"'\''[:space:]]+\2#\1/dev/null#' /etc/httpd/conf/httpd.conf \
|
||||
&& sed -i '/<Directory[[:space:]]\+"\/srv\/http">/,/<\/Directory>/ s/^\([[:space:]]*AllowOverride[[:space:]]*\)None/\1All/' /etc/httpd/conf/httpd.conf \
|
||||
&& sed -i '/mod_rewrite/ s/^#//' /etc/httpd/conf/httpd.conf \
|
||||
&& sed -i '/status_module/ s/^#//' /etc/httpd/conf/httpd.conf \
|
||||
&& echo LoadModule php_module modules/libphp.so >> /etc/httpd/conf/httpd.conf \
|
||||
&& echo AddHandler php-script .php >> /etc/httpd/conf/httpd.conf \
|
||||
&& echo Include conf/extra/php_module.conf >> /etc/httpd/conf/httpd.conf \
|
||||
&& echo Include conf/extra/apache-status.conf >> /etc/httpd/conf/httpd.conf \
|
||||
&& install -d /etc/php/conf.d \
|
||||
&& sed -i -e '/extension=exif/ s/^;//' \
|
||||
-e '/extension=gd/ s/^;//' \
|
||||
@@ -22,5 +27,6 @@ RUN sed -i '/mod_mpm_event/ s/^/#/' /etc/httpd/conf/httpd.conf \
|
||||
/etc/php/php.ini
|
||||
|
||||
COPY opcache.ini /etc/php/conf.d/opcache.ini
|
||||
COPY apache-status.conf /etc/httpd/conf/extra/apache-status.conf
|
||||
|
||||
ENTRYPOINT ["httpd", "-DFOREGROUND"]
|
||||
|
||||
Reference in New Issue
Block a user