Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
canvas-demo-techex17/shib-idp/bin/init-idp.sh
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
31 lines (23 sloc)
1.44 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export JAVA_HOME=/opt/jre-home | |
export PATH=$PATH:$JAVA_HOME/bin | |
cd /opt/shibboleth-idp/bin | |
# Remove existing config to build starts with an empty config | |
rm -r ../conf/ | |
echo "Please complete the following for your IdP environment:" | |
./build.sh -Didp.target.dir=/opt/shibboleth-idp init gethostname askscope metadata-gen | |
mkdir -p /ext-mount/customized-shibboleth-idp/conf/ | |
# Copy the essential and routinely customized config to out Docker mount. | |
cd .. | |
cp -r credentials/ /ext-mount/customized-shibboleth-idp/ | |
cp -r metadata/ /ext-mount/customized-shibboleth-idp/ | |
cp conf/{attribute-resolver.xml,attribute-filter.xml,cas-protocol.xml,idp.properties,ldap.properties,metadata-providers.xml,relying-party.xml,saml-nameid.xml} /ext-mount/customized-shibboleth-idp/conf/ | |
# Copy the basic UI components, which are routinely customized | |
cp -r views/ /ext-mount/customized-shibboleth-idp/ | |
mkdir /ext-mount/customized-shibboleth-idp/webapp/ | |
cp -r webapp/css/ /ext-mount/customized-shibboleth-idp/webapp/ | |
cp -r webapp/images/ /ext-mount/customized-shibboleth-idp/webapp/ | |
cp -r webapp/js/ /ext-mount/customized-shibboleth-idp/webapp/ | |
rm -r /ext-mount/customized-shibboleth-idp/views/user-prefs.js | |
echo "A basic Shibboleth IdP config and UI has been copied to ./customized-shibboleth-idp/ (assuming the default volume mapping was used)." | |
echo "Most files, if not being customized can be removed from what was exported/the local Docker image and baseline files will be used." |