Skip to content
This repository was archived by the owner on May 21, 2024. It is now read-only.

Commit 860db2c

Browse files
authored
Merge pull request #28 from makerdao/deployment-test-subscription
Test extract diffs process with geth patch on push
2 parents da8aef1 + 03500f0 commit 860db2c

File tree

2 files changed

+52
-0
lines changed

2 files changed

+52
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: TestExtractDiffSubscription
2+
3+
on: push
4+
5+
jobs:
6+
test-subscription:
7+
runs-on: ubuntu-latest
8+
steps:
9+
-
10+
name: Checkout repo
11+
uses: actions/checkout@v2
12+
-
13+
name: Builds the docker compose stack
14+
run: docker compose up -d
15+
-
16+
name: Wait for stack to start
17+
uses: jakejarvis/wait-action@master
18+
with:
19+
time: '1m'
20+
-
21+
name: Check log file
22+
run: docker compose logs | grep "Successfully created a geth client subscription"
23+

docker-compose.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
version: "3.8"
2+
services:
3+
extract_diffs:
4+
image: makerdao/vdb-extract-diffs:latest # (needs wait-for-it.sh)
5+
environment:
6+
# Remote client would need to be statediff enabled
7+
- CLIENT_IPCPATH=ws://geth:8546/
8+
- STORAGEDIFFS_SOURCE=geth
9+
- DATABASE_NAME=vdb
10+
- DATABASE_HOSTNAME=db
11+
- DATABASE_PORT=5432
12+
- DATABASE_USER=vdb
13+
- DATABASE_PASSWORD=vdb
14+
depends_on:
15+
- geth
16+
command: ["./wait-for-it.sh", "db:5432", "--strict", "--", "./startup_script.sh"]
17+
18+
geth:
19+
build:
20+
.
21+
command: ["--http", "--http.addr", "0.0.0.0", "--ws", "--ws.addr", "0.0.0.0", "--syncmode", "full"]
22+
23+
db:
24+
image: postgres:12.1-alpine
25+
environment:
26+
- POSTGRES_USER=vdb
27+
- POSTGRES_PASSWORD=vdb
28+
restart: always
29+
command: ["postgres", "-c", "track_activity_query_size=32786"]

0 commit comments

Comments
 (0)