Skip to content

Using wp-cli to easily handle updates and other features #176

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 5 commits into from

Conversation

w4tsn
Copy link

@w4tsn w4tsn commented Oct 6, 2016

This pull requests contains changes for the use of wp-cli to provide some useful functionalities for wp setup through configuration management with docker-compose.

Updates to wp core and plugins are included.

Current new features (on build time):

  • provide a wp_version to be included within the image; persists through ENV WP_BUILD_VERSION
  • provide a wp_locale to set the language for the image source files
  • provide a list of php extensions to be embedded into the image (needed for plugins)

Current new features (on runtime):

  • update to the image version or provide a WORDPRESS_VERSION
  • update all plugins if wordpress is installed on container startup
  • provide a list of plugins through WP_PLUGINS to be installed on next container start

Possible features for the future

  • direct install wordpress through env config (useful for automated setup with even plugins through config)
  • provide any possible interface to the wp-cli you can think of
  • add a SCRIPTS_DIR volume to map custom scripts into the image on startup

@yosifkit
Copy link
Member

yosifkit commented Oct 6, 2016

wp-cli looks like a handy to for managing WordPress installs and changes. The problem I see is that we try to stick as close to upstream and their recommendations as possible, and I don't see a recommendation from them. The closest that I can find is in the documentation for "Changing the Site URL" where they say "wp-cli is a super useful shell tool".

@mwpastore
Copy link

Even just having wp-cli available in the image would be a killer feature. Also, this was in the news last week: https://wptavern.com/wp-cli-gets-official-wordpress-org-support

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants