Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
vbrik committed Apr 10, 2024
1 parent 6eb18bf commit bc44270
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions resources/keycloak-image/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM quay.io/keycloak/keycloak:24.0.2 as builder

# Keycloak core settings
ENV KC_HTTP_ENABLED="true"
ENV KC_HTTP_RELATIVE_PATH="/auth"
ENV KC_FEATURES=token-exchange

# rabbitmq settings
COPY resources/keycloak-to-rabbit-3.0.jar /opt/keycloak/providers/
ENV KK_TO_RMQ_USERNAME=admin
ENV KK_TO_RMQ_PASSWORD=admin
ENV KK_TO_RMQ_VHOST=keycloak

# testing TLS cert
RUN keytool -genkeypair -storepass password -storetype PKCS12 -keyalg RSA -keysize 2048 -dname "CN=server" -alias server -ext "SAN:c=DNS:localhost,IP:127.0.0.1" -keystore /opt/keycloak/conf/server.keystore

RUN /opt/keycloak/bin/kc.sh build

RUN sed -i '/^eval exec/ s/$/ \$CMD/' /opt/keycloak/bin/kc.sh
Binary file added resources/keycloak-to-rabbit-3.0.jar
Binary file not shown.

0 comments on commit bc44270

Please sign in to comment.