wp2static/provisioning/destroy_and_rebuild.sh
Leon Stafford 3d9a7c7a08 filepath rel to proj root
Former-commit-id: 3afa1bcb92
2017-04-02 22:29:45 +12:00

10 lines
595 B
Bash
Executable file

#!/bin/bash
# convenience script to destroy any running containers, rebuild (with cache) and output notifications from script watching/syncing source files
sudo docker rm -f devmysql
sudo docker rm -f plugindevwp
sudo docker build -t leonstafford/wordpress-static-html-plugin:latest .
sudo docker run --name devmysql -e MYSQL_ROOT_PASSWORD=banana -d mariadb
sudo docker run --name plugindevwp --link devmysql:mysql -p 8080:80 -d -v $(pwd):/app leonstafford/wordpress-static-html-plugin
sudo docker exec plugindevwp sh /post_launch.sh
sudo docker exec -it plugindevwp sh /watch_source_files.sh