arconia image build buildpacks

The arconia image build buildpacks command builds a container image for your Spring Boot application using Cloud Native Buildpacks. It delegates to your build tool’s (Maven/Gradle) image build tasks to package your application as a container image and optionally publish it to a container registry, relying on the Spring Boot integration with Paketo Buildpacks.

Usage

Basic usage:

arconia image build buildpacks

With custom image name:

arconia image build buildpacks --image-name ghcr.io/thomasvitale/my-app:4.2.0

Options

The following options are available:

Option Default Description

--image-name

Name for the image to build.

--builder-image

Name of the Builder image to use.

--run-image

Name of the Run image to use.

--clean-cache

false

Whether to clean the cache before building.

--publish-image

false

Whether to publish the generated image to an OCI registry.

--clean

false

Perform a clean build.

--skip-tests

false

Skip tests during the build.

--debug or -d

false

Include debug output.

--verbose or -v

false

Include more verbose output about the execution.

--stacktrace or -s

false

Include more details about errors.

--params or -p

Additional build parameters passed directly to the build tool.

--help or -h

Display help information for the command.

Build Tool Integration

The command automatically detects whether your project uses Maven or Gradle and runs the appropriate image build task:

Build Tool Command

Gradle

  • ./gradlew bootBuildImage (Linux/macOS with wrapper)

  • gradle bootBuildImage (Linux/macOS without wrapper)

  • gradlew.bat bootBuildImage (Windows with wrapper)

  • gradle bootBuildImage (Windows without wrapper)

Maven

  • ./mvnw spring-boot:build-image (Linux/macOS with wrapper)

  • mvn spring-boot:build-image (Linux/macOS without wrapper)

  • mvnw.cmd spring-boot:build-image (Windows with wrapper)

  • mvn spring-boot:build-image (Windows without wrapper)

  • mvnd spring-boot:build-image (Using Maven Daemon)

Additional parameters specified with --params are passed through to the respective build tool command.