GoogleContainerTools / GoogleContainerTools/jib
Enable cache configuration in maven mojos
- Dominant language
- Java
- Stars
- 14.5k
- Forks
- 1.5k
- PR merge metrics
- No merged PRs in 30d
Description
Until I miss it there is no way to configure the cache directories in the mojo configuration.
My use case is the following, project layout looks like:
```
+- module1
+- module2
+- .....
+- images
+- module1-image
+- module2-image
+- ...
```
The containerization is configured in images/pom.xml since it is using the same pattern for all images, then running mvn package jib:dockerBuild on images/ folder makes all images at once.
This pattern is very convenient, however each image has its own caching until jib.baseImageCache (and app one) is set.
This issue is about enabling:
1. To set it in the pom (likely project.parent.build.directory/jib-cache for ^^ layout)
2. Ensure it is concurrent build friendly (there is a locking on the dir?)
Contributor guide
Assessment
This issue has not been assessed yet.