2023-08-11 04:32:36 +00:00
|
|
|
# SushiSwap Graph
|
|
|
|
|
|
|
|
## Setup
|
|
|
|
|
|
|
|
Clone required repositories:
|
|
|
|
|
|
|
|
```bash
|
2023-08-11 09:14:01 +00:00
|
|
|
laconic-so --stack sushiswap-subgraph setup-repositories
|
2023-08-11 04:32:36 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
Build the container images:
|
|
|
|
|
|
|
|
```bash
|
2023-08-11 09:14:01 +00:00
|
|
|
laconic-so --stack sushiswap-subgraph build-containers
|
2023-08-11 04:32:36 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
## Deploy
|
|
|
|
|
|
|
|
Deploy the stack:
|
|
|
|
|
|
|
|
```bash
|
2023-08-11 09:14:01 +00:00
|
|
|
laconic-so --stack sushiswap-subgraph deploy --cluster sushigraph up
|
2023-08-11 04:32:36 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
## Clean up
|
|
|
|
|
|
|
|
Stop all the services running in background run:
|
|
|
|
|
|
|
|
```bash
|
2023-08-11 09:14:01 +00:00
|
|
|
laconic-so --stack sushiswap-subgraph deploy --cluster sushigraph down
|
2023-08-11 04:32:36 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
Clear volumes created by this stack:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
# List all relevant volumes
|
|
|
|
docker volume ls -q --filter "name=sushigraph"
|
|
|
|
|
|
|
|
# Remove all the listed volumes
|
|
|
|
docker volume rm $(docker volume ls -q --filter "name=sushigraph")
|
|
|
|
```
|