Running a full database import from a Jboss Keycloak 15.1 export
$ docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES c4685d298bd5 quay.io/keycloak/keycloak-x:16.1.1 "/opt/keycloak/bin/k…" 14 minutes ago Up 14 minutes 0.0.0.0:8280->8080/tcp, 0.0.0.0:8543->8443/tcp keycloak $ docker exec -it c4685d298bd5 bash bash-4.4$ /opt/keycloak/bin/kc.sh import --file /tmp/imports/full-db-export-X.json -Dkeycloak.profile.feature.upload_scripts=enabled
Validate Export
- Master Realm gets dropped
- RBAC ad Quarkus realm get created
- Ingore ERROR org.key.services KC-SERVICES0010: Failed to add user ‘admin’ to realm ‘master’: user with username exists
Login via Admin Console with user admin/admin: http://localhost:8280/auth/admin again
Not 100 % sure but it seems we need to restart our docker instance now to reread the import data
$ docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES c4685d298bd5 quay.io/keycloak/keycloak-x:16.1.1 "/opt/keycloak/bin/k…" 30 minutes ago Up 30 minutes 0.0.0.0:8280->8080/tcp, 0.0.0.0:8543->8443/tcp keycloak $ docker stop c4685d298bd5 c4685d298bd5 $ docker start c4685d298bd5 c4685d298bd5
Validate Realm Import
Be First to Comment