Skip to content

Commit

Permalink
Merge pull request #381 from itk-dev/feature/SERV-699-add-profile-to-…
Browse files Browse the repository at this point in the history
…mock-oidc-idp

SERV-699: Added test service profile to mock idps
  • Loading branch information
jekuaitk authored Aug 4, 2023
2 parents 6508ba5 + be70f7b commit 4c32c96
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`).

Expand Down
4 changes: 4 additions & 0 deletions docker-compose.override.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4c32c96

Please sign in to comment.