Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

installation documentation #76

Closed
louisgls opened this issue Mar 1, 2024 · 3 comments
Closed

installation documentation #76

louisgls opened this issue Mar 1, 2024 · 3 comments
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@louisgls
Copy link

louisgls commented Mar 1, 2024

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 sschnabe self-assigned this Mar 2, 2024
@sschnabe sschnabe added the documentation Improvements or additions to documentation label Mar 2, 2024
@sschnabe
Copy link
Member

sschnabe commented Mar 2, 2024

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
Copy link
Member

sschnabe commented Mar 2, 2024

Mayvbe #67 can help you.

@louisgls
Copy link
Author

louisgls commented Mar 4, 2024

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

it did help me thank you

@louisgls louisgls closed this as completed Mar 5, 2024
sschnabe added a commit that referenced this issue Mar 5, 2024
* Add more sophisticated docker example, rel #76

* Update README.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Development

No branches or pull requests

2 participants