Skip to content

Fork updated with Pull and Docker Hub Autobuilds, just run aestetype/alpine-wp-cli

License

Notifications You must be signed in to change notification settings

aestetype/alpine-wp-cli

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WP-CLI on Alpine Linux

WP-CLI built from Composer build on top of Alpine Linux.

Usage

Below are some examples of how you can use wp-cli.

Bash alias

Create a bash alias i.e.:

function wp() {
    docker run -it --rm \
        -v $(pwd):/mnt \
        cloudposse/wp-cli:latest ${@:1}
}

Create a Wordpress project

$ mkdir wp-test && cd wp-test
$ wp core download
$ wp core config --dbhost=db --dbname=wptest --dbuser=root --dbpass=root
$ wp core install \
    --url=http://wp-test \
    --title="Awesome website" \
    --admin_user=admin --admin_password=admin --admin_email admin@example.com

Perform Database Operations

Import/export database:

$ cd /path/to/wordpress/project
$ wp db import /mnt/dump.sql

NOTE: The --path argument is relative to paths inside of the container. Bind mount volumes as necessary.

Credits

This image is built from bits and pieces of other Dockerfiles.

Thanks to contributions by the following people:

About

Fork updated with Pull and Docker Hub Autobuilds, just run aestetype/alpine-wp-cli

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 72.3%
  • Makefile 27.7%