Skip to content

Commit

Permalink
fix networking (#450)
Browse files Browse the repository at this point in the history
  • Loading branch information
ekorman authored Feb 27, 2024
1 parent c1af392 commit 3e4e8e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ unit-tests:
python -m pytest -v ./client/unit-tests

start-postgis-docker:
docker run -p 5432:5432 -e POSTGRES_PASSWORD=password -e POSTGRES_DB=valor -d --network "host" docker.io/postgis/postgis
docker run -p 5432:5432 -e POSTGRES_PASSWORD=password -e POSTGRES_DB=valor -d docker.io/postgis/postgis

run-migrations:
docker build -f=migrations/Dockerfile ./migrations -t migrations && \
docker run -e POSTGRES_PASSWORD=password -e POSTGRES_HOST=localhost -e POSTGRES_DB=valor -e POSTGRES_USERNAME=postgres -e POSTGRES_PORT=5432 --network "host" migrations
docker run -e POSTGRES_PASSWORD=password -e POSTGRES_HOST=host.docker.internal -e POSTGRES_DB=valor -e POSTGRES_USERNAME=postgres -e POSTGRES_PORT=5432 migrations

functional-tests:
POSTGRES_PASSWORD=password POSTGRES_HOST=localhost POSTGRES_DB=valor POSTGRES_USERNAME=postgres POSTGRES_PORT=5432 pytest -v ./api/tests/functional-tests
Expand Down

0 comments on commit 3e4e8e7

Please sign in to comment.