Skip to content
Permalink
Newer
Older
100755 30 lines (27 sloc) 795 Bytes
Sep 27, 2018
1
#!/bin/bash
2
3
function normalize_path()
4
{
5
# Remove all /./ sequences.
6
local path=${1//\/.\//\/}
7
8
# Remove dir/.. sequences.
9
while [[ $path =~ ([^/][^/]*/\.\./) ]]
10
do
11
path=${path/${BASH_REMATCH[0]}/}
12
done
13
echo $path
14
}
15
16
cd "$(dirname "$0")"
17
./download-midpoint
18
docker build --tag tier/midpoint:latest midpoint-server
19
echo "---------------------------------------------------------------------------------------"
20
echo "The midPoint containers were successfully built. To start them, execute the following:"
21
echo ""
22
echo "(for simple demo)"
23
echo ""
24
echo "$ cd" $(normalize_path `pwd`/../demo/simple)
25
echo "$ docker-compose up --build"
26
echo ""
27
echo "(for complex demo)"
28
echo ""
29
echo "$ cd" $(normalize_path `pwd`/../demo/complex)
30
echo "$ docker-compose up --build"
You can’t perform that action at this time.