simpler script to get started

This commit is contained in:
Leon 2017-02-19 11:43:06 +13:00
parent 27acdba392
commit d1831c954a
3 changed files with 9 additions and 9 deletions

View file

@ -29,13 +29,7 @@ If you'd like to contribute, please follow the usual GitHub procedures (create a
To quickly try out the plugin, without affecting your other WordPress installations:
- [install Docker](http://docker.com)
- `docker build -t leonstafford/wordpress-static-html-plugin:latest # add zip extension and WP cli on top of latest WordPress Docker image
- `docker run --name devmysql -e MYSQL_ROOT_PASSWORD=banana -d mariadb` # run a MySQL container for the WordPress one to later use
- `docker run --name plugindevwp --link devmysql:mysql -p 8080:80 -d wordpress` # run the official WordPress image, linking to your MySQL instance
- sudo docker run --name plugindevwp --link devmysql:mysql -p 8080:80 -d -v /home/leon/wordpress-static-html-plugin/:/app leonstafford/wordpress-static-html-plugin # run the customized WP image, bind mounting the dev sources to /app dir
- `docker exec -it plugindevwp bash` # get CLI access to the container
- `sh /post_launch.sh` # install WP; install and activate static output plugin
- `exit` # leave the container's shell
- `sh destroy_and_rebuild.sh # view contents of this file to see how it builds
- `docker ps` # get WordPress container's id so you can connect from the host
- `docker inspect __yourcontainerid__ | grep Address` # get IP for connecting in your browser
- open IP in browser and you have a clean WP install, including the plugin (l/p: admin/admin)