Skip to content

Buildpacks Support #1729

@jamesward

Description

@jamesward

When I try to build a container with CNCF Buildpacks (via Spring Boot's build-in buildpacks) I get:

 ./gradlew bootBuildImage
Picked up JAVA_TOOL_OPTIONS: -Dlog4j2.formatMsgNoLookups=true

> Task :bootBuildImage FAILED
Building image 'docker.io/library/stateful-mcp-agentcore:latest'

 > Pulling builder image 'docker.io/paketobuildpacks/builder-noble-java-tiny:latest' Error retrieving credentials for 'https://index.docker.io/v1/' due to: Cannot run program "docker-credential-desktop": Exec failed, error: 2 (No such file or directory) 
..................................................
 > Pulled builder image 'paketobuildpacks/builder-noble-java-tiny@sha256:6e4309f92886fbbcc2a2a822b744c2a78970361c7a44d5eb718541680943bed7'
 > Pulling run image 'docker.io/paketobuildpacks/ubuntu-noble-run-tiny:0.0.73' for platform 'linux/arm64' Error retrieving credentials for 'https://index.docker.io/v1/' due to: Cannot run program "docker-credential-desktop": Exec failed, error: 2 (No such file or directory) 
..................................................
 > Pulled run image 'paketobuildpacks/ubuntu-noble-run-tiny@sha256:1625704276ccb4dac4a1aa0e0d3d0c43b8b179ff57a968e827932be452e3d7a2'
 > Executing lifecycle version v0.21.6
 > Using build cache volume 'pack-cache-4da0c7c434c5.build'

 > Running creator

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':bootBuildImage'.
> Docker API call to '/Applications/Finch/lima/data/finch/sock/finch.sockdocker:///Applications/Finch/lima/data/finch/sock/finch.sock/v1.43/containers/create' failed with status code 400 "Bad Request" and message "create container failed validation: containers.Labels: label key and value length (9274 bytes) greater than maximum size (4096 bytes), key: io.buildpacks.builder.metadata: invalid argument"

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions