Skip to content
This repository has been archived by the owner on Jun 13, 2021. It is now read-only.

Digest #678

Merged
merged 1 commit into from Oct 11, 2019
Merged

Digest #678

merged 1 commit into from Oct 11, 2019

Conversation

ndeloof
Copy link
Contributor

@ndeloof ndeloof commented Oct 8, 2019

Introduce storage by ID (= bundle digest)

- What I did
Extended BundleStore so we both store bundles by tag and by digest, with cross references

- How I did it
bundle is now stored under image/tag/bundle.json, aside a digest file
At same time it's stored (duplicate) under _digest/<digest>/bundle.json

- How to verify it
Run e2e test and play with docker app build

- Description for the changelog
Allow to build docker app without a tag, image can then be referenced by a unique ID

- A picture of a cute animal (not mandatory but encouraged)
image

@codecov
Copy link

codecov bot commented Oct 8, 2019

Codecov Report

Merging #678 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #678   +/-   ##
=======================================
  Coverage   72.29%   72.29%           
=======================================
  Files          58       58           
  Lines        3140     3140           
=======================================
  Hits         2270     2270           
  Misses        581      581           
  Partials      289      289

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 58e773c...5b7f386. Read the comment docs.

@ndeloof ndeloof force-pushed the digest branch 2 times, most recently from b7ccd5a to c039b33 Compare October 9, 2019 17:36
e2e/images_test.go Outdated Show resolved Hide resolved
internal/commands/cnab.go Outdated Show resolved Hide resolved
@ndeloof ndeloof force-pushed the digest branch 3 times, most recently from e23c0f7 to 290ee71 Compare October 10, 2019 09:04
Copy link
Contributor

@silvin-lubecki silvin-lubecki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small nits/typos but LGTM 👍
Thank you for your patience @ndeloof 😸

internal/store/digest.go Outdated Show resolved Hide resolved
internal/store/bundle.json Outdated Show resolved Hide resolved
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
Copy link
Member

@rumpl rumpl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ndeloof ndeloof merged commit 3b9a6e3 into docker:master Oct 11, 2019
@ndeloof ndeloof deleted the digest branch October 11, 2019 10:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants