installation documentation #76

Closed
opened 2024-03-01 12:17:24 +01:00 by louisgls · 3 comments
louisgls commented 2024-03-01 12:17:24 +01:00 (Migrated from github.com)

hello,

could you provide more documentation on how to build and deploy it in a Keycloak container ?

What I tried in my dockerfile is :

RUN git clone https://github.com/kokuwaio/keycloak-event-metrics
RUN mvn clean package -f keycloak-event-metrics/pom.xml

then :

COPY --from=builder1 \
    /tmp/keycloak-event-metrics/target/keycloak-event-metrics-1.0.1-SNAPSHOT.jar \
    $KC_BASE_DIR/providers/


....

RUN $KC_BASE_DIR/bin/kc.sh build

The jar is correctly built but when I start the image I get a ClassNotFound :

ERROR: Unexpected error when starting the server in (production) mode
ERROR: Failed to start quarkus
ERROR: java.lang.ClassNotFoundException: io.kokuwa.keycloak.metrics.junit.PrometheusClient
ERROR: io.kokuwa.keycloak.metrics.junit.PrometheusClient
For more details run the same command passing the '--verbose' option. Also you can use '--help' to see the details about the usage of the particular command.

I'm using Keycloak 23.0.6.

hello, could you provide more documentation on how to build and deploy it in a Keycloak container ? What I tried in my dockerfile is : ``` RUN git clone https://github.com/kokuwaio/keycloak-event-metrics RUN mvn clean package -f keycloak-event-metrics/pom.xml ``` then : ``` COPY --from=builder1 \ /tmp/keycloak-event-metrics/target/keycloak-event-metrics-1.0.1-SNAPSHOT.jar \ $KC_BASE_DIR/providers/ .... RUN $KC_BASE_DIR/bin/kc.sh build ``` The jar is correctly built but when I start the image I get a ClassNotFound : ``` ERROR: Unexpected error when starting the server in (production) mode ERROR: Failed to start quarkus ERROR: java.lang.ClassNotFoundException: io.kokuwa.keycloak.metrics.junit.PrometheusClient ERROR: io.kokuwa.keycloak.metrics.junit.PrometheusClient For more details run the same command passing the '--verbose' option. Also you can use '--help' to see the details about the usage of the particular command. ``` I'm using Keycloak 23.0.6.
sschnabe commented 2024-03-02 13:14:39 +01:00 (Migrated from github.com)

There is something wrong with your jar-file. There are junit classes that should not be in the jar-file.

I'll add more documentation how to include this library.

There is something wrong with your jar-file. There are junit classes that should not be in the jar-file. I'll add more documentation how to include this library.
sschnabe commented 2024-03-02 13:35:13 +01:00 (Migrated from github.com)

Mayvbe #67 can help you.

Mayvbe #67 can help you.
louisgls commented 2024-03-04 17:17:54 +01:00 (Migrated from github.com)

you meant this : https://github.com/kokuwaio/keycloak-event-metrics/pull/77/files ?

it did help me thank you

you meant this : https://github.com/kokuwaio/keycloak-event-metrics/pull/77/files ? it did help me thank you
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference: kokuwaio/keycloak-event-metrics#76
No description provided.