A Docker container for managing a Docker WordPress install.
1.9K
Utilities for managing a Docker-based local WordPress development environment. This is a publically available Docker image hosted on the Docker Hub.
This is part of the Mangrove local development setup. See the documentation for this image in the Mangrove DevDocs.
The download commands assume the remote server is a WPEngine environment. These will work with any SFTP server providing an identical file structure. These require the SFTP Config text file to be created before the util container is started.
download-plugins
download-uploads
download-db
wordpress.sqlThese work whether or not an SFTP config file is created.
wp
import-db or multisite-import-db
wordpress.sql file at the root of the local project directory.wp-init or multisite-init
Create a plain text file at docker-compose/sftp-config with no file extension.
If there is a folder at that path, shut down any running Docker services and
delete that folder.
Enter your SFTP credentials in this format:
HOSTNAME=
USERNAME=
PASSWORD=''
PORT=2222
Note: place password in 'single quotes' to avoid issues with special characters.
This is technically a shell script, so you can use shell syntax to enter multiple sets of credentials toggled via variable:
ENV=DEV
if [ $ENV = PROD ]; then
HOSTNAME=
USERNAME=
PASSWORD=''
elif [ $ENV = STAGE ]; then
HOSTNAME=
USERNAME=
PASSWORD=''
elif [ $ENV = DEV ]; then
HOSTNAME=
USERNAME=
PASSWORD=''
fi
PORT=2222
docker pull mangroveweb/wp-util:latest