use of org.springframework.boot.buildpack.platform.build.Builder in project spring-boot by spring-projects.
the class BuildImageMojo method buildImage.
private void buildImage() throws MojoExecutionException {
Libraries libraries = getLibraries(Collections.emptySet());
try {
DockerConfiguration dockerConfiguration = (this.docker != null) ? this.docker.asDockerConfiguration() : null;
BuildRequest request = getBuildRequest(libraries);
Builder builder = new Builder(new MojoBuildLog(this::getLog), dockerConfiguration);
builder.build(request);
} catch (IOException ex) {
throw new MojoExecutionException(ex.getMessage(), ex);
}
}
use of org.springframework.boot.buildpack.platform.build.Builder in project spring-boot by spring-projects.
the class BootBuildImage method buildImage.
@TaskAction
void buildImage() throws DockerEngineException, IOException {
Builder builder = new Builder(this.docker.asDockerConfiguration());
BuildRequest request = createRequest();
builder.build(request);
}
Aggregations