Skip to content
Permalink
master
Switch branches/tags

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?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 35 lines (28 sloc) 1.01 KB
#!/bin/bash
function check () {
local VARNAME=$1
if [ -z ${!VARNAME} ]; then
echo "*** Couldn't start midPoint: $VARNAME variable is undefined. Please check your Docker composition."
exit 1
fi
}
echo "Linking secrets"
for filepath in /run/secrets/*; do
label_file=`basename $filepath`
if [ "$label_file" == "mp_shibboleth_sp_keys.jks" ]; then
if [ ! -d "/etc/pki/mp" ]; then
mkdir /etc/pki/mp
fi
ln -sf /run/secrets/mp_shibboleth_sp_keys.jks /etc/pki/mp/sp-shibboleth-keys.jks
fi
done
# These variables have reasonable defaults in Dockerfile. So we will _not_ supply defaults here.
# The composer or user has to make sure they are well defined.
check MP_MEM_MAX
check MP_MEM_INIT
check MP_DIR
export MP_SET_midpoint_logging_alt_enabled=true
export MP_SET_midpoint_logging_alt_filename=/tmp/logmidpoint
export MP_SET_spring_profiles_active="`$MP_DIR/active-spring-profiles`"
export MP_SET_logging_path=/tmp/logtomcat
/opt/midpoint/bin/midpoint.sh 'container' &>/tmp/logmidpoint-console