Add an extension to a Keycloak docker testcontainer #50
swc-kdzekov
started this conversation in
General
Replies: 2 comments
-
If you want to test your custom extension, you can add the compiled output ( |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thank you! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I would appreciate a tip or advice here.
I'm writing an integration test that is using keycloak (docker) container. I would like to add an extension (jar file) to it. In the real docker environment the .yaml file has volumes defined:
volumes: - C:\keycloak\plugins\default-settings-event-listener-0.0.1-SNAPSHOT.jar:/opt/jboss/keycloak/standalone/deployments/default-settings-event-listener-0.0.1-SNAPSHOT.jar
In the test the container is defined as:
I would like to know how can I add the jar file (keeping it in resources folder in my project) into the container?
I know there are some methods like: setVolumesFroms(), withVolumesFroms(), but I haven't found proper documentation on how to use them.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions