Keycloak with data provisioning with H2.
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/.
docker run -P -it cchantep/keycloak:<version>
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> .
Content type
Image
Digest
Size
279.5 MB
Last updated
over 5 years ago
docker pull cchantep/keycloak:12.0.4