From cecdb1d958af71d8c256966276369407366e67ad Mon Sep 17 00:00:00 2001 From: Louise Davies Date: Tue, 1 Aug 2023 10:00:04 +0100 Subject: [PATCH] Fix docker localhost --- .github/config.env | 2 +- .github/workflows/ci-build.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/config.env b/.github/config.env index 24d2504e2..1e5012ea5 100644 --- a/.github/config.env +++ b/.github/config.env @@ -1,4 +1,4 @@ -ICAT_URL=https://localhost:8181 +ICAT_URL=https://host.docker.internal:8181 FACILITY=LILS ICAT_USERNAME=root ICAT_PASSWORD=pw diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index afa32c141..e769e7ae1 100644 --- a/.github/workflows/ci-build.yml +++ b/.github/workflows/ci-build.yml @@ -331,7 +331,7 @@ jobs: run: echo DATACITE_PASSWORD=${{ secrets.DATACITE_PASSWORD }} >> ./.github/config.env - name: Run minting api - run: docker run --env-file ./.github/config.env -p 8000:8000 harbor.stfc.ac.uk/icat/doi-mint-api + run: docker run --env-file ./.github/config.env -p 8000:8000 --add-host host.docker.internal:host-gateway harbor.stfc.ac.uk/icat/doi-mint-api # E2E tests - name: Setup Node.js