Import CEDAR Theme and Realm on OS X - metadatacenter-attic/cedar-docs GitHub Wiki

Stop Keycloak

You can do this by pressing Ctrl-C in its console.

Import CEDAR Theme

Set up CEDAR theme:

mkdir $KEYCLOAK_HOME/themes/cedar
goutil
cp -r keycloak/themes/cedar/* $KEYCLOAK_HOME/themes/cedar/

Import CEDAR Realm

Go to the directory where the config data is located:

goconf
cd keycloak/realms

Import the Keycloak realm:

$KEYCLOAK_HOME/bin/standalone.sh -Dkeycloak.migration.action=import \
-Dkeycloak.migration.provider=singleFile \
-Dkeycloak.migration.file=keycloak-realm.CEDAR.metadatacenter.orgx.json \
-Dkeycloak.migration.strategy=IGNORE_EXISTING

Stop the Keycloak server (by pressing Ctrl-C in its console).

Start the Keycloak server in standalone mode:

$KEYCLOAK_HOME/bin/standalone.sh

or

gokk
./standalone.sh

or

startkk