-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from deep-stack/pm-v4-changes
Upgrade dependencies to v4
- Loading branch information
Showing
10 changed files
with
53 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,30 @@ | ||
version: '3.2' | ||
|
||
services: | ||
migrations: | ||
restart: on-failure | ||
depends_on: | ||
- ipld-eth-db | ||
image: vulcanize/ipld-eth-db:v4.1.1-alpha | ||
environment: | ||
DATABASE_USER: "vdbm" | ||
DATABASE_NAME: "vulcanize_testing" | ||
DATABASE_PASSWORD: "password" | ||
DATABASE_HOSTNAME: "ipld-eth-db" | ||
DATABASE_PORT: 5432 | ||
|
||
ipld-eth-db: | ||
image: timescale/timescaledb:latest-pg14 | ||
restart: always | ||
image: vulcanize/ipld-eth-db:v3.2.0 | ||
command: ["postgres", "-c", "log_statement=all"] | ||
environment: | ||
POSTGRES_USER: "vdbm" | ||
POSTGRES_DB: "vulcanize_testing" | ||
POSTGRES_PASSWORD: "password" | ||
volumes: | ||
- vdb_db_eth_validator:/var/lib/postgresql/data | ||
ports: | ||
- "127.0.0.1:8077:5432" | ||
command: ["postgres", "-c", "log_statement=all"] | ||
volumes: | ||
- vdb_db_eth_validator:/var/lib/postgresql/data | ||
|
||
volumes: | ||
vdb_db_eth_validator: | ||
vdb_db_eth_validator: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
set -o xtrace | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,17 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
# Clear up existing docker images and volume. | ||
docker-compose down --remove-orphans --volumes | ||
|
||
docker-compose -f docker-compose.yml up -d ipld-eth-db | ||
sleep 10 | ||
# Spin up TimescaleDB | ||
docker-compose -f docker-compose.yml up -d migrations ipld-eth-db | ||
sleep 45 | ||
|
||
# Run unit tests | ||
go clean -testcache | ||
PGPASSWORD=password DATABASE_USER=vdbm DATABASE_PORT=8077 DATABASE_PASSWORD=password DATABASE_HOSTNAME=127.0.0.1 DATABASE_NAME=vulcanize_testing make test | ||
|
||
# Clean up | ||
docker-compose down --remove-orphans --volumes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters