buildsImageWithCommandLineOptions() — spring-boot Function Reference
Architecture documentation for the buildsImageWithCommandLineOptions() function in BootBuildImageIntegrationTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD f5dda5d1_e20e_34d7_f2be_0e1de612579e["buildsImageWithCommandLineOptions()"] f965ce7e_2357_c125_a1d3_24069c68ecf8["writeMainClass()"] f5dda5d1_e20e_34d7_f2be_0e1de612579e -->|calls| f965ce7e_2357_c125_a1d3_24069c68ecf8 66ac0fbc_cfc2_1ca0_5597_62584de5d0fb["writeLongNameResource()"] f5dda5d1_e20e_34d7_f2be_0e1de612579e -->|calls| 66ac0fbc_cfc2_1ca0_5597_62584de5d0fb 41f5c9ca_7a61_90cb_4750_c29c1a092e1c["DockerApi()"] f5dda5d1_e20e_34d7_f2be_0e1de612579e -->|calls| 41f5c9ca_7a61_90cb_4750_c29c1a092e1c 8b3fcc9b_3941_2812_09e4_c0a09539f3dd["inspect()"] f5dda5d1_e20e_34d7_f2be_0e1de612579e -->|calls| 8b3fcc9b_3941_2812_09e4_c0a09539f3dd a18a2648_7c7c_16c8_52c2_6d1bb55a7462["getCreated()"] f5dda5d1_e20e_34d7_f2be_0e1de612579e -->|calls| a18a2648_7c7c_16c8_52c2_6d1bb55a7462 59ffb962_26a5_d14b_c297_e84d0815a53a["removeImages()"] f5dda5d1_e20e_34d7_f2be_0e1de612579e -->|calls| 59ffb962_26a5_d14b_c297_e84d0815a53a 6973e1db_a9cb_9d4d_d9b0_e1dd043abfb1["image()"] f5dda5d1_e20e_34d7_f2be_0e1de612579e -->|calls| 6973e1db_a9cb_9d4d_d9b0_e1dd043abfb1 56c6a94a_906f_bea5_18c0_207cf050ae68["of()"] f5dda5d1_e20e_34d7_f2be_0e1de612579e -->|calls| 56c6a94a_906f_bea5_18c0_207cf050ae68 style f5dda5d1_e20e_34d7_f2be_0e1de612579e 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 173–191
@TestTemplate
void buildsImageWithCommandLineOptions() throws IOException {
writeMainClass();
writeLongNameResource();
BuildResult result = this.gradleBuild.build("bootBuildImage", "--pullPolicy=IF_NOT_PRESENT",
"--imageName=example/test-image-cmd", "--builder=ghcr.io/spring-io/spring-boot-cnb-test-builder:0.0.2",
"--trustBuilder", "--runImage=paketobuildpacks/run-noble-tiny", "--createdDate=2020-07-01T12:34:56Z",
"--applicationDirectory=/application");
BuildTask task = result.task(":bootBuildImage");
assertThat(task).isNotNull();
assertThat(task.getOutcome()).isEqualTo(TaskOutcome.SUCCESS);
assertThat(result.getOutput()).contains("example/test-image-cmd");
assertThat(result.getOutput()).contains("Running creator");
assertThat(result.getOutput()).contains("---> Test Info buildpack building");
assertThat(result.getOutput()).contains("---> Test Info buildpack done");
Image image = new DockerApi().image().inspect(ImageReference.of("example/test-image-cmd"));
assertThat(image.getCreated()).isEqualTo("2020-07-01T12:34:56Z");
removeImages("example/test-image-cmd");
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does buildsImageWithCommandLineOptions() do?
buildsImageWithCommandLineOptions() is a function in the spring-boot codebase.
What does buildsImageWithCommandLineOptions() call?
buildsImageWithCommandLineOptions() calls 8 function(s): DockerApi, getCreated, image, inspect, of, removeImages, writeLongNameResource, writeMainClass.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free