-
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
Make layering of extraDirectory configurable #1020
Comments
Hi @remmeier , thanks for the suggestion. We will definitely consider supporting multiple extra layers though the order will most likely not be configurable since each layer is pushed independently (and thus ordering does not matter). I think for multiple extra directories, we can support something like |
@GoogleContainerTools/java-tools Any comments on supporting extra extra directories ( |
@coollog Would the same convention be used for custom extra directories? e.g. |
Yep, that could be added too, so any number 2 and onwards (consecutively) appended to the configured extra directory path will be used as extra directory layers in the numbered order. |
I just thought about a (highly unlikely) edge case of And another edge case: what if Might just be cleaner to get a list of extra directory paths in the config. However, these are edge cases that may work in one way or another anyway, so I also see some good things about the simple approach of |
For |
This seems to me to be a case where we abandon convention for configuration. @remmeier's examples don't cleanly map to Perhaps now's the time to flesh out an <extras>
<dir>src/main/jib</dir>
<dir>target/downloads</dir>
</extras>
|
One more point. Now If I select the Standard folder used for resources belong to the project. |
I don't agree on this. For example, Maven has the convention that the default value for |
I see - you look on the |
are there plans to make the position of extra layers configurable? we have use cases of third-party files in extra layers that are large in size and ideally placed below project resources. |
The order of layers shouldn't matter with the registry/image format we are using. No invalidation is happening, if a layer doesn't change, it is not rebuilt or repushed. (vs docker which must handle arbitrarily executed steps) |
the documentation says
which puts them at the root. Is there a way to put them somewhere specific? |
the documentation says: |
ah, so currently it's sort of attached to your local filesystem layout. if you have a directory
and you do
what goes into the root of the container is the contents of |
Files in the extra layer can be:
So it is thinkable to place extraDirectories inbetween any other layer for optimial layering. A configuration flag for this would be great. Or maybe even the possiblity to have multiple extra layers.
The text was updated successfully, but these errors were encountered: