Add support for build workspace option when building images
Closes gh-37478
This commit is contained in:
@@ -11,6 +11,11 @@ java {
|
||||
bootBuildImage {
|
||||
builder = "projects.registry.vmware.com/springboot/spring-boot-cnb-builder:0.0.2"
|
||||
pullPolicy = "IF_NOT_PRESENT"
|
||||
buildWorkspace {
|
||||
bind {
|
||||
source = System.getProperty('java.io.tmpdir') + "/junit-image-pack-${rootProject.name}-work"
|
||||
}
|
||||
}
|
||||
buildCache {
|
||||
bind {
|
||||
source = System.getProperty('java.io.tmpdir') + "/junit-image-cache-${rootProject.name}-build"
|
||||
|
||||
@@ -11,6 +11,11 @@ java {
|
||||
bootBuildImage {
|
||||
builder = "projects.registry.vmware.com/springboot/spring-boot-cnb-builder:0.0.2"
|
||||
pullPolicy = "IF_NOT_PRESENT"
|
||||
buildWorkspace {
|
||||
volume {
|
||||
name = "pack-${rootProject.name}.work"
|
||||
}
|
||||
}
|
||||
buildCache {
|
||||
volume {
|
||||
name = "cache-${rootProject.name}.build"
|
||||
|
||||
Reference in New Issue
Block a user