Welcome to the Linux Foundation Forum!

Lab 11. Automated CD with Argo CD

Options

The lab is requesting us to use this snippet: https://gist.github.com/eeganlf/33f4c49a5e5a0d355b2655c6c5a7ee68

However my docker images are not tagged with GIT_COMMIT tag and argo cannot pull the docker image:
Back-off pulling image "docker.io/XXXX/vote:fe0e0bfc289b480453b652515820cdaa2dec66e5"

Am I missing something

Answers

  • jacqueminv
    jacqueminv Posts: 6
    Options

    Hi @kzwolenik, GIT_COMMIT is an env variable that is added by jenkins when a build runs. So it's always available. When the build starts, one of the first thing done is to checkout the source repo. When doing so, GIT_COMMIT is initialized to the value of the HEAD commit.

    Is your argocd application pointing to the right git repo?

  • luisviveropena
    luisviveropena Posts: 1,163
    Options

    Hi @kzwolenik,

    Error message "Back-off pulling image" could mean more than one thing, but basically it means it's not reaching or able to pull the associated image. Can you double check on the GIT configuration of Argo CD, credentials and so, please?

    Regards,
    Luis.

  • ericegan
    ericegan Posts: 28
    Options

    docker.io/XXXX/vote:fe0e0bfc289b480453b652515820cdaa2dec66e5
    The bolded XXXX should be your Dockerhub username I believe.

Categories

Upcoming Training