-
Notifications
You must be signed in to change notification settings - Fork 29
Install
Michal Hlavac edited this page Feb 21, 2018
·
19 revisions
Installation is pretty simple. Best and recommended way to run application is via docker compose. There are several docker-compose.yml templates for various scenarios. Anyway, there are some steps, that need to be done on GSuite site, before you start installation.
Make sure you have docker and docker compose.
- Download docker-compose.yml for latest release.
- Rename downloaded p12 file to
service-account.p12
and move it to same directory as docker-compose.yml - Edit docker-compose.yml and set LDAP configuration based on your preferences in both services
- Run
docker-compose up -d
and follow logs withdocker-compose logs -f
- Copy private key to configuration
docker cp ./service-account.p12 accountmanager_identity_1:/opt/karaf/etc/keystore/
- Run command
ssh karaf@localhost -p 8101
or use putty (password iskaraf
). Karaf console will open. - To list all configuration properties run
config:list "(service.pid=eu.hlavki.identity*)"
- Run karaf commands to set private key location and password configuration:
config:edit eu.hlavki.identity
config:property-set oauth2.serviceAccount.privateKey.passphrase notasecret
config:property-set oauth2.serviceAccount.privateKey.file /opt/karaf/etc/keystore/service-account.p12
config:update
Open in browser https://localhost:8443/ and click Sign in.