Skip to content

Instantly share code, notes, and snippets.

@pskopek
Last active October 22, 2024 14:23
Show Gist options
  • Save pskopek/0d296beda251c89d914685ffc381c1f8 to your computer and use it in GitHub Desktop.
Save pskopek/0d296beda251c89d914685ffc381c1f8 to your computer and use it in GitHub Desktop.
Shell Script to install Keycloak SAML Adapter using WildFly Galleon
export PATH_GALLEON=/home/pskopek/tmp/galleon/galleon-6.0.3.Final
# usage ./galleon_pack_test.sh <dir_name> <keycloak_saml_adapter_version> <wildfy_version>
rm -rf $1
java -jar $PATH_GALLEON/bin/galleon-cli.jar install wildfly:current#${3:-33.0.2.Final} --dir=$1 --layers=ee-core-profile-server,jaxrs-server,datasources-web-server,deployment-scanner,embedded-activemq,ejb,webservices,undertow-https
java -jar $PATH_GALLEON/bin/galleon-cli.jar install org.wildfly:wildfly-datasources-galleon-pack:9.0.0.Final --dir=$1 --layers=postgresql-driver
java -jar $PATH_GALLEON/bin/galleon-cli.jar install org.keycloak:keycloak-saml-adapter-galleon-pack:$2 --dir=$1 --layers=keycloak-client-saml,keycloak-client-saml-ejb
echo "Checking the installation results:"
echo "----------------------------------"
find $1/ -name "standalone*.xml" | xargs grep keycloak
find $1/ -name "*keycloak*.jar"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment