From 5e7a5edfb21c3ed5a9b909b4559656fe6fc28b3c Mon Sep 17 00:00:00 2001 From: Nicolas Alencar <55406040+nicoalencar@users.noreply.github.com> Date: Fri, 9 Aug 2024 11:11:26 -0300 Subject: [PATCH] Moving db related to 0x-migrations --- README.md | 6 +++--- build_local.sh | 1 - docker-compose-dev.yml | 16 ---------------- 3 files changed, 3 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index 371a1d3b..e1b58e45 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/build_local.sh b/build_local.sh index d58120ab..a4c745e4 100755 --- a/build_local.sh +++ b/build_local.sh @@ -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 diff --git a/docker-compose-dev.yml b/docker-compose-dev.yml index c448d983..d33ed96b 100644 --- a/docker-compose-dev.yml +++ b/docker-compose-dev.yml @@ -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: @@ -166,7 +151,6 @@ services: FEAT_WRAP_UNWRAP_NATIVE_EVENT: "true" WRAP_UNWRAP_NATIVE_CONTRACT_ADDRESS: '0xb31f66aa3c1e785363f0875a1b74e27b85fd66c7' - event-pipeline-fantom: depends_on: - postgres