Skip to content

Commit

Permalink
Start a Postgres container for tests-e2e-airflow Make target.
Browse files Browse the repository at this point in the history
  • Loading branch information
richscott committed Mar 31, 2023
1 parent 1dd86fd commit b9b406c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b9b406c

Please sign in to comment.