[keycloak-dev] Reloading KeyCloak on the fly

Nekrasov Aleksandr a.nekrasov at ftc.ru
Wed Jun 22 00:10:28 EDT 2016


Hi,

We have the same problem. We need to deploy the artifacts to remote servers to check regression. Such features of our development process. And it requires a full server restart. Will be good doing it on the fly like Wildfly redeploy wars/ears on the fly without stopping.

From: keycloak-dev-bounces at lists.jboss.org [mailto:keycloak-dev-bounces at lists.jboss.org] On Behalf Of Mitya
Sent: Wednesday, June 22, 2016 12:53 AM
To: Marek Posolda; keycloak-dev at lists.jboss.org
Subject: Re: [keycloak-dev] Reloading KeyCloak on the fly

Hi Marek,

What I'm looking for is the way to reload KeyCloak modules (providers) on the fly, hopefully without killing admin session (since not only I have to restart KeyCloak, but also to relogin each time). I'm afraid KeycloakServer only sees changes to custom themes, not modules. Or am I missing something?

Mitya


Using KeycloakServer for development. It's using embedded undertow under the hood. Server restarted usually in few seconds and it sees the latest changes in your IDE if you run it directly from the IDE. See https://github.com/keycloak/keycloak/blob/master/misc/Testsuite.md#keycloak-server

Marek

On 17/06/16 16:41, Mitya wrote:
Hi,

I'm developing a KeyCloak extension which is packaged as two JBoss modules:
- the extension proper (custom authenticator + custom realm resource + custom admin theme);
- modified org.keycloak.keycloak-model-jpa (since Entity SPI is not yet available).

Each time I make changes, I have to go through a roundabout of stopping KeyCloak, deploying modules and starting KeyCloak again. This can happen as many as several dozen times a day; as soon as I roll a CI infrastructure, the build server will have to do the same. Needless to say, the process is pretty time-consuming; additionally, I'll have to grant permissions to the build server to restart a system service (KeyCloak is deployed as systemd unit). I've tried the following in jboss-cli:

[disconnected /] connect
[standalone at localhost<mailto:standalone at localhost>:9990 /] module remove --name=foo.bar.main
[standalone at localhost<mailto:standalone at localhost>:9990 /] module add --name=foo.bar.main --resources=... --dependencies=...
[standalone at localhost<mailto:standalone at localhost>:9990 /] reload

This doesn't help, despite WildFly reports to have redeployed and restarted KeyCloak. The updated modules are simply not picked up.

Am I missing something? KeyCloak developers, what would you recommend to speed-up the workflow?

Cheers,
Mitya





_______________________________________________

keycloak-dev mailing list

keycloak-dev at lists.jboss.org<mailto:keycloak-dev at lists.jboss.org>

https://lists.jboss.org/mailman/listinfo/keycloak-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-dev/attachments/20160622/26e953d8/attachment-0001.html 


More information about the keycloak-dev mailing list