Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image building requires builder to specify a stack #41046

Closed
bpfoster opened this issue Jun 10, 2024 · 0 comments
Closed

Image building requires builder to specify a stack #41046

bpfoster opened this issue Jun 10, 2024 · 0 comments
Labels
type: bug A general bug
Milestone

Comments

@bpfoster
Copy link

According to the buildpacks documentation, stacks were deprecated in Platform API 0.12 and Buildpack API 0.10 (https://buildpacks.io/docs/for-app-developers/concepts/base-images/stack/).

If I try to use a custom builder that does not define a stack, the spring boot maven plugin gives an error:

Execution default of goal org.springframework.boot:spring-boot-maven-plugin:3.3.0:build-image-no-fork failed: Run image must be specified in the builder image stack

The builder defines the images as per the documentation, like

[build]
image = "cnbs/sample-base-build:jammy"
[run]
[[run.images]]
image = "cnbs/sample-base-run:jammy"

If I try and work around this by specifying the runImage in the spring-boot-maven-plugin configuration, I get another error

Execution default of goal org.springframework.boot:spring-boot-maven-plugin:3.3.0:build-image-no-fork failed: Missing 'io.buildpacks.stack.id' stack label

It would be good to support builders that follow the new method and which do not use stacks.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jun 10, 2024
@scottfrederick scottfrederick added type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged labels Jun 10, 2024
@scottfrederick scottfrederick added this to the 3.4.x milestone Jun 10, 2024
@scottfrederick scottfrederick added type: bug A general bug and removed type: enhancement A general enhancement labels Jun 12, 2024
@scottfrederick scottfrederick modified the milestones: 3.4.x, 3.2.x Jun 12, 2024
@scottfrederick scottfrederick changed the title Support buildpacks without a stack Image building requires builder to specify a stack Jun 12, 2024
@scottfrederick scottfrederick modified the milestones: 3.2.x, 3.2.7 Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A general bug
Projects
None yet
Development

No branches or pull requests

3 participants