diff --git a/entrypoint.sh b/entrypoint.sh new file mode 100644 index 0000000..4740178 --- /dev/null +++ b/entrypoint.sh @@ -0,0 +1,17 @@ +#!/bin/bash +set -e + +# Source the load_env.sh script to load environment variables +echo "Loading environment variables..." +. /opt/keycloak/load_env.sh + +# Ensure required variables are set +if [ -z "$KC_INSTALL_DIR" ] || [ -z "$KC_START" ]; then + echo "Required environment variables (KC_INSTALL_DIR, KC_START) are not set." + exit 1 +fi + +# Start Keycloak +echo "Starting Keycloak..." +exec $KC_INSTALL_DIR/bin/kc.sh $KC_START $KC_DB_OPT --features=oid4vc-vci +echo "$KC_INSTALL_DIR/bin/kc.sh $KC_START $KC_DB_OPT --features=oid4vc-vci"