Skip to content

Commit

Permalink
Minor naming fixes in midPoint dockerization
Browse files Browse the repository at this point in the history
  • Loading branch information
mederly committed Sep 19, 2018
1 parent 2351182 commit 5fa66bd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
16 changes: 7 additions & 9 deletions midpoint/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ services:
networks:
- back
volumes:
- midpoint_mysql:/var/lib/mysql
- midpoint_data:/var/lib/mysql

midpoint-server:
build: ./midpoint-server/
Expand Down Expand Up @@ -45,21 +45,19 @@ services:
secrets:
- m_database_password.txt
- m_keystore_password.txt
- source: m_sp-key.pem
target: shib_sp-key.pem
- source: m_host-key.pem
target: host-key.pem
- m_sp-key.pem
- m_host-key.pem
volumes:
- midpoint_home:/opt/midpoint/var
- type: bind
source: ./configs-and-secrets/midpoint/shibboleth/sp-cert.pem
target: /etc/shibboleth/sp-cert.pem
- type: bind
source: ./configs-and-secrets/midpoint/shibboleth/shibboleth2.xml
target: /etc/shibboleth/shibboleth2.xml
- type: bind
source: ./configs-and-secrets/midpoint/shibboleth/idp-metadata.xml
target: /etc/shibboleth/idp-metadata.xml
- type: bind
source: ./configs-and-secrets/midpoint/shibboleth/sp-cert.pem
target: /etc/shibboleth/sp-cert.pem
- type: bind
source: ./configs-and-secrets/midpoint/httpd/host-cert.pem
target: /etc/pki/tls/certs/host-cert.pem
Expand All @@ -82,5 +80,5 @@ secrets:
file: ./configs-and-secrets/midpoint/application/keystore_password.txt

volumes:
midpoint_mysql:
midpoint_data:
midpoint_home:
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ export ENV=${ENV//[; ]/_}
export USERTOKEN=${USERTOKEN//[; ]/_}

echo "Linking secrets and config files; using authentication: $AUTHENTICATION"
ln -sf /run/secrets/shib_sp-key.pem /etc/shibboleth/sp-key.pem
ln -sf /run/secrets/host-key.pem /etc/pki/tls/private/host-key.pem
ln -sf /run/secrets/m_sp-key.pem /etc/shibboleth/sp-key.pem
ln -sf /run/secrets/m_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

httpd-shib-foreground &
Expand Down

0 comments on commit 5fa66bd

Please sign in to comment.