Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Do a minor cleanup
1. demo/plain -> demo/simple
2. updated README.MD
mederly committed Sep 27, 2018
1 parent ee9c5ac commit 882c8c9
Showing 16 changed files with 38 additions and 6 deletions.
1 change: 1 addition & 0 deletions Jenkinsfile
@@ -50,6 +50,7 @@ pipeline {
script {
try {
sh 'bin/test.sh &> debug'
sh 'echo Test output ; cat debug'
} catch (error) {
def error_details = readFile('./debug')
def message = "BUILD ERROR: There was a problem testing ${imagename}:${tag}. \n\n ${error_details}"
10 changes: 7 additions & 3 deletions README.md
@@ -9,14 +9,18 @@ The image contains the midPoint application along with some TIER-specific compon
- midPoint version-specific tags, e.g. 3.9, 3.9.1, 4.0, etc.

# Content
- `midpoint` directory contains build instructions for the `midpoint` image along with `docker-compose.yml` showing its basic use,
- `demo` directory contains three demonstration scenarios:
- the root directory contains build instructions for the `midpoint` image
- `demo` directory contains a couple of demonstration scenarios:
- `simple` to show simple composition of midPoint with the repository,
- `shibboleth` to show integration with Shibboleth IdP,
- `postgresql` to show how to change the repository implementation,
- `complex` to demonstrate more complex deployment of midPoint in a sample university environment, featuring midPoint along with Grouper, LDAP directory, RabbitMQ, Shibboleth IdP, source and target systems.

# Build instructions
Please see specific subdirectories: [midpoint](midpoint) and [demo/complex](demo/complex).
```
$ ./build.sh
```
You can then continue with one of demo composition, e.g. simple or complex one.

# Documentation
- For the `midpoint` image and container themselves please see [Dockerized midPoint](https://spaces.at.internet2.edu/display/MID/Dockerized+midPoint) wiki page.
30 changes: 30 additions & 0 deletions build.sh
@@ -0,0 +1,30 @@
#!/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"
3 changes: 0 additions & 3 deletions cleanup.sh

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 882c8c9

Please sign in to comment.