Sign inSign up

cchantep/keycloak

By cchantep

•Updated over 5 years ago

Keycloak with data provisioning

Image
0

271

cchantep/keycloak repository overview

⁠Keycloak with data provisioning

Keycloak with data provisioning with H2.

⁠Extend

Initial H2 database can be overwriten by copying a new /tmp/data.tar.gz (see Build).

H2 scripts to be executed before starting Keycloak can be copied as *.sql files to directory /tmp/keycloak-h2.d/.

⁠Usage

docker run -P -it cchantep/keycloak:<version>

⁠Build

Copy a data.tar.gz containing the file data/keycloak.mv.db .

These files can be archived from an existing Keycloak configured instance (with realms, users, ...) from the H2 files in the standalone/data directory (inside Keycloak home directory).

Also, it's possible to copy H2 scripts as *.sql files in the directory. These files are applied on the database before running Keycloak. It allows to update the DB according Docker environment. e.g. A file update-root-url.sql to update the Root URL according the Docker environment:

UPDATE CLIENT SET ROOT_URL='http://localhost:9000' WHERE CLIENT_ID='..';

Then:

docker build -t cchantep/keycloak:<version> .

Tag summary

Content type

Image

Digest

Size

279.5 MB

Last updated

over 5 years ago

docker pull cchantep/keycloak:12.0.4