[keycloak-user] Setting web context path and adding providers in Dockerfile

Sushil Singh sushil.singh at guavus.com
Tue Nov 19 03:00:49 EST 2019


Are you using kubernetes?? I have done a similar thing for kubernetes
________________________________
From: keycloak-user-bounces at lists.jboss.org <keycloak-user-bounces at lists.jboss.org> on behalf of Sebastian Rus <russebastian.ui at gmail.com>
Sent: 19 November 2019 13:01
To: keycloak-user at lists.jboss.org <keycloak-user at lists.jboss.org>
Subject: [keycloak-user] Setting web context path and adding providers in Dockerfile

I'm struggling with extending keycloak's docker image, so that I could
change the default web-context "/auth" path
in /opt/jboss/keycloak/standalone/configuration/standalone.xml
and /opt/jboss/keycloak/domain/configuration/domain.xml files. I tried to
use jboss-cli.sh to accomplish it, but the following Dockerfile:

FROM jboss/keycloak:7.0.0
COPY startup-config.cli /opt/jboss/tools/cli/startup-config.cli
RUN /opt/jboss/keycloak/bin/jboss-cli.sh
--file="/opt/jboss/tools/cli/startup-config.cli"
ENV KEYCLOAK_USER=admin
ENV KEYCLOAK_PASSWORD=admin

startup-config.cli:
/subsystem=keycloak-server:write-attribute(name=web-context,value=keycloak/auth)

build command ends with "No connection to the controller."

I also would like to add some custom providers to the <providers> section
of standalone.xml file:

       <providers>           ...
<provider>module:x.y.z.some-custom-provider</provider>
</providers>

Is it possible to edit that xml files using custom Dockerfile and
extending default keycloak image?

I will be extremally grateful for help.


Best regards,

Sebastian
_______________________________________________
keycloak-user mailing list
keycloak-user at lists.jboss.org
https://lists.jboss.org/mailman/listinfo/keycloak-user


More information about the keycloak-user mailing list