Skip to content

Commit e677ad5

Browse files
committed
Fix https required for Docker Desktop 4.42.1.
1 parent de787a7 commit e677ad5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

hub/src/test/resources/docker-compose-minio-localhost-hub.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ services:
3838
- |
3939
set -euxo pipefail
4040
41+
# fix for Docker Desktop 4.42.1 based on https://github.com/keycloak/keycloak/discussions/12155
42+
/opt/keycloak/bin/kcadm.sh update --server http://keycloak:${KEYCLOAK_HTTP_PORT} --realm master --user admin --password admin realms/master -s sslRequired=NONE
43+
/opt/keycloak/bin/kcadm.sh update --server http://keycloak:${KEYCLOAK_HTTP_PORT} --realm cryptomator --user admin --password admin realms/cryptomator -s sslRequired=NONE
44+
4145
# enable direct access grants in client cryptomator and cryptomatorhub for integration testing and manual exploration
4246
CLIENT_ID=`/opt/keycloak/bin/kcadm.sh get clients --server http://keycloak:${KEYCLOAK_HTTP_PORT} --realm cryptomator --user admin --password admin --fields id -q clientId=cryptomator | grep "id" | sed -e 's/.*"id" : //g' | sed -e 's/"//g'`
4347
/opt/keycloak/bin/kcadm.sh update clients/$$CLIENT_ID --server http://keycloak:${KEYCLOAK_HTTP_PORT} --realm cryptomator --user admin --password admin -s "directAccessGrantsEnabled=true"
@@ -46,6 +50,7 @@ services:
4650
# allow redirect URI from localhost for "attended" mode for client cryptomatorhub, i.e. dev wants to interact directly with the running setup
4751
CLIENT_ID_CRYPTOMATORHUB=`/opt/keycloak/bin/kcadm.sh get clients --server http://keycloak:${KEYCLOAK_HTTP_PORT} --realm cryptomator --user admin --password admin --fields id -q clientId=cryptomatorhub | grep "id" | sed -e 's/.*"id" : //g' | sed -e 's/"//g'`
4852
/opt/keycloak/bin/kcadm.sh update clients/$$CLIENT_ID_CRYPTOMATORHUB --server http://keycloak:${KEYCLOAK_HTTP_PORT} --realm cryptomator --user admin --password admin -s 'redirectUris=["http://localhost:${HUB_PORT}/*"]'
53+
4954
depends_on:
5055
keycloak:
5156
condition: service_healthy

0 commit comments

Comments
 (0)