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?
midPoint_container/container_files/usr-local-bin/start-midpoint.sh
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
executable file
35 lines (28 sloc)
1.01 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 | |
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 |