dockertest icon indicating copy to clipboard operation
dockertest copied to clipboard

feat: use creds helper

Open shaxbee opened this issue 2 years ago • 7 comments

Support pulling images from registries using docker credentials helper. Backported auth related changes from go-dockerclient, when image is not found locally and image contains registry name credential helper will be called when available.

Checklist

  • [x] I have read the contributing guidelines and signed the CLA.
  • [x] I have read the security policy.
  • [x] I confirm that this pull request does not address a security vulnerability. If this pull request addresses a security vulnerability, I confirm that I got green light (please contact [email protected]) from the maintainers to push the changes.
  • [ ] I have added tests that prove my fix is effective or that my feature works.
  • [ ] I have added necessary documentation within the code base (if appropriate).

shaxbee avatar Mar 15 '22 07:03 shaxbee

Codecov Report

:exclamation: No coverage uploaded for pull request base (v3@148c3da). Click here to learn what that means. The diff coverage is n/a.

@@          Coverage Diff          @@
##             v3     #346   +/-   ##
=====================================
  Coverage      ?   53.64%           
=====================================
  Files         ?        1           
  Lines         ?      343           
  Branches      ?        0           
=====================================
  Hits          ?      184           
  Misses        ?      121           
  Partials      ?       38           

codecov[bot] avatar Mar 15 '22 07:03 codecov[bot]

In order to write automated tests for this PR we would need private image and docker credentials helper provisioned in CI. I tested it successfully with private images that we're using now :-)

shaxbee avatar Mar 19 '22 10:03 shaxbee

Could you show a screen cast of this working with a private repo please? :)

aeneasr avatar Mar 22 '22 14:03 aeneasr

ping @shaxbee please see above

aeneasr avatar Apr 11 '22 15:04 aeneasr

While the PR is being worked on I will mark it as a draft. That declutters our review backlog :)

Once you're done with your changes and would like someone to review them, mark the PR as ready and request a review from one of the maintainers.

Thank you!

aeneasr avatar Jul 19 '22 14:07 aeneasr

@shaxbee could you follow up here? This is a useful addition.

tmc avatar Sep 12 '22 02:09 tmc

Any news regarding this one?

vic3lord avatar Oct 03 '22 10:10 vic3lord