Skip to content

Commit

Permalink
Fix issue in CI after switching to use host networking on backend doc…
Browse files Browse the repository at this point in the history
…ker-compose #499
  • Loading branch information
joelvdavies committed Apr 25, 2024
1 parent 7a4a5cf commit 6bffa3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,15 @@ jobs:
- name: Setup MongoDB
working-directory: ../inventory-management-system-api
run: |
python ./scripts/dev_cli.py --ci db-init --replicaSetMemberHost mongodb_container
python ./scripts/dev_cli.py --ci db-init --replicaSetMemberHost localhost
python ./scripts/dev_cli.py --ci db-import
# Use docker run here to test the actual built image
# Use same network as the MongoDB instance (which is generated by docker compose based on the folder
# name)
- name: Start inventory-management-system-api
run: |
docker run -d -p 8000:8000 --network=inventory-management-system-api_default \
docker run -d -p 8000:8000 --network=host \
--name inventory_management_system_api_container \
--env AUTHENTICATION__ENABLED=false \
--env API__TITLE="Inventory Management System API" \
Expand Down

0 comments on commit 6bffa3c

Please sign in to comment.