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

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

clean up repo

parent 653e511e
No related branches found
No related tags found
1 merge request!4Fw/cleanup
stages: stages:
- staging
- production - production
deploy_staging:
stage: staging
environment: staging
script:
- ssh gitlab-ci@s162.dl.hpc.tuwien.ac.at "cd crdm-keycloak-setup && docker-compose down"
- ssh gitlab-ci@s162.dl.hpc.tuwien.ac.at "rm -rf ./crdm-keycloak-setup"
- cd ..
- scp -r "crdm-keycloak-setup" "gitlab-ci@s162.dl.hpc.tuwien.ac.at:./crdm-keycloak-setup"
- ssh gitlab-ci@s162.dl.hpc.tuwien.ac.at "cp -r /home/gitlab-ci/cert /home/gitlab-ci/crdm-keycloak-setup/"
- ssh gitlab-ci@s162.dl.hpc.tuwien.ac.at "cp -r /home/gitlab-ci/.env /home/gitlab-ci/crdm-keycloak-setup/.env"
- ssh gitlab-ci@s162.dl.hpc.tuwien.ac.at " cd crdm-keycloak-setup && docker-compose up --build -d"
rules:
- if: '$CI_COMMIT_BRANCH == "staging"'
deploy_production: deploy_production:
stage: production stage: production
environment: production environment: production
......
# CRDM Keycloak Setup # CRDM Keycloak Setup
Docker Setup for the Keycloak instance of the "Center for Research Data management" Docker Setup for the Keycloak instance of the "Center for Research Data management". This keycloak service maintains a
\ No newline at end of file separate realm for the main and the test instance of invenio.
# Exportin Realms
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`.
# Importing Realms
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
provided realm-dump.
\ No newline at end of file
...@@ -51,7 +51,7 @@ services: ...@@ -51,7 +51,7 @@ services:
- ./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/:/opt/export/
# command: # command:
# - "-b 0.0.0.0 -Dkeycloak.migration.action=import -Dkeycloak.migration.provider=singleFile -Dkeycloak.migration.file=/opt/export/realms-export.json -Dkeycloak.migration.strategy=IGNORE_EXISTING -Dkeycloak.profile.feature.upload_scripts=enabled" # - "-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"
networks: networks:
default: default:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment