Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cloudposse-archives/wp-cli
WP-CLI built with Composer on top of Alpine Linux
https://github.com/cloudposse-archives/wp-cli
client docker dockerfile wordpress wp-cli
Last synced: 9 days ago
JSON representation
WP-CLI built with Composer on top of Alpine Linux
- Host: GitHub
- URL: https://github.com/cloudposse-archives/wp-cli
- Owner: cloudposse-archives
- License: apache-2.0
- Created: 2017-02-10T19:26:55.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T05:28:06.000Z (11 months ago)
- Last Synced: 2023-12-18T08:02:03.710Z (11 months ago)
- Topics: client, docker, dockerfile, wordpress, wp-cli
- Language: Dockerfile
- Homepage: https://cloudposse.com/accelerate
- Size: 11.7 KB
- Stars: 3
- Watchers: 12
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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.:
```shell
function wp() {
docker run -it --rm \
-v $(pwd):/mnt \
cloudposse/wp-cli:latest ${@:1}
}
```### Create a Wordpress project
```shell
$ 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 [email protected]
```### Perform Database Operations
Import/export database:
```shell
$ 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:
- @mbodenhamer, https://github.com/mbodenhamer/docker-alpine-wpcli/
- @soifou, https://github.com/soifou/wpcli-alpine
- @xtreamwayz, https://github.com/xtreamwayz/dckr-php