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

builds have reproducible results (with caveats) #226

Merged
merged 1 commit into from
Jan 21, 2020
Merged

Conversation

ekcasey
Copy link
Member

@ekcasey ekcasey commented Jan 13, 2020

  • caveat 1: CNB lifecycle cannot fix nonreproducbile buildpack layer file contents
  • caveat 2: a local and remote build will not produce the same image digest because:
    -- the remote image will have an image digest reference in the runImage.reference field in the io.buildpacks.lifecycle.metadata label
    -- the local image will have an image ID in the runImage.reference field in the io.buildpacks.lifecycle.metadata label

Signed-off-by: Emily Casey [email protected]

Caveat 2: listed above exists because, in the daemon case, the run-image may not have a repository digest reference (if it was created locally). However, if we used the image RepoDigest in the label in the case where exactly 1 did exist, we could have identical local/remote results in the majority of cases.

@ekcasey ekcasey requested a review from sclevine January 13, 2020 21:43
* caveat 1: CNB lifecycle cannot fix nonreproducbile buildpack layer file contents
* caveat 2: a local and remote build will not produce the same image digest because:
    -- the remote image will have an image digest in the runImage.reference field in the io.buildpacks.lifecycle.metadata label
    -- the local image will have an image ID in the runImage.reference field in the io.buildpacks.lifecycle.metadata label

Signed-off-by: Emily Casey <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants