-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Dockerizing projects at scale with jib-maven-plugin #1616
Comments
Hi @lpandzic, Thanks for the feedback, but I actually didn't get what exactly you are asking for. It seems like you already configured Jib in the parent POM and child modules are selectively enabling/disabling Jib with |
Hello @chanseokoh, that's the gist of it. The problem arises when you need a resource like a startup script that you want to set for entrypoint. In that case you're basically forced to copy this script around on all projects. |
I haven't tested myself, but can't you do something like https://stackoverflow.com/a/1019431/1701388 and have <extraDirectories>
<paths>${main.basedir}/docker</paths> so that |
Closing due to inactivity. Hopefully the issue is already resolved with the above suggestion. |
I'd like to use jib-maven-plugin at a larger scale, namely several hundred projects without copying plugin configuration and/or resources.
We're currently using a from image which has a shell and an entrypoint to a startup script.
Parent maven project has the following configuration:
My original idea was to have script.sh in an external dependency but due to nonclasspath external files limitation it has to be in every child project that's to be dockerized.
Ideally I'd like to have everything in one place (parent and optionally an additional dependency) and in child projects I'd put a single property to enable jib (disable default skip property of parent).
The text was updated successfully, but these errors were encountered: