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

Always pull the container image #272

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Commits on Feb 8, 2024

  1. Always pull the container image

    Yes, we could query the registry client and compare the digest of the local manifest and the remote manifest. But that is more complicated than just letting Docker do that for us. It's also relatively quick (compared with overall Dependabot execution) when no newer image is available:
    
    Fresh pull:
    
    ```
    $ time docker pull docker.io/library/alpine:latest
    latest: Pulling from library/alpine
    4abcf2066143: Pull complete
    Digest: sha256:c5b1261d6d3e43071626931fc004f70149baeba2c8ec672bd4f27761f8e1ad6b
    Status: Downloaded newer image for alpine:latest
    docker.io/library/alpine:latest
    
    ________________________________________________________
    Executed in    2.10 secs      fish           external
       usr time    1.21 millis    0.00 micros    1.21 millis
       sys time   16.02 millis  203.00 micros   15.82 millis
    ```
    
    Cached pull:
    
    ```
     time docker pull docker.io/library/alpine:latest
    latest: Pulling from library/alpine
    Digest: sha256:c5b1261d6d3e43071626931fc004f70149baeba2c8ec672bd4f27761f8e1ad6b
    Status: Image is up to date for alpine:latest
    docker.io/library/alpine:latest
    
    ________________________________________________________
    Executed in  894.23 millis    fish           external
       usr time    1.22 millis    0.00 micros    1.22 millis
       sys time   14.08 millis  240.00 micros   13.84 millis
    ```
    JamieMagee committed Feb 8, 2024
    Configuration menu
    Copy the full SHA
    eb0de81 View commit details
    Browse the repository at this point in the history

Commits on Feb 9, 2024

  1. Configuration menu
    Copy the full SHA
    31798ee View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    401c8b3 View commit details
    Browse the repository at this point in the history