diff --git a/Dockerfile b/Dockerfile index d84a30a3..8e21c2f2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -44,7 +44,6 @@ COPY --chown=5000:5000 --from=builder /go/src/github.com/vulcanize/ipld-eth-serv # keep binaries immutable COPY --from=builder /go/src/github.com/vulcanize/ipld-eth-server/ipld-eth-server ipld-eth-server COPY --from=builder /goose goose -COPY --from=builder /go/src/github.com/vulcanize/ipld-eth-server/db/migrations migrations/vulcanizedb COPY --from=builder /go/src/github.com/vulcanize/ipld-eth-server/environments environments ENTRYPOINT ["/app/entrypoint.sh"] diff --git a/docker-compose.yml b/docker-compose.yml index 889a207f..10620660 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -50,7 +50,6 @@ services: DATABASE_USER: "vdbm" DATABASE_PASSWORD: "password" ETH_CHAIN_ID: 4 - RUN_DB_MIGRATION: "no" volumes: - type: bind source: ./chain.json diff --git a/entrypoint.sh b/entrypoint.sh index 0efef13f..3e0e2372 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,23 +1,4 @@ #!/bin/sh -# Runs the db migrations and starts the watcher services - -# Construct the connection string for postgres -VDB_PG_CONNECT=postgresql://$DATABASE_USER:$DATABASE_PASSWORD@$DATABASE_HOSTNAME:$DATABASE_PORT/$DATABASE_NAME?sslmode=disable - - -if [ "$RUN_DB_MIGRATION" != "no" ] -then - # Run the DB migrations - echo "Connecting with: $VDB_PG_CONNECT" - echo "Running database migrations" - ./goose -dir migrations/vulcanizedb postgres "$VDB_PG_CONNECT" up - rv=$? - - if [ $rv != 0 ]; then - echo "Could not run migrations. Are the database details correct?" - exit 1 - fi -fi echo "Beginning the ipld-eth-server process"