From 0b71d64cbbe2ef4fab9f4dd4d0df1775185046e3 Mon Sep 17 00:00:00 2001 From: "Eric O. Korman" Date: Tue, 27 Feb 2024 14:46:31 -0600 Subject: [PATCH] fix networking --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 0b990f5bb..27d5d6020 100644 --- a/Makefile +++ b/Makefile @@ -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