-
Notifications
You must be signed in to change notification settings - Fork 0
Keycloak custom theme #35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
fjugipe
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks nice and works really great 👍
I was thinking since we need to use the keycloak-theme provider container in the actual deployment. What if we change the docker-compose.yml to do that aswell?
For example:
add depends_on to the auth service:
auth:
image: quay.io/keycloak/keycloak:24.0
depends_on:
init-custom-keycloak-themes:
condition: service_completed_successfully
and change auth volumes to:
volumes:
- ./keycloak/config/realm_export/local_dev:/opt/keycloak/data/import
- ./keycloak/providers:/opt/keycloak/providers/
- ./keycloak/themes:/opt/keycloak/themes/
- custom-themes:/opt/keycloak/themes/
add make a new init-custom-keycloak-themes service:
init-custom-keycloak-themes:
image: ghcr.io/eumetnet/dev-portal/keycloak-theme:latest
command: sh -c "cp -R /theme/* /custom-themes/"
build:
context: keycloak
volumes:
- custom-themes:/custom-themes
restart: "no"
and a custom-themes volume to the the whole stack:
volumes:
custom-themes:
Since the manage-services.sh is using -v with ./manage-services remove it will work just like a ephemeral volume in k8 and we can test how we will do it in production.
I know that in this context it is unnecessary complexation of the code, but any thoughts on this?
Adds a custom Eumetnet gdpr-theme for Keycloak, which is also packaged as a Docker image for Kubernetes init container deployment.
<username>-> Required user actions -> Terms and Conditions -> SaveTheme will be deployed as init container in Codecentric Keycloak Helm chart, copying files to shared volume mounted by main Keycloak container.