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

Implement store.toml #244

Closed
ekcasey opened this issue Feb 4, 2020 · 0 comments · Fixed by #256
Closed

Implement store.toml #244

ekcasey opened this issue Feb 4, 2020 · 0 comments · Fixed by #256
Assignees

Comments

@ekcasey
Copy link
Member

ekcasey commented Feb 4, 2020

Implement store.toml as outlined in the spec.

exporter

For each buildpack <bp.id>, that writes a <layer-dir>/<bp.id>/store.toml file during the build phase, exporter should add the JSON equivalent of the store.toml contents to a key named store in the corresponding buildpack map in the io.buildpacks.lifecycle.metadata label

analyzer

analyzer should read the previous image label and restore the contents of each buildpack's store to <layer-dir>/<bp.id>/store.toml.

analyzer should restore store.toml even when the -skip-layers flag is passed.

Examples

Example File:
/layers/bp.one/store.toml

[metadata]
  some-key = "some-val"

Example Label:
io.buildpack.lifecycle.metadata

{
  "buildpacks": [
    {
      "key": "bp.one",
      "version": "bp.one.version",
      "layers": {...},
      "store": {"metadata": {"some-key": "some-val"}}
   },
  ...
}
@zmackie zmackie added this to the lifecycle-0.7.0 milestone Feb 13, 2020
@ekcasey ekcasey self-assigned this Feb 14, 2020
@ekcasey ekcasey mentioned this issue Feb 14, 2020
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

Successfully merging a pull request may close this issue.

2 participants