49daf851cc9c2877ec5a5fb730dc5488edfe6d7d
ipld-eth-db
Schemas and utils for IPLD ETH Postgres database
Database UML
Run
-
Remove any existing containers / volumes:
docker-compose down -v --remove-orphans -
Spin up a TimescaleDB instance using docker-compose.test.yml:
docker-compose -f docker-compose.test.yml upFollowing final output should be seen:
LOG: TimescaleDB background worker launcher connected to shared catalogs -
Edit startup_script.sh to change the number of migrations to be run if required:
./goose -dir migrations/vulcanizedb postgres "$VDB_PG_CONNECT" up-to 22 -
In another
ipld-eth-dbterminal window, build an imagemigrations-testusing Dockerfile:docker build -t migrations-test -f ./db/Dockerfile . -
Start a container using
migrations-testimage to run the db migrations:# Here, we are running the container using host network. # So connect to TimescaleDB on 127.0.0.1:8066 docker run --rm --network host -e DATABASE_USER=vdbm -e DATABASE_PASSWORD=password -e DATABASE_HOSTNAME=127.0.0.1 -e DATABASE_PORT=8066 -e DATABASE_NAME=vulcanize_testing_v4 migrations-test
Languages
PLpgSQL
91.4%
Shell
7.3%
Dockerfile
1.3%
