-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into 3.9-SNAPSHOT-stable
# Conflicts: # demo/complex/grouper-daemon/Dockerfile # demo/complex/grouper-ui/Dockerfile # download-midpoint # midpoint/README.md # midpoint/build.sh # midpoint/midpoint-server/container_files/httpd/conf/midpoint.conf.auth.shibboleth
- Loading branch information
Showing
110 changed files
with
1,637 additions
and
547 deletions.
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| demo | ||
| .git | ||
| tests |
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,28 +1,29 @@ | ||
| [](https://jenkins.testbed.tier.internet2.edu/job/docker/job/midPoint_container/job/master/) | ||
|
|
||
| This repository contains sources for TIER-supported images related to [Evolveum midPoint](http://midpoint.evolveum.com). | ||
| This repository contains sources for TIER-supported [midPoint](http://midpoint.evolveum.com) image. | ||
|
|
||
| # Images | ||
| - `midpoint` contains the midPoint application along with some TIER-specific components: Apache reverse proxy with optional Shibboleth filter and TIER Beacon. | ||
| - `midpoint-mariadb` hosts the default MariaDB database tailored to meet midPoint needs. It can be exchanged for another repository implementation. | ||
| The image contains the midPoint application along with some TIER-specific components: Apache reverse proxy with optional Shibboleth filter and TIER Beacon. | ||
|
|
||
| # Supported tags | ||
| These tags apply to both containers: | ||
| - latest | ||
| - midPoint version-specific tags, e.g. 3.9, 3.9.1, 4.0, etc. | ||
|
|
||
| # Content | ||
| - `midpoint` directory contains build instructions for both containers (`midpoint` and `midpoint-mariadb`), | ||
| - `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` and `midpoint-mariadb` containers themselves please see [Dockerized midPoint](https://spaces.at.internet2.edu/display/MID/Dockerized+midPoint) wiki page. | ||
| - For the `midpoint` image and container themselves please see [Dockerized midPoint](https://spaces.at.internet2.edu/display/MID/Dockerized+midPoint) wiki page. | ||
| - For the complex demo please see [midPoint - Grouper integration demo](https://spaces.at.internet2.edu/display/MID/midPoint+-+Grouper+integration+demo) wiki page. | ||
|
|
||
| This is a work in progress. For its current status please see [Status of the work](https://spaces.at.internet2.edu/display/MID/Status+of+the+work). |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| #!/bin/bash | ||
|
|
||
| cd "$(dirname "$0")" | ||
| SKIP_DOWNLOAD=0 | ||
| while getopts "nh?" opt; do | ||
| case $opt in | ||
| n) SKIP_DOWNLOAD=1 ;; | ||
| h | ?) echo "Options: -n skip download" ; exit 0 ;; | ||
| *) echo "Unknown option: $opt" ; exit 1 ;; | ||
| esac | ||
| done | ||
| if [ "$SKIP_DOWNLOAD" = "0" ]; then ./download-midpoint; fi | ||
| docker build --tag tier/midpoint:latest . | ||
| 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 complex demo)" | ||
| echo "" | ||
| echo "$ cd" $(pwd)/demo/complex | ||
| echo "$ docker-compose up --build" |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,2 @@ | ||
| maintainer="tier" | ||
| imagename="midpoint" | ||
| imagename_data="midpoint-mariadb" |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
|
|
||
| Timeout 2400 | ||
| ProxyTimeout 2400 | ||
| ProxyBadHeader Ignore | ||
|
|
||
| ProxyPass /midpoint ajp://localhost:9090/midpoint timeout=2400 retry=0 |
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
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| #!/bin/bash | ||
|
|
||
| (set -o pipefail ; curl -k -f https://localhost:443/midpoint/actuator/health | tr -d '[:space:]' | grep -q "\"status\":\"UP\"") || exit 1 |
File renamed without changes.
File renamed without changes.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| #!/bin/bash | ||
|
|
||
| echo "Linking secrets and config files; using authentication: $AUTHENTICATION" | ||
| ln -sf /run/secrets/mp_sp-key.pem /etc/shibboleth/sp-key.pem | ||
| ln -sf /run/secrets/mp_host-key.pem /etc/pki/tls/private/host-key.pem | ||
| ln -sf /etc/httpd/conf.d/midpoint.conf.auth.$AUTHENTICATION /etc/httpd/conf.d/midpoint.conf | ||
| ln -sf /etc/httpd/conf.d/shib.conf.auth.$AUTHENTICATION /etc/httpd/conf.d/shib.conf | ||
| ln -sf /etc/httpd/conf.modules.d/00-shib.conf.auth.$AUTHENTICATION /etc/httpd/conf.modules.d/00-shib.conf | ||
|
|
||
| case $AUTHENTICATION in | ||
| shibboleth) | ||
| echo "*** Starting httpd WITH Shibboleth support" | ||
| httpd-shib-foreground | ||
| ;; | ||
| internal) | ||
| echo "*** Starting httpd WITHOUT Shibboleth support" | ||
| rm -f /etc/httpd/logs/httpd.pid /run/httpd/httpd.pid | ||
| httpd -DFOREGROUND | ||
| ;; | ||
| *) | ||
| echo "*** Couldn't start httpd: unsupported AUTHENTICATION variable value: '$AUTHENTICATION'" | ||
| sleep infinity | ||
| ;; | ||
| esac |
Oops, something went wrong.