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/build.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
30 lines (27 sloc)
795 Bytes
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 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 | |
docker build --tag tier/midpoint:latest midpoint-server | |
echo "---------------------------------------------------------------------------------------" | |
echo "The midPoint containers were successfully built. To start them, execute the following:" | |
echo "" | |
echo "(for simple demo)" | |
echo "" | |
echo "$ cd" $(normalize_path `pwd`/../demo/simple) | |
echo "$ docker-compose up --build" | |
echo "" | |
echo "(for complex demo)" | |
echo "" | |
echo "$ cd" $(normalize_path `pwd`/../demo/complex) | |
echo "$ docker-compose up --build" |