Commit 493fa342 by Joel Barciauskas Committed by Clinton Blackburn

Create makefile command 'devstack.destroy' to clean images and volumes created

by devstack.provision
parent e0c6154f
...@@ -18,6 +18,9 @@ help: ## Display this help message ...@@ -18,6 +18,9 @@ help: ## Display this help message
clone: ## Clone service repos clone: ## Clone service repos
./clone.sh ./clone.sh
devstack.destroy: ## Destroy all containers and volumes
./destroy.sh
# TODO Print out help for this target. Even better if we can iterate over the services in docker-compose.yml, and # TODO Print out help for this target. Even better if we can iterate over the services in docker-compose.yml, and
# print the actual service names. # print the actual service names.
devstack.open.%: ## Open a shell into the specified service container devstack.open.%: ## Open a shell into the specified service container
......
...@@ -68,6 +68,12 @@ Catalog/Course Discovery Service, you can run: ...@@ -68,6 +68,12 @@ Catalog/Course Discovery Service, you can run:
make devstack.open.discovery make devstack.open.discovery
``` ```
To reset your environment and start provisioning from scratch, you can run:
```sh
make devstack.destroy
```
### Docker Sync ### Docker Sync
Docker for Mac has known filesystem issues that significantly decrease Docker for Mac has known filesystem issues that significantly decrease
......
set -e
read -p "This will delete all data in your devstack. Would you like to proceed? [y/n] " -r
if [[ $REPLY =~ ^[Yy]$ ]]
then
echo
docker-compose down
docker volume rm devstack_mysql_data
docker volume rm devstack_mongo_data
docker volume rm devstack_elasticsearch_data
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment