***
Wartungsfenster jeden ersten Mittwoch vormittag im Monat
***
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
CRDM Keycloak Setup
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Center for Research Data Management
CRDM Keycloak Setup
Commits
987ab60b
Commit
987ab60b
authored
3 years ago
by
Wörister, Florian
Browse files
Options
Downloads
Patches
Plain Diff
clean up repo
parent
653e511e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!4
Fw/cleanup
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+0
-15
0 additions, 15 deletions
.gitlab-ci.yml
README.md
+11
-1
11 additions, 1 deletion
README.md
docker-compose.yml
+1
-1
1 addition, 1 deletion
docker-compose.yml
with
12 additions
and
17 deletions
.gitlab-ci.yml
+
0
−
15
View file @
987ab60b
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
...
...
This diff is collapsed.
Click to expand it.
README.md
+
11
−
1
View file @
987ab60b
# 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
This diff is collapsed.
Click to expand it.
docker-compose.yml
+
1
−
1
View file @
987ab60b
...
@@ -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=
im
port -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=
ex
port -Dkeycloak.migration.provider=singleFile -Dkeycloak.migration.file=/opt/export/realms-export.json -Dkeycloak.profile.feature.upload_scripts=enabled"
networks
:
networks
:
default
:
default
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment