Closed alexeymarunin closed 3 days ago
This is an issue with your Dockerfile. Plugin works fine with Keycloak 26.
I figured out the cause of the error
FROM keycloak/keycloak:26.0
ARG KAFKA_EXTENSION_VERSION=1.2.0
# Need correct user:group permissions for JAR-file
ADD --chown=keycloak:root \
https://github.com/SnuK87/keycloak-kafka/releases/download/${KAFKA_EXTENSION_VERSION}/keycloak-kafka-${KAFKA_EXTENSION_VERSION}-jar-with-dependencies.jar \
/opt/keycloak/providers/keycloak-kafka-${KAFKA_EXTENSION_VERSION}-jar-with-dependencies.jar
ENV KAFKA_BOOTSTRAP_SERVERS=http://kafka:9092 \
KAFKA_CLIENT_ID=bas \
KAFKA_EVENTS=REGISTER,REGISTER_ERROR,LOGIN,LOGIN_ERROR,USER_INFO_REQUEST,USER_INFO_REQUEST_ERROR,LOGOUT,LOGOUT_ERROR \
KAFKA_TOPIC=kcevents \
KAFKA_ADMIN_TOPIC=kcaevents
CMD [ "start-dev" ]
Now it's work fine :)
Commands to build and run:
Here is my Dockefile: