Sign inSign up

robobeerun/wordpress

By robobeerun

•Updated over 7 years ago

Wordpress without root privileges.

Image
0

5.6K

robobeerun/wordpress repository overview

⁠Wordpress-Base

⁠Description

This is a base image for Wordpress. It modifies the parent image insofar as it can take input configuration files to override the image configuration files, allowing for Kubernetes config maps.

⁠Updating

The files in WEB_ROOT are updated with rsync from the docker image. To avoid endless a loop of a restarting container a timeout for updating can be set in the variables UPDATE_TIME_S. No rsync will be called if the restart time was less than this timeout. While rsync should not write files that do not need to be updated, rsync is still making read requests.

⁠Exposed Ports

PortName
9000php-fpm

⁠Environment Parameters

⁠General
VariableDefaultDescription
WEB_ROOT/var/www/htmlThe persistent directory of the application.
WEB_USERwww-dataThe application user.
SYNC_ENABLEDtrueSet to false to deactivate the application will be done.
SYNC_TIME_S300Set to the seconds that will be waited before a full update of the application will be done.
DEBUGfalseSet to true to enable script debug.
⁠PHP
VariableDefaultDescription
PHP_MAX_EXECUTION_TIME300max_execution_time
PHP_MEMORY_LIMIT128Mmemory_limit
PHP_FPM_MAX_CHILDREN10pm.max_children
PHP_FPM_START_SERVERS2pm.start_servers
PHP_FPM_MIN_SPARE_SERVERS2pm.min_spare_servers
PHP_FPM_MAX_SPARE_SERVERS5pm.max_spare_servers
PHP_FPM_MAX_REQUESTS500pm.max_requests
PHP_FPM_REQUEST_SLOWLOG_TIMEOUT0request_slowlog_timeout
PHP_FPM_CATCH_WORKERS_OUTPUT1catch_workers_output
PHP_OPCACHE_ENABLE_CLI1opcache.enable_cli
PHP_OPCACHE_ENABLE1opcache.enable
PHP_OPCACHE_MEMORY_CONSUMPTION128opcache.memory_consumption

⁠Input Configration

SourceDestination
/php-in/php.ini/usr/local/etc/php/php.ini
/php-confd-in/*.ini/usr/local/etc/php/conf.d/
/wordpress-in/.htaccess/var/www/html/.htaccess
/wordpress-in/wp-config.php/var/www/html/wp-config.php

⁠Test

The docker-compose file test.yaml can be used to startup MySQL and the Wordpress base containers. The Wordpress installation can be then accessed from localhost:8080.

docker-compose -f test.yaml up

⁠Optimize php-fpm

docker exec wordpress_wordpress_1 find /var/www/html -iname '*.php'|wc -l
find /var/www/html -iname *.php|wc -l

Tag summary

Content type

Image

Digest

Size

202.6 MB

Last updated

over 7 years ago

docker pull robobeerun/wordpress