A smart way to use the CLI to replace the WORDPRESS_CONFIG_EXTRA
variable
#544
Labels
Request
Request for image modification or feature
WORDPRESS_CONFIG_EXTRA
variable
#544
Hi everyone, nice to meet you all.
I've been looking at the documents and discussions in the following order and have come up with a better alternative, so I'll post it.
wordpress/docker-entrypoint.sh
Lines 184 to 188 in 5c66950
I feel that the Command line interface for WordPress | WP-CLI project is the best way to accurately, reliably, and quickly rewrite the values of variables in wp-config.php.
And it is fortunately available as a wordpress - Docker Hub official image.
MySQL is an essential part of WordPress.
Likewise, considering that WP-CLI is essential for a flexible WordPress/wp-config.php configuration, how about the following?
I think the idempotence of the configuration will be preserved.
This is just part of my idea of how to do it.
What are your thoughts on this?
Have a great day.
The text was updated successfully, but these errors were encountered: