Create stack for sushiswap v3 subgraph watcher #8
@ -33,7 +33,7 @@ services:
|
|||||||
working_dir: /app/packages/v3-watcher
|
working_dir: /app/packages/v3-watcher
|
||||||
command: ["bash", "./start-job-runner.sh"]
|
command: ["bash", "./start-job-runner.sh"]
|
||||||
volumes:
|
volumes:
|
||||||
- ../config/watcher-sushiswap-v3/watcher-config-template.toml:/app/environments/watcher-config-template.toml
|
- ../config/watcher-sushiswap-v3/watcher-config-template.toml:/app/packages/v3-watcher/environments/watcher-config-template.toml
|
||||||
- ../config/watcher-sushiswap-v3/start-job-runner.sh:/app/packages/v3-watcher/start-job-runner.sh
|
- ../config/watcher-sushiswap-v3/start-job-runner.sh:/app/packages/v3-watcher/start-job-runner.sh
|
||||||
ports:
|
ports:
|
||||||
- "9000:9000"
|
- "9000:9000"
|
||||||
@ -60,9 +60,9 @@ services:
|
|||||||
working_dir: /app/packages/v3-watcher
|
working_dir: /app/packages/v3-watcher
|
||||||
command: ["bash", "./start-server.sh"]
|
command: ["bash", "./start-server.sh"]
|
||||||
volumes:
|
volumes:
|
||||||
- ../config/watcher-sushiswap-v3/watcher-config-template.toml:/app/environments/watcher-config-template.toml
|
- ../config/watcher-sushiswap-v3/watcher-config-template.toml:/app/packages/v3-watcher/environments/watcher-config-template.toml
|
||||||
- ../config/watcher-sushiswap-v3/start-server.sh:/app/packages/v3-watcher/start-server.sh
|
- ../config/watcher-sushiswap-v3/start-server.sh:/app/packages/v3-watcher/start-server.sh
|
||||||
- sushiswap_v3_watcher_gql_logs_data:/app/gql-logs
|
- sushiswap_v3_watcher_gql_logs_data:/app/packages/v3-watcher/gql-logs
|
||||||
ports:
|
ports:
|
||||||
- "3008"
|
- "3008"
|
||||||
- "9001"
|
- "9001"
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
|
|
||||||
# Server GQL config
|
# Server GQL config
|
||||||
[server.gql]
|
[server.gql]
|
||||||
path = "/"
|
path = "/graphql"
|
||||||
|
|
||||||
# Max block range for which to return events in eventsInRange GQL query.
|
# Max block range for which to return events in eventsInRange GQL query.
|
||||||
# Use -1 for skipping check on block range.
|
# Use -1 for skipping check on block range.
|
||||||
|
@ -11,5 +11,5 @@ RUN COMMIT_HASH=$(git rev-parse HEAD) && \
|
|||||||
jq --arg commitHash "$COMMIT_HASH" '.commitHash = $commitHash' package.json > tmp.json && \
|
jq --arg commitHash "$COMMIT_HASH" '.commitHash = $commitHash' package.json > tmp.json && \
|
||||||
mv tmp.json package.json
|
mv tmp.json package.json
|
||||||
|
|
||||||
RUN echo "Installing dependencies and building sushiswap-v3-watcher-ts" && \
|
RUN echo "Installing dependencies and building sushiswap-watcher-ts" && \
|
||||||
yarn && yarn build
|
yarn && yarn build
|
||||||
|
@ -3,19 +3,19 @@
|
|||||||
## Clone the stack repo
|
## Clone the stack repo
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
laconic-so fetch-stack ~/cerc/sushiswap-watcher-ts/stack-orchestrator/stacks/sushiswap-v3
|
laconic-so fetch-stack git.vdb.to/cerc-io/sushiswap-watcher-ts
|
||||||
```
|
```
|
||||||
|
|
||||||
## Build the container image
|
## Build the container image
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
laconic-so --stack sushiswap-v3 build-containers
|
laconic-so --stack ~/cerc/sushiswap-watcher-ts/stacks/stack-orchestrator/stacks/sushiswap-v3 build-containers
|
||||||
```
|
```
|
||||||
|
|
||||||
## Create a spec file for the deployment
|
## Create a spec file for the deployment
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
laconic-so --stack sushiswap-v3 deploy init --output sushiswap-v3-spec.yml
|
laconic-so --stack ~/cerc/sushiswap-watcher-ts/stacks/stack-orchestrator/stacks/sushiswap-v3 deploy init --output sushiswap-v3-spec.yml
|
||||||
```
|
```
|
||||||
|
|
||||||
### Ports
|
### Ports
|
||||||
@ -38,7 +38,7 @@ network:
|
|||||||
## Create a deployment from the spec file
|
## Create a deployment from the spec file
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
laconic-so --stack sushiswap-v3 deploy create --spec-file sushiswap-v3-spec.yml --deployment-dir sushiswap-v3-deployment
|
laconic-so --stack ~/cerc/sushiswap-watcher-ts/stacks/stack-orchestrator/stacks/sushiswap-v3 deploy create --spec-file sushiswap-v3-spec.yml --deployment-dir sushiswap-v3-deployment
|
||||||
```
|
```
|
||||||
|
|
||||||
### Configuration
|
### Configuration
|
||||||
|
Loading…
Reference in New Issue
Block a user