GoogleContainerTools / GoogleContainerTools/jib

Enable cache configuration in maven mojos

Open
#2,970 4 comments 0 reactions 0 assignees View on GitHub
area/jib-gradle-plugin area/jib-maven-plugin enhancement priority:p4
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.