Skip to content

Commit

Permalink
Adapt demo/shibboleth (MP_MEM_*/MP_JAVA_OPTS)
Browse files Browse the repository at this point in the history
  • Loading branch information
mederly committed Oct 3, 2018
1 parent 5136560 commit ceed5ac
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 17 deletions.
3 changes: 2 additions & 1 deletion demo/shibboleth/.env
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ REPO_DATABASE=registry
REPO_USER=registry_user
REPO_MISSING_SCHEMA_ACTION=create
REPO_UPGRADEABLE_SCHEMA_ACTION=stop
MP_MEM=2048m
MP_MEM_MAX=2048m
MP_MEM_INIT=1024m
32 changes: 16 additions & 16 deletions demo/shibboleth/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ services:
- REPO_UPGRADEABLE_SCHEMA_ACTION
- REPO_SCHEMA_VERSION_IF_MISSING
- REPO_SCHEMA_VARIANT
- MP_MEM
- MP_MEM_MAX
- MP_MEM_INIT
- MP_JAVA_OPTS
- TIER_BEACON_OPT_OUT
networks:
- net
Expand All @@ -43,6 +45,12 @@ services:
- mp_host-key.pem
volumes:
- midpoint_home:/opt/midpoint/var
- type: bind
source: ./configs-and-secrets/midpoint/httpd/host-cert.pem
target: /etc/pki/tls/certs/host-cert.pem
- type: bind
source: ./configs-and-secrets/midpoint/httpd/host-cert.pem
target: /etc/pki/tls/certs/cachain.pem
- type: bind
source: ./configs-and-secrets/midpoint/shibboleth/shibboleth2.xml
target: /etc/shibboleth/shibboleth2.xml
Expand All @@ -52,19 +60,11 @@ services:
- 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
- type: bind
source: ./configs-and-secrets/midpoint/httpd/host-cert.pem
target: /etc/pki/tls/certs/cachain.pem

directory:
build: ./directory/
expose:
- "389"
ports:
- "389:389"
- 389:389
networks:
- net
volumes:
Expand All @@ -74,28 +74,28 @@ services:
build: ./idp/
depends_on:
- directory
ports:
- 4443:4443
environment:
- JETTY_MAX_HEAP=64m
- JETTY_BROWSER_SSL_KEYSTORE_PASSWORD=password
- JETTY_BACKCHANNEL_SSL_KEYSTORE_PASSWORD=password
networks:
- net
ports:
- "4443:4443"

networks:
net:
driver: bridge

secrets:
mp_host-key.pem:
file: ./configs-and-secrets/midpoint/httpd/host-key.pem
mp_sp-key.pem:
file: ./configs-and-secrets/midpoint/shibboleth/sp-key.pem
mp_database_password.txt:
file: ./configs-and-secrets/midpoint/application/database_password.txt
mp_keystore_password.txt:
file: ./configs-and-secrets/midpoint/application/keystore_password.txt
mp_host-key.pem:
file: ./configs-and-secrets/midpoint/httpd/host-key.pem
mp_sp-key.pem:
file: ./configs-and-secrets/midpoint/shibboleth/sp-key.pem

volumes:
midpoint_mysql:
Expand Down

0 comments on commit ceed5ac

Please sign in to comment.