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

Support registry cache in a private registry #874

Merged
merged 1 commit into from
Oct 29, 2021

Conversation

matthewmcnew
Copy link
Collaborator

Without HOME the restore step can not correctly load the docker credentials.
This prevents layers from properly being restored from a cache image in a private registry.

Without this change

Restoring metadata for "paketo-buildpacks/ca-certificates:helper" from app image
Restoring metadata for "paketo-buildpacks/bellsoft-liberica:helper" from app image
Restoring metadata for "paketo-buildpacks/bellsoft-liberica:java-security-properties" from app image
Restoring metadata for "paketo-buildpacks/bellsoft-liberica:jre" from app image
Restoring metadata for "paketo-buildpacks/bellsoft-liberica:jdk" from cache
Restoring metadata for "paketo-buildpacks/maven:application" from cache
Restoring metadata for "paketo-buildpacks/maven:cache" from cache
Restoring metadata for "paketo-buildpacks/spring-boot:helper" from app image
Restoring metadata for "paketo-buildpacks/spring-boot:spring-cloud-bindings" from app image
Restoring metadata for "paketo-buildpacks/spring-boot:web-application-type" from app image
Layer cache not found

@matthewmcnew matthewmcnew changed the title Set HOME env var on restore Support registry cache in a private registry Oct 28, 2021
@matthewmcnew
Copy link
Collaborator Author

Reported by @jeffellin.

@codecov-commenter
Copy link

Codecov Report

Merging #874 (29b70d3) into main (e69cb09) will increase coverage by 0.03%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #874      +/-   ##
==========================================
+ Coverage   67.39%   67.42%   +0.03%     
==========================================
  Files         115      115              
  Lines        5226     5231       +5     
==========================================
+ Hits         3522     3527       +5     
  Misses       1341     1341              
  Partials      363      363              
Impacted Files Coverage Δ
pkg/apis/build/v1alpha2/build_pod.go 98.11% <100.00%> (+0.01%) ⬆️

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 e69cb09...29b70d3. Read the comment docs.

@tylerphelan tylerphelan linked an issue Oct 28, 2021 that may be closed by this pull request
Without HOME the restore step can not correctly load the docker credentials.
This prevents layers from properly being restored from a cache image in a private registry.

Without this private cache images would cryptically fail:
```
Restoring metadata for "paketo-buildpacks/ca-certificates:helper" from app image
Restoring metadata for "paketo-buildpacks/bellsoft-liberica:helper" from app image
Restoring metadata for "paketo-buildpacks/bellsoft-liberica:java-security-properties" from app image
Restoring metadata for "paketo-buildpacks/bellsoft-liberica:jre" from app image
Restoring metadata for "paketo-buildpacks/bellsoft-liberica:jdk" from cache
Restoring metadata for "paketo-buildpacks/maven:application" from cache
Restoring metadata for "paketo-buildpacks/maven:cache" from cache
Restoring metadata for "paketo-buildpacks/spring-boot:helper" from app image
Restoring metadata for "paketo-buildpacks/spring-boot:spring-cloud-bindings" from app image
Restoring metadata for "paketo-buildpacks/spring-boot:web-application-type" from app image
Layer cache not found
```
@matthewmcnew matthewmcnew merged commit f695816 into main Oct 29, 2021
@matthewmcnew matthewmcnew deleted the fix-home-dir-anaylze branch October 29, 2021 21:30
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 this pull request may close these issues.

Support registry cache in a private registry
6 participants