Skip to content

Commit

Permalink
feat: add basic realm import script for faster test startup
Browse files Browse the repository at this point in the history
  • Loading branch information
shreddedbacon committed Aug 1, 2023
1 parent 8c03d29 commit 85f7898
Show file tree
Hide file tree
Showing 4 changed files with 4,945 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ services:
user: '111111111'
depends_on:
- keycloak-db
environment:
- KEYCLOAK_TEST_REALM_IMPORT=true
ports:
- '8088:8080'
volumes:
Expand Down
1 change: 1 addition & 0 deletions services/keycloak/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ COPY entrypoints/wait-for-mariadb.sh /lagoon/entrypoints/98-wait-for-mariadb.sh
COPY entrypoints/default-keycloak-entrypoint.sh /lagoon/entrypoints/99-default-keycloak-entrypoint.sh
COPY startup-scripts /opt/jboss/startup-scripts
COPY profile.properties /opt/jboss/keycloak/standalone/configuration/profile.properties
COPY lagoon-test-realm-2.15.4.json /lagoon/keycloak/lagoon-test-realm-2.15.4.json
COPY --from=commons /tmp/lagoon-scripts.jar /opt/jboss/keycloak/standalone/deployments/lagoon-scripts.jar

ENTRYPOINT ["/sbin/tini", "--", "/lagoon/entrypoints.bash"]
Expand Down
Loading

0 comments on commit 85f7898

Please sign in to comment.