Skip to content

Commit

Permalink
Set base url riddp
Browse files Browse the repository at this point in the history
  • Loading branch information
barroco committed Jul 7, 2023
1 parent 1816a62 commit d551b6d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions monitoring/mock_uss/run_locally_riddp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ AUD=${MOCK_USS_TOKEN_AUDIENCE:-localhost,host.docker.internal}
CONTAINER_NAME=${MOCK_CONTAINER_NAME:-"mock_uss_riddp"}

PORT=${PORT:-8073}
BASE_URL="http://${MOCK_USS_TOKEN_AUDIENCE:-host.docker.internal}:${PORT}"

if [ "$CI" == "true" ]; then
docker_args="--add-host host.docker.internal:host-gateway" # Required to reach other containers in Ubuntu (used for Github Actions)
Expand All @@ -26,6 +27,7 @@ docker container rm -f "${CONTAINER_NAME}" || echo "No pre-existing ${CONTAINER_
docker run ${docker_args} --name "${CONTAINER_NAME}" \
-e MOCK_USS_AUTH_SPEC="${AUTH}" \
-e MOCK_USS_DSS_URL="${DSS}" \
-e MOCK_USS_BASE_URL="${BASE_URL}" \
-e MOCK_USS_PUBLIC_KEY="${PUBLIC_KEY}" \
-e MOCK_USS_TOKEN_AUDIENCE="${AUD}" \
-e MOCK_USS_SERVICES="riddp" \
Expand Down

0 comments on commit d551b6d

Please sign in to comment.