diff --git a/makefile b/makefile index 9ea4b788abd..8d80a64a443 100644 --- a/makefile +++ b/makefile @@ -526,6 +526,9 @@ tests-e2e-python: python tests-e2e-airflow: airflow-operator build-docker-jobservice $(GO_CMD) go run cmd/armadactl/main.go create queue queue-a || true docker rm -f jobservice || true + docker run -d --name=postgres $(DOCKER_NET) -p 5432:5432 -e POSTGRES_PASSWORD=psw postgres:15.2 + sleep 3 + function tearDown { docker rm -redis postgres; }; trap tearDown EXIT docker run -d --name jobservice --network=kind --mount 'type=bind,src=${PWD}/e2e,dst=/e2e' armada-jobservice run --config /e2e/setup/jobservice.yaml docker run -v ${PWD}/e2e:/e2e -v ${PWD}/third_party/airflow:/code --workdir /code -e ARMADA_SERVER=server -e ARMADA_PORT=50051 -e JOB_SERVICE_HOST=jobservice -e JOB_SERVICE_PORT=60003 --entrypoint python3 --network=kind armada-airflow-operator-builder:latest -m pytest -v -s /code/tests/integration/test_airflow_operator_logic.py docker rm -f jobservice