Feature/add cleanup script (#334)

* Create cleanup.sh

Add a clean up script

* make cleanup.sh executable

* improve doc

* fix typos
This commit is contained in:
Alex Coseru 2022-12-08 14:23:38 +02:00 committed by GitHub
parent a6e1c95c17
commit c7fee7866b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 46 additions and 2 deletions

View File

@ -48,12 +48,16 @@ This will run the current default versions of [Aquarius](https://github.com/ocea
<img width="486" alt="Welcome to Ocean Protocol" src="Welcome_to_Ocean_Protocol.png">
> It's overkill, but to be _sure_ that you use exactly the Docker images and volumes you want, you can prune all the Docker things in your system first:
## Cleanup
To clean up your environment, you can run
> ```bash
> docker system prune --all --volumes
> ./cleanup.sh
> ```
This will stop & remove any ocean related containers, then delete any volumes and networks created by barge
## Options
The startup script comes with a set of options for customizing various things.

40
cleanup.sh Executable file
View File

@ -0,0 +1,40 @@
#/bin/bash
docker container stop ocean_aquarius_1
docker container stop ocean_graph-node_1
docker container stop ocean_subgraph_1
docker container stop ocean_ipfs_1
docker container stop ocean_postgres_1
docker container stop ocean_provider_1
docker container stop ocean_provider2_1
docker container stop ocean_ocean-contracts_1
docker container stop ocean_elasticsearch_1
docker container stop ocean_ganache_1
docker container stop ocean_faucet_1
docker container stop ocean_computetodata_1
docker container stop ocean_kindcluster_1
docker container stop ocean_redis_1
docker container stop ocean_dashboard_1
docker container stop docker-registry
docker container rm ocean_aquarius_1
docker container rm ocean_graph-node_1
docker container rm ocean_subgraph_1
docker container rm ocean_ipfs_1
docker container rm ocean_postgres_1
docker container rm ocean_provider_1
docker container rm ocean_provider2_1
docker container rm ocean_ocean-contracts_1
docker container rm ocean_elasticsearch_1
docker container rm ocean_ganache_1
docker container rm ocean_faucet_1
docker container rm ocean_computetodata_1
docker container rm ocean_kindcluster_1
docker container rm ocean_redis_1
docker container rm ocean_dashboard_1
docker container rm docker-registry
docker volume rm ocean_graphipfs
docker volume rm ocean_graphpgsql
docker volume rm ocean_provider1db
docker volume rm ocean_provider2db
docker network rm kind
docker volume rm $(docker volume ls -q)