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, relying on the Spring Boot integration with Paketo Buildpacks.
This approach does not require a Dockerfile: the buildpack automatically detects the application type, installs the appropriate runtime, and assembles the image following best practices for security and size.
Prerequisites
-
An OCI container runtime (Docker, Podman, or compatible) must be running on your machine.
Usage
Basic usage:
arconia image build buildpacks
With a custom image name:
arconia image build buildpacks --image-name ghcr.io/my-org/my-app:1.0.0
Publish the image to a registry after building:
arconia image build buildpacks --image-name ghcr.io/my-org/my-app:1.0.0 --publish-image
Build without running tests and clean cache:
arconia image build buildpacks --skip-tests --clean-cache
Pass extra parameters to the underlying build tool using --:
arconia image build buildpacks -- --stacktrace
arconia image build buildpacks -- -DmyProperty=value
Options
The following options are available:
| Option | Default | Description |
|---|---|---|
|
Name (and optionally tag) for the image to build. For example: |
|
|
Name of the Paketo builder image to use. Defaults to the builder configured in your Spring Boot build plugin. Override this to use a different builder, for example a custom corporate builder. |
|
|
Name of the Paketo run image to use. Override this to change the base image of the produced container, for example to use a distroless or hardened run image. |
|
|
|
Whether to clean the local buildpack cache before building. Useful when troubleshooting caching issues. |
|
|
Whether to publish the generated image to an OCI registry after building. Make sure you are authenticated with the target registry (e.g., |
|
|
Perform a clean build of the application before building the image. |
|
|
Skip tests during the application build. |
|
|
Include verbose output. |
|
Display help information for the command. |
To push the image to a registry using --publish-image, authenticate first (e.g., podman login ghcr.io). Registry credentials can also be configured in your Spring Boot build plugin for CI/CD environments.
|
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 |
|
Maven |
|
Use -- to pass parameters directly to the underlying build tool. The -- separator is required to distinguish Arconia CLI options from build tool parameters.