Release v1.0.0rc1
Some checks failed
CI / Checks (push) Has been cancelled

This commit is contained in:
2025-08-18 07:09:27 +02:00
commit d909391ee6
383 changed files with 22792 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 "$@"