From aa5bde2417a5f6965d02191f86fd7a0ddefa9d73 Mon Sep 17 00:00:00 2001 From: George J Padayatti Date: Tue, 28 Nov 2023 03:25:35 +0530 Subject: [PATCH] Upd: Add routine to delete containers and volumes, add server addresses in README.md Signed-off-by: George J Padayatti --- playground/Makefile | 9 +++++++++ playground/README.md | 10 ++++++++++ 2 files changed, 19 insertions(+) diff --git a/playground/Makefile b/playground/Makefile index 0ab95fb..f76732b 100644 --- a/playground/Makefile +++ b/playground/Makefile @@ -6,6 +6,15 @@ help: @echo "------------------------------------------------------------------------" @grep -E '^[0-9a-zA-Z_/%\-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' +destroy: ## Delete all containers and volumes + @if [ -n "$$(docker container ls -aq)" ]; then \ + docker container rm -f $$(docker container ls -aq); \ + fi + @if [ -n "$$(docker volume ls -q)" ]; then \ + docker volume rm $$(docker volume ls -q); \ + fi + @echo "Destroyed all containers and volumes" + run: ## Run the playground docker-compose up -d diff --git a/playground/README.md b/playground/README.md index 6c64a21..09e9a8f 100644 --- a/playground/README.md +++ b/playground/README.md @@ -17,6 +17,16 @@ This repository hosts docker compose files for setting up playground for Consent 2. Execute `make down`. This stops the playground without deleting the data (volumes). 3. Execute `make clean`. This stops the playground along with deleting the data (volumes). +Note: To delete any conflicting containers or volumes before running, execute `make destroy`. This will delete all the docker containers and volumes in your machine. + +The servers are up and running. They are accessible at below addresses: + +| Name | Server address | +| ----------------- | -------------------------------- | +| API | https://api.bb-consent.dev | +| Admin dashboard | https://dashboard.bb-consent.dev | +| Privacy dashboard | https://privacy.bb-consent.dev | + ## Contributing Feel free to improve the plugin and send us a pull request. If you find any problems, please create an issue in this repo.