Skip to content

Commit

Permalink
Moving db related to 0x-migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoalencar committed Aug 9, 2024
1 parent 563cb6d commit 5e7a5ed
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 20 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ Configure the scape **Mode**

2. Start Postgres

```sh
docker-compose up -d # get postgres up
```
For local development, you will need to get the local databases running depending on which pipelines you are going to develop/test.
You can setup them by following the instructions on the [0x-data-migrations](https://github.com/0xProject/0x-data-migrations) repository. We manage all db setup/changes there.
It will guide you on how to get the dbs up and running the initial setup that is necessary to be used here.

3. Build the Scraper images

Expand Down
1 change: 0 additions & 1 deletion build_local.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env sh

docker-compose -f docker-compose-dev.yml up -d postgres
docker-compose -f docker-compose-dev.yml build event-pipeline-ethereum
docker-compose -f docker-compose-dev.yml build event-pipeline-base

Expand Down
16 changes: 0 additions & 16 deletions docker-compose-dev.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,5 @@
version: '3'
services:
postgres:
image: postgres:13.4
environment:
POSTGRES_USER: '${POSTGRES_USER}'
POSTGRES_PASSWORD: '${POSTGRES_PASSWORD}'
POSTGRES_DB: '${POSTGRES_DB}'
POSTGRES_PORT: ${POSTGRES_PORT}
# persist the postgres data to disk so we don't lose it
# on rebuilds.
volumes:
- ./mounts/postgres:/var/lib/postgresql/data
- ./postgres-init.sql:/docker-entrypoint-initdb.d/postgres-init.sql
ports:
- '5432:5432'
command: ["postgres", "-c", "log_statement=none", "-c", "log_destination=stderr"]

event-pipeline-ethereum:
depends_on:
Expand Down Expand Up @@ -166,7 +151,6 @@ services:
FEAT_WRAP_UNWRAP_NATIVE_EVENT: "true"
WRAP_UNWRAP_NATIVE_CONTRACT_ADDRESS: '0xb31f66aa3c1e785363f0875a1b74e27b85fd66c7'


event-pipeline-fantom:
depends_on:
- postgres
Expand Down

0 comments on commit 5e7a5ed

Please sign in to comment.