Home / Function/ buildImage() — spring-boot Function Reference

buildImage() — spring-boot Function Reference

Architecture documentation for the buildImage() function in BuildImageMojo.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  130ac764_001b_7641_5b3a_0a294ec5d92f["buildImage()"]
  057e3c63_9e4e_dcfe_13a2_71a0e4504850["execute()"]
  057e3c63_9e4e_dcfe_13a2_71a0e4504850 -->|calls| 130ac764_001b_7641_5b3a_0a294ec5d92f
  26305509_3728_0812_0fc8_fcde87cf00b0["getBuildRequest()"]
  130ac764_001b_7641_5b3a_0a294ec5d92f -->|calls| 26305509_3728_0812_0fc8_fcde87cf00b0
  5942c803_c03f_dd94_9b15_8354288d9f6a["MojoBuildLog()"]
  130ac764_001b_7641_5b3a_0a294ec5d92f -->|calls| 5942c803_c03f_dd94_9b15_8354288d9f6a
  style 130ac764_001b_7641_5b3a_0a294ec5d92f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

build-plugin/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/BuildImageMojo.java lines 257–270

	private void buildImage() throws MojoExecutionException {
		Libraries libraries = getLibraries(Collections.emptySet());
		try {
			BuildRequest request = getBuildRequest(libraries);
			Docker docker = (this.docker != null) ? this.docker : new Docker();
			BuilderDockerConfiguration dockerConfiguration = docker.asDockerConfiguration(getLog(),
					request.isPublish());
			Builder builder = new Builder(new MojoBuildLog(this::getLog), dockerConfiguration);
			builder.build(request);
		}
		catch (IOException ex) {
			throw new MojoExecutionException(ex.getMessage(), ex);
		}
	}

Domain

Subdomains

Calls

Called By

  • execute()

Frequently Asked Questions

What does buildImage() do?
buildImage() is a function in the spring-boot codebase.
What does buildImage() call?
buildImage() calls 2 function(s): MojoBuildLog, getBuildRequest.
What calls buildImage()?
buildImage() is called by 1 function(s): execute.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free