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

[RFC #0096] Analyzer should write new run image metadata to analyzed.toml #742

Closed
Tracked by #219
buildpack-bot opened this issue Oct 6, 2021 · 0 comments
Closed
Tracked by #219

Comments

@buildpack-bot
Copy link
Member

buildpack-bot commented Oct 6, 2021

Spec PR: buildpacks/spec#335

The following fields are added to analyzed.toml:

[run-image]
  [target]
  id = "<target identifer>"               # from io.buildpacks.id label (optional)
  os = "<OS name>"                             # from image config
  arch = "<architecture>"                      # from image config
  variant = "<architecture variant>"           # from image config (optional)
  [target.distribution]
  name = "<OS distribution name>"              # from io.buildpacks.distribution.name label (optional)
  version = "<OS distribution version>"        # from io.buildpacks.distribution.version label (optional)

The analyzer, for newer platform API (0.12 or greater) should read this information from the run image and write it to analyzed.toml.

If target data is missing but the image contains the label io.buildpacks.stack.id with value io.buildpacks.stacks.bionic, the lifecycle SHALL assume the following values:
- run-image.target.os = "linux"
- run-image.target.arch = "x86_64"
- run-image.target.distribution.name = "ubuntu"
- run-image.target.distribution.version = "18.04"

@jabrown85 jabrown85 self-assigned this Jan 19, 2022
jabrown85 added a commit that referenced this issue Jan 19, 2022
Impelments #742

Signed-off-by: Jesse Brown <jabrown85@gmail.com>
@natalieparellano natalieparellano added this to the lifecycle-0.15.0 milestone Feb 25, 2022
@natalieparellano natalieparellano removed this from the lifecycle-0.15.0 milestone Nov 3, 2022
@natalieparellano natalieparellano changed the title [RFC #0096] Analyzer should read io.buildpacks.id from run image [RFC #0096] Analyzer should read metadata from run image Jan 9, 2023
@natalieparellano natalieparellano changed the title [RFC #0096] Analyzer should read metadata from run image [RFC #0096] Analyzer should write new run image metadata to analyzed.toml Jan 9, 2023
@natalieparellano natalieparellano added this to the lifecycle 0.17.0 milestone Feb 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants