Skip to content

Commit

Permalink
commit to save
Browse files Browse the repository at this point in the history
  • Loading branch information
elewis2 committed Dec 19, 2023
1 parent 9026058 commit 645933d
Show file tree
Hide file tree
Showing 8 changed files with 2,393 additions and 0 deletions.
16 changes: 16 additions & 0 deletions nd/auth/Dockerfile.auth
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# for keycloak v16, you can use this command to get the entire realm with users and passwords
# by setting the passwords as you want them to be in the running docker container
# then running this command
# docker exec -it kc /opt/jboss/keycloak/bin/standalone.sh \
# -Djboss.socket.binding.port-offset=100 -Dkeycloak.migration.action=export \
# -Dkeycloak.migration.provider=singleFile \
# -Dkeycloak.migration.realmName=PORI \
# -Dkeycloak.migration.usersExportStrategy=REALM_FILE \
# -Dkeycloak.migration.file=/keys/PORI.json
FROM jboss/keycloak:16.1.1
USER root
RUN mkdir -p /tmp/realm_data/
COPY auth/kc_setup_keyfile.sh /scripts/kc_setup_keyfile.sh
RUN chmod a+x /scripts/kc_setup_keyfile.sh
COPY auth/PORI.json /tmp/realm_data/PORI.json
ENV KEYCLOAK_IMPORT=/tmp/realm_data/PORI.json
Loading

0 comments on commit 645933d

Please sign in to comment.