more deployment fixes. finalize keycloak auto initialization
This commit is contained in:
parent
560ba3a11a
commit
9d737a8fe0
|
@ -71,6 +71,7 @@ loading_icon 20 "Waiting for PostgreSQL to Initialize!"
|
|||
docker-compose up -d opencdmp.keycloak
|
||||
|
||||
loading_icon 90 "Waiting for Keycloak to Startup!"
|
||||
docker exec -it opencdmp.keycloak /tmp/user_init.sh
|
||||
|
||||
docker-compose up -d
|
||||
|
||||
|
|
|
@ -210,6 +210,7 @@ services:
|
|||
- JAVA_OPTS_APPEND="-Djava.net.preferIPv4Stack=true"
|
||||
volumes:
|
||||
- ./logs/keycloak:/tmp/logs
|
||||
- ./keycloak/user_init.sh:/tmp/user_init.sh
|
||||
- ./keycloak/imports/opencdmp-realm.json:/opt/keycloak/data/import/opencdmp-realm.json
|
||||
expose:
|
||||
- "8080"
|
||||
|
|
|
@ -13,8 +13,6 @@ services:
|
|||
condition: service_started
|
||||
opencdmp.annotation:
|
||||
condition: service_started
|
||||
opencdmp.keycloak:
|
||||
condition: service_started
|
||||
|
||||
############################## OPENDMP APP #################################
|
||||
|
||||
|
@ -35,8 +33,6 @@ services:
|
|||
depends_on:
|
||||
opencdmp.postgres:
|
||||
condition: service_started
|
||||
opencdmp.keycloak:
|
||||
condition: service_started
|
||||
|
||||
opencdmp.notification:
|
||||
container_name: opencdmp.notification
|
||||
|
@ -44,8 +40,6 @@ services:
|
|||
depends_on:
|
||||
opencdmp.postgres:
|
||||
condition: service_started
|
||||
opencdmp.keycloak:
|
||||
condition: service_started
|
||||
|
||||
opencdmp.annotation:
|
||||
container_name: opencdmp.annotation
|
||||
|
@ -53,8 +47,6 @@ services:
|
|||
depends_on:
|
||||
opencdmp.postgres:
|
||||
condition: service_started
|
||||
opencdmp.keycloak:
|
||||
condition: service_started
|
||||
opencdmp.backend:
|
||||
condition: service_started
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@ network.host: 0.0.0.0
|
|||
discovery.type: single-node
|
||||
node.name: elasticsearch
|
||||
|
||||
ingest.geoip.downloader.enabled: false
|
||||
xpack.license.self_generated.type: trial
|
||||
xpack.security.enabled: true
|
||||
xpack.security.authc.api_key.enabled: true
|
||||
|
|
|
@ -809,8 +809,7 @@
|
|||
}
|
||||
],
|
||||
"realmRoles": [
|
||||
"default-roles-dmp-staging",
|
||||
"realm-admin"
|
||||
"default-roles-dmp-staging"
|
||||
],
|
||||
"groups": [
|
||||
"/opencdmp-app/role-user",
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
|
||||
/opt/keycloak/bin/kcadm.sh config credentials --server http://localhost:8080/keycloak --realm master --user keycloak-admin --password admin --client admin-cli
|
||||
/opt/keycloak/bin/kcadm.sh add-roles -r OpenCDMP --uusername dmp-keycloak-api --cclientid realm-management --rolename realm-admin
|
|
@ -8,3 +8,4 @@ deposit:
|
|||
client-id: ${IDP_APIKEY_CLIENT_ID}
|
||||
client-secret: ${IDP_APIKEY_CLIENT_SECRET}
|
||||
scope: ${IDP_APIKEY_SCOPE}
|
||||
maxInMemorySizeInBytes: 6554000
|
||||
|
|
|
@ -5,3 +5,4 @@ zenodo:
|
|||
logo: /zenodo.jpg
|
||||
depositConfiguration:
|
||||
has-logo: false
|
||||
useSharedStorage: false
|
||||
|
|
Loading…
Reference in New Issue