Skip to content
Permalink
master
Go to file
@mederly
Latest commit f30d47e Nov 6, 2019 History
This is basically a clone of demo/complex2s from the laboratory branch.

Main differences:

1. Fixed "unknown host directory" error message when building
grouper_data container. The initialization script is no longer run
at build time in grouper_data. It is instead run at first start of
grouper_daemon container, when LDAP server is already up.

2. banderson and sysadmingroup is now created when building LDAP container.
So the Grouper resource test action can be executed directly, without
the need to prepare midPoint objects for banderson & sysadmingroup first.

Note that tests were not updated yet.
1 contributor

Users who have contributed to this file

executable file 48 lines (46 sloc) 1.44 KB
#!/bin/bash
cd "$(dirname "$0")"
source common.bash
SKIP_DOWNLOAD=0
REFRESH=""
while getopts "nhr?" opt; do
case $opt in
n)
SKIP_DOWNLOAD=1
;;
r)
result=$(docker ps -a | grep $maintainer/$imagename:$tag)
if [ ! -z "$result" ]; then
echo "Cleaning up $maintainer/$imagename:$tag..."
docker rm -f $(docker ps -a | grep $maintainer/$imagename:$tag | awk '{print $1}')
docker rmi -f $maintainer/$imagename:$tag
echo "Done"
fi
REFRESH="--no-cache --pull"
echo "Using 'refresh' mode: $REFRESH"
;;
h | ?)
echo "Options: -n skip download"
echo " -r refresh mode: uses --no-cache --pull and removes container and image before build"
exit 0
;;
*)
echo "Unknown option: $opt"
exit 1
;;
esac
done
if [ "$SKIP_DOWNLOAD" = "0" ]; then ./download-midpoint.sh || exit 1; fi
docker build $REFRESH --tag $maintainer/$imagename:$tag --build-arg maintainer=$maintainer --build-arg imagename=$imagename . || exit 1
echo "---------------------------------------------------------------------------------------"
echo "The midPoint containers were successfully built. To start them, execute the following:"
echo ""
echo "(for simple demo)"
echo ""
echo "$ cd" $(pwd)/demo/simple
echo "$ docker-compose up"
echo ""
echo "(for Grouper integration demo)"
echo ""
echo "$ cd" $(pwd)/demo/grouper
echo "$ docker-compose up --build"
You can’t perform that action at this time.