Release v1.0.0
Some checks failed
CI / Checks (push) Failing after 13m2s

This commit is contained in:
2025-08-20 21:00:50 +02:00
commit b4338e2769
401 changed files with 23576 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
FROM quay.io/keycloak/keycloak:22.0.3
USER root
ADD keycloak/entrypoint.sh /entrypoint.sh
RUN mkdir /opt/kcsetup
RUN chown keycloak:root /opt/kcsetup
VOLUME /opt/kcsetup
USER keycloak
ENTRYPOINT ["/entrypoint.sh"]

14
services/keycloak/entrypoint.sh Executable file
View File

@@ -0,0 +1,14 @@
#!/bin/bash
set -e
if [ -d /opt/import ];then
if [ ! -f /opt/kcsetup/realm-imported ];then
echo "Importing realm from /opt/import..."
/opt/keycloak/bin/kc.sh import --dir /opt/import
touch /opt/kcsetup/realm-imported
else
echo "Realm already imported!"
fi
fi
exec /opt/keycloak/bin/kc.sh "$@"