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
Support mounting host file/directory to devservices containers #37684
Comments
/cc @geoand (devservices), @stuartwdouglas (devservices) |
I think it makes sense. WDYT @sberyozkin? |
@geoand Sure, makes sense @Eng-Fouad As far as the Keycloak dev service is concerned, FYI, in this PR, https://github.com/quarkusio/quarkus/pull/36508/files#diff-67404a43520250b1ebd5a0c945e070e60d70d4a3ba06b15e3fac747f820320ccR541 I'm attempting to attach a specific classpath or file system file to a required container location (there, a generated policy jar has to be copied), can that help with your requirements ? Note I'm using 2 maps there, one creates aliases to the local resources, another maps these aliases to container locations - I'm not 100% sure having a single Map to map for ex a Windows path to the container resource can work without resorting to various escape tricks... |
Yes, this seems what I am looking for. |
@Eng-Fouad OK, thanks, let me have that PR fix this issue on its completion. |
Description
Testcontainers has API to copy/mount file/directory to containers:
See: Testcontainers for Java: Files and volumes
One possible usage is to add Keycloak extension to Keycloak devservices by copying the extension jar files to
/opt/keycloak/providers
.Implementation ideas
It can be added to app configurations, something like:
quarkus.keycloak.devservices.mount=./extension/jars:/opt/keycloak/providers
The text was updated successfully, but these errors were encountered: