[keycloak-dev] Server provisioning

Stian Thorgersen stian at redhat.com
Tue Oct 1 11:30:22 EDT 2013


I've started work on a server bundle and an openshift quickstart. The server bundle contains a main class that starts Undertow with Keycloak deployed. It's available at:

https://github.com/stianst/keycloak/tree/server

Build it, unzip it and run:

# keycloak-server-1.0-alpha-1/bin/keycloak.sh

By default it starts on localhost:8081, but this can be set with system properties for example:

# keycloak-server-1.0-alpha-1/bin/keycloak.sh -Dkeycloak.host=hostname -Dkeycloak.http.port=8080

It doesn't support https yet.

This server bundle is the basis for the openshift quickstart. To start Keycloak on openshift run:

# rhc create-app keycloak diy-0.1 --from-code https://github.com/stianst/keycloak-openshift-quickstart.git

For provisioning on openshift there's 3 issues:

* Configuring mail settings - this is done through system properties atm, which is less than ideal for openshift
* Configuring social settings - same as above
* Deploy admin console

If social and mail settings was configured on a realm it could be configured through the admin console instead of through system properties. The admin console would be easier to deploy if it was moved into a separate jar module (web fragment). As a jar it can be included on the classpath and the css/htmls will be available (this is how forms is "deployed").


More information about the keycloak-dev mailing list