welaika / wordmove

Multi-stage command line deploy/mirroring and task runner for Wordpress
https://wptools.it/wordmove
MIT License
1.87k stars 165 forks source link

how to allow wpcli to run as root inside a docker container? #607

Closed bongoman closed 3 years ago

bongoman commented 4 years ago

wp cli is aborting the pull -d wordmove command due to it's inability to run as root.

Is there a way to flag the wpcli db commands with the "--allow-root" option ?

alessandro-fazzi commented 4 years ago

Hmmm...as you can see in this test https://github.com/welaika/wordmove/blob/ba959f0a5fb3e0c81026a16a7bad885172fb37a1/spec/sql_adapter/wpcli_spec.rb wordmove is already calling wp passing --allow-root. And I think it was implemented mainly in order to support docker out-of-the-box.

Here the commit https://github.com/welaika/wordmove/commit/212221853bd2d5e18997e1dcd583fdc57f7a1ac6

Any chance you're running an old wordmove version?

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.