buildsImageWithBindCaches() — spring-boot Function Reference
Architecture documentation for the buildsImageWithBindCaches() function in BootBuildImageIntegrationTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD b52f3fb8_84bb_06b0_ccc6_c5634145aea4["buildsImageWithBindCaches()"] f965ce7e_2357_c125_a1d3_24069c68ecf8["writeMainClass()"] b52f3fb8_84bb_06b0_ccc6_c5634145aea4 -->|calls| f965ce7e_2357_c125_a1d3_24069c68ecf8 66ac0fbc_cfc2_1ca0_5597_62584de5d0fb["writeLongNameResource()"] b52f3fb8_84bb_06b0_ccc6_c5634145aea4 -->|calls| 66ac0fbc_cfc2_1ca0_5597_62584de5d0fb b3171812_ab1f_87c4_a83a_2a91e929e461["getName()"] b52f3fb8_84bb_06b0_ccc6_c5634145aea4 -->|calls| b3171812_ab1f_87c4_a83a_2a91e929e461 59ffb962_26a5_d14b_c297_e84d0815a53a["removeImages()"] b52f3fb8_84bb_06b0_ccc6_c5634145aea4 -->|calls| 59ffb962_26a5_d14b_c297_e84d0815a53a fe76189a_9d14_3ca8_5a52_372f3ad4829c["cleanupCache()"] b52f3fb8_84bb_06b0_ccc6_c5634145aea4 -->|calls| fe76189a_9d14_3ca8_5a52_372f3ad4829c style b52f3fb8_84bb_06b0_ccc6_c5634145aea4 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
build-plugin/spring-boot-gradle-plugin/src/dockerTest/java/org/springframework/boot/gradle/tasks/bundling/BootBuildImageIntegrationTests.java lines 341–363
@TestTemplate
@EnabledOnOs(value = OS.LINUX, disabledReason = "Works with Docker Engine on Linux but is not reliable with "
+ "Docker Desktop on other OSs")
void buildsImageWithBindCaches() throws IOException {
writeMainClass();
writeLongNameResource();
BuildResult result = this.gradleBuild.build("bootBuildImage");
String projectName = this.gradleBuild.getProjectDir().getName();
BuildTask task = result.task(":bootBuildImage");
assertThat(task).isNotNull();
assertThat(task.getOutcome()).isEqualTo(TaskOutcome.SUCCESS);
assertThat(result.getOutput()).contains("docker.io/library/" + projectName);
assertThat(result.getOutput()).contains("---> Test Info buildpack building");
assertThat(result.getOutput()).contains("---> Test Info buildpack done");
removeImages(projectName);
String tempDir = System.getProperty("java.io.tmpdir");
Path buildCachePath = Paths.get(tempDir, "junit-image-cache-" + projectName + "-build");
Path launchCachePath = Paths.get(tempDir, "junit-image-cache-" + projectName + "-launch");
assertThat(buildCachePath).exists().isDirectory();
assertThat(launchCachePath).exists().isDirectory();
cleanupCache(buildCachePath);
cleanupCache(launchCachePath);
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does buildsImageWithBindCaches() do?
buildsImageWithBindCaches() is a function in the spring-boot codebase.
What does buildsImageWithBindCaches() call?
buildsImageWithBindCaches() calls 5 function(s): cleanupCache, getName, removeImages, writeLongNameResource, writeMainClass.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free