-
I'd like to add an extension (provider) to KeyCloak which I run in a container. It works if I build a new container like this (Dockerfile):
I'd prefer not building my own image to keep things simple. Is it possible to add extensions in another way? I've already tried mapping a volume into the container like this:
The extension isn't detected, however, probably because it's in a subfolder. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Figured this out myself: If you specify an absolute path, you can also add single files as volumes in docker. Example (docker compose):
|
Beta Was this translation helpful? Give feedback.
-
here for kubernetes (with PVC) ...
ports:
- name: http
containerPort: 8080
readinessProbe:
httpGet:
path: /realms/master
port: 8080
volumeMounts:
- name: kc-jars-volume
mountPath: /opt/keycloak/providers/scim-for-keycloak-kc-23-2.0.0-free.jar
subPath: scim-for-keycloak-kc-23-2.0.0-free.jar
volumes:
- name: kc-jars-volume
persistentVolumeClaim:
claimName: kc-jars-pvc |
Beta Was this translation helpful? Give feedback.
-
without build it? ( |
Beta Was this translation helpful? Give feedback.
Figured this out myself: If you specify an absolute path, you can also add single files as volumes in docker. Example (docker compose):