From b15a8b250d64cb07a57bef6aa3346df8931ab8a2 Mon Sep 17 00:00:00 2001 From: jekuaitk Date: Fri, 4 Aug 2023 11:19:03 +0200 Subject: [PATCH 1/2] SERV-699: Added test service profile to mock idps --- README.md | 14 ++++++++++++++ docker-compose.override.yml | 4 ++++ 2 files changed, 18 insertions(+) diff --git a/README.md b/README.md index e91ae44b..2e0a4eba 100644 --- a/README.md +++ b/README.md @@ -145,6 +145,20 @@ We use [OpenId Connect Server Mock](https://github.com/Soluto/oidc-server-mock). script](https://github.com/itk-dev/devops_itkdev-docker#helper-scripts) is used for development. +Start docker compose show with the `test` +[profile](https://docs.docker.com/compose/profiles/): + +```sh +docker compose --profile test up --detach +``` + +Remember to add `--profile test` when stopping (or downing) to stop (or down) +all containers: + +```sh +docker compose --profile test stop +``` + See [`docker-compose.override.yml`](docker-compose.override.yml) for the configuration of the mocked IdPs (`idp-admin` and `idp-board-member`). diff --git a/docker-compose.override.yml b/docker-compose.override.yml index 5875d4ed..95a231e9 100644 --- a/docker-compose.override.yml +++ b/docker-compose.override.yml @@ -32,6 +32,8 @@ services: image: ghcr.io/soluto/oidc-server-mock:latest # Let this container be accessible both internally and externally on the same domain. container_name: idp-admin.${COMPOSE_DOMAIN} + profiles: + - test networks: - app - frontend @@ -125,6 +127,8 @@ services: image: ghcr.io/soluto/oidc-server-mock:latest # Let this container be accessible both internally and externally on the same domain. container_name: idp-board-member.${COMPOSE_DOMAIN} + profiles: + - test networks: - app - frontend From be70f7bf89fad830eb54070a7a7138dc1ea205df Mon Sep 17 00:00:00 2001 From: jekuaitk Date: Fri, 4 Aug 2023 11:24:04 +0200 Subject: [PATCH 2/2] SERV-699: Updated CHANGELOG --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d4045409..ca51217c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,7 +15,7 @@ about writing changes to this log. - [PR-380](https://github.com/itk-dev/naevnssekretariatet/pull/380) Added [OpenId Connect Server Mock](https://github.com/Soluto/oidc-server-mock) for mocking - OIDC-login during development. + OIDC IdPs during development. ## [1.5.2]