feat: custom theme loading

This commit is contained in:
decentral1se
2021-10-21 12:55:39 +02:00
parent b037067a2e
commit 3b9d0237b2
4 changed files with 29 additions and 0 deletions

12
entrypoint.sh.tmpl Normal file
View File

@ -0,0 +1,12 @@
#!/bin/bash
set -e
{{ if eq (env "CUSTOM_THEME_ENABLED") "1" }}
microdnf update && microdnf install git
git clone "$CUSTOM_THEME_URL" "/opt/jboss/keycloak/themes/$CUSTOM_THEME_NAME"
{{ end }}
# upstream entrypoint
# https://github.com/keycloak/keycloak-containers/blob/aa2e5515ccb05116e49ab38839d8fcfdd17c45aa/server/Dockerfile#L30
/usr/local/bin/entrypoint.sh "$@"