*** Wartungsfenster jeden ersten Mittwoch vormittag im Monat ***

Skip to content
Snippets Groups Projects
Commit 91f7c786 authored by Wörister, Florian's avatar Wörister, Florian
Browse files

Merge branch 'fw/cleanup' into 'master'

clean up repo

See merge request fairdata/crdm-keycloak-setup!5
parents 9e4b562e 0c675c1f
No related branches found
No related tags found
1 merge request!5clean up repo
Pipeline #99356 passed
...@@ -7,6 +7,8 @@ separate realm for the main and the test instance of invenio. ...@@ -7,6 +7,8 @@ separate realm for the main and the test instance of invenio.
To export all realms of the keycloak instance the lines 52-54 have to be uncommented in the docker-compose file. After To export all realms of the keycloak instance the lines 52-54 have to be uncommented in the docker-compose file. After
restarting (`docker-compose down && docker-compose up -d`) keycloak all realms are exported to `export/realms-export.json`. restarting (`docker-compose down && docker-compose up -d`) keycloak all realms are exported to `export/realms-export.json`.
**IMPORTANT:** make sure that the keycloak container is allowed to write into the export directory!
# Importing Realms # Importing Realms
To import realms into a new keycloak instance first place your dump file (`realms-export.json`) into the export folder. To import realms into a new keycloak instance first place your dump file (`realms-export.json`) into the export folder.
Next, execute the `import-realms.sh` script which erases all existing data on the keycloak instance and then imports the Next, execute the `import-realms.sh` script which erases all existing data on the keycloak instance and then imports the
......
...@@ -49,9 +49,9 @@ services: ...@@ -49,9 +49,9 @@ services:
- keycloak_data:/opt/jboss/keycloak/standalone/data - keycloak_data:/opt/jboss/keycloak/standalone/data
- ./cert/:/etc/x509/https - ./cert/:/etc/x509/https
- ./cli/json-logging.cli:/opt/jboss/startup-scripts/json-logging.cli - ./cli/json-logging.cli:/opt/jboss/startup-scripts/json-logging.cli
# - ./export/:/opt/export/ # - ./export:/tmp
# command: # command:
# - "-b 0.0.0.0 -Dkeycloak.migration.action=export -Dkeycloak.migration.provider=singleFile -Dkeycloak.migration.file=/opt/export/realms-export.json -Dkeycloak.profile.feature.upload_scripts=enabled" # - "-b 0.0.0.0 -Dkeycloak.migration.action=export -Dkeycloak.migration.provider=singleFile -Dkeycloak.migration.file=/tmp/export/realms-export.json -Dkeycloak.profile.feature.upload_scripts=enabled"
networks: networks:
default: default:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment