Skip to content
Permalink
576b0d84e8
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 34 lines (31 sloc) 852 Bytes
#!/bin/bash
function normalize_path()
{
# Remove all /./ sequences.
local path=${1//\/.\//\/}
# Remove dir/.. sequences.
while [[ $path =~ ([^/][^/]*/\.\./) ]]
do
path=${path/${BASH_REMATCH[0]}/}
done
echo $path
}
cd "$(dirname "$0")"
./download-midpoint
cd midpoint-data
docker build --tag tier/midpoint-mariadb:latest .
cd ../midpoint-server
docker build --tag tier/midpoint:latest .
cd ..
echo "---------------------------------------------------------------------------------------"
echo "The midPoint containers were successfully built. To start them, execute the following:"
echo ""
echo "(for standalone execution)"
echo ""
echo "$ cd" `pwd`
echo "$ docker-compose up --build"
echo ""
echo "(for complex demo)"
echo ""
echo "$ cd" $(normalize_path `pwd`/../demo/complex)
echo "$ docker-compose up --build"