[keycloak] Update création d'un admin dans hooks/post_deploy #23

Closed
by Ghost opened 2 years ago · 0 comments
Ghost commented 2 years ago

La doc de Keycloak v17 indique d'utiliser le script bin/kc.sh pour créer un utilisateur admin.

Voici ce que ça donnerait dans le script post_deploy#L34

## XXXvlab: taking the first container
container_id="${containers[0]}"
docker exec "$container_id" \
       KEYCLOAK_ADMIN=admin \
       KEYCLOAK_ADMIN_PASSWORD=admin \
       bin/kc.sh start

PS: je n'ai pas testé car monn env de dev n'est pas prêt ;)

La doc de [Keycloak v17](https://www.keycloak.org/docs/latest/server_admin/index.html#creating-the-account-remotely) indique d'utiliser le script `bin/kc.sh` pour créer un utilisateur admin. Voici ce que ça donnerait dans le script [post_deploy#L34](https://git.myceliandre.fr/0k/0k-charms/src/commit/a872c9dfee002aee272abeb5930c48c7bf828707/keycloak/hooks/post_deploy#L34) ``` ## XXXvlab: taking the first container container_id="${containers[0]}" docker exec "$container_id" \ KEYCLOAK_ADMIN=admin \ KEYCLOAK_ADMIN_PASSWORD=admin \ bin/kc.sh start ``` PS: je n'ai pas testé car monn env de dev n'est pas prêt ;)
Ghost closed this issue 2 years ago
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.