Uploaded image for project: 'DC/OS'
  1. DC/OS
  2. DCOS_OSS-2626

Allow forcePullImage for docker images for jobs scheduled by metronome

    Details

    • Zendesk Ticket IDs:
      7228

      Description

      As a user, I want my jobs to always use the up-to-date image. I have docker image tags, e.g. "staging" and "production", to which I regularly push.

      When a scheduled jobs runs, it pulls an image once and it then re-uses this one always, hence using an outdated image.

      I would like to set an option to activate "forcePullImage" for jobs in metronome.

      I tried adding in my job's setting: 

      "docker": {
       "image": "example.com:5001/my-app:staging",
       "forcePullImage": true
      }, 
      

      Yet this then produces a 422 error on PUT stating: "Additional properties are not allowed but found 'forcePullImage'."

      As a user, I don't always want to update the scheduled jobs' settings with unique image tags, e.g. "stage-build-1278", and then "stage-build-1279". I would need to automate that process as well and I find it tedious.

      I rather just have mesos pull force the up-to-date image from the docker registry.

      Sidenote: Another similar tool that has this feature in place is chronos. There, one can set the forcePullImage to true in the yml config and it then always uses the up-to-date docker image.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ken Ken Sipe
                Reporter:
                k0pernikus k0pernikus
                Team:
                Orchestration Team
                Watchers:
                Edgar Lanting, Ken Sipe
              • Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: