Skip to content

Commit

Permalink
Update Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentAntoine committed Jan 19, 2024
1 parent 28d26d4 commit d55e815
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 @@ -73,12 +73,12 @@ docker-push-pipeline:
docker-build-forklift:
docker build -f "infra/docker/Dockerfile.Forklift" . -t forklift:$(VERSION)
docker-run-data-warehouse:
git clone --depth=1 --branch=master https://github.com/MTES-MCT/monitorfish.git ./data_warehouse/tests/test_data/external/monitorfish && \
git clone --depth=1 --branch=master https://github.com/MTES-MCT/monitorfish.git ./data_warehouse/tests/test_data/external/monitorfish || echo "Monitorfish repository already present - skipping git clone" && \
export DATA_WAREHOUSE_PASSWORD=password && \
export DATA_WAREHOUSE_USER=clickhouse_user && \
docker compose -f ./infra/data_warehouse/docker-compose.yml -f ./infra/data_warehouse/docker-compose-test-data.yml up -d --remove-orphans
docker-test-forklift: docker-run-data-warehouse
docker run --network host -v /var/run/docker.sock:/var/run/docker.sock -u forklift:$(DOCKER_GROUP) --env-file data_warehouse/.env.test forklift:$(VERSION) coverage run -m pytest --pdb tests
docker run --network host -v /var/run/docker.sock:/var/run/docker.sock -u forklift:$(DOCKER_GROUP) --env-file data_warehouse/.env.test forklift:$(VERSION) coverage run -m pytest --pdb --ignore=tests/test_data/external tests
docker-tag-forklift:
docker tag forklift:$(VERSION) ghcr.io/mtes-mct/monitorfish/forklift:$(VERSION)
docker-push-forklift:
Expand Down

0 comments on commit d55e815

Please sign in to comment.