Skip to content

Commit

Permalink
Upd: Add routine to delete containers and volumes, add server address…
Browse files Browse the repository at this point in the history
…es in README.md

Signed-off-by: George J Padayatti <[email protected]>
  • Loading branch information
georgepadayatti committed Nov 27, 2023
1 parent 0d723ff commit aa5bde2
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
9 changes: 9 additions & 0 deletions playground/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
10 changes: 10 additions & 0 deletions playground/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit aa5bde2

Please sign in to comment.