Open supersaiyane opened 2 years ago
what is the port 8596? are you using default configuration from the repo?
Aahh its 8080, got it typo.
Have resolved this Issue by
Though the issue is not resolved, this the way around i did.
Dockerfile
FROM dockerhub/keycloak:1.23.3-generic
COPY --chown=jboss ./config.batch /tmp/config.batch
COPY ./divoc.json /opt/jboss/keycloak/divoc.json
RUN cd $JBOSS_HOME \
&& ./bin/jboss-cli.sh --file=/tmp/config.batch \
&& rm -rf $JBOSS_HOME/standalone/configuration/standalone_xml_history \
&& rm -rf $JBOSS_HOME/standalone/data \
&& rm -rf $JBOSS_HOME/standalone/tmp \
&& rm -rf /tmp/config.batch
config.batch
embed-server --std-out=echo --server-config=standalone-ha.xml
batch
/system-property=jboss.as.management.blocking.timeout:add(value=900)
/subsystem=deployment-scanner/scanner=default:write-attribute(name=deployment-timeout,value=900)
/subsystem=transactions:write-attribute(name=default-timeout,value=900)
run-batch
stop-embedded-server
Then added env below to the keycloak deployment yaml
- name: KEYCLOAK_IMPORT
value: "/opt/jboss/keycloak/divoc.json -Dkeycloak.migration.realmName='divoc' -Dkeycloak.profile.feature.upload_scripts=enabled"
Not able to upload Divoc Realm
To Reproduce
Create Keycloak DB and execute following commands
Create Registry DB and execute the following commands
Deploy Keycloak and registry with appropriate env values in kubernetes.
4 . Use REST API
Request 1
Request 2
RESTful command: POST URL: https://KEYCLOAKSERVER/auth/admin/realms Header: Copy the access_token value and past the token value into the authorization.
Body: <@Divoc Realm as json> raw JSON(application/json)
curl --location --request POST 'http://localhost:8080/auth/admin/realms' \ --header 'Authorization: bearer\
--header 'Content-Type: application/json' \
--data-raw ''