Singularity icon indicating copy to clipboard operation
Singularity copied to clipboard

Does Singularity support docker image force pull

Open sourcec0de opened this issue 11 years ago • 7 comments

I would like to have a deploy object contain a tag of latest, but its not pulling the latest docker image after the first pull. I know in Marathon you can specify forcePullImage and that gets passed to mesos. Is there a way to replicate this behavior in Singularity do we need a pull request?

sourcec0de avatar Jun 25 '15 22:06 sourcec0de

I believe forcePullImage was added as of mesos 0.22, right now Singularity does not pass that field along, it would need to be added

ssalinas avatar Jun 26 '15 13:06 ssalinas

Certainly needed

ZiaBhatti avatar Jun 26 '15 16:06 ZiaBhatti

After carefully thinking about my deployment scheme not force pulling an image makes the most sense in a production environment. You absolutely need to be tagging the docker images and pulling specific versions otherwise a rollback scenario doesn't even work. You can't roll back to latest. forcePullImage makes the most sense in a development environment where you're maybe pushing a new image and you want to avoid tagging.

This feature may not be as important as I originally thought. Perhaps another layer I.E a cli tool that can generate the deploy config would be a good option and in that tool you could query a docker repo for the version you want to deploy.

sourcec0de avatar Jun 26 '15 17:06 sourcec0de

+1 for not pulling latest all the time, it's always iffy to put code you may not have seen before into production (or any environment really...)

That said, feel free to leave this issue open and we can implement the feature in order to keep in line with options available in mesos. also, There are no cli tools for Singularity deploy json currently, but go ahead and PR it if you have one

ssalinas avatar Jun 26 '15 17:06 ssalinas

:smiling_imp: SOOONNN!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

sourcec0de avatar Jun 26 '15 17:06 sourcec0de

Does anyone care what language it's in? I'll likely write it in go and have the build server git release a binary if I just have it in a separate repo.

sourcec0de avatar Jun 26 '15 17:06 sourcec0de

added in https://github.com/HubSpot/Singularity/pull/657

tpetr avatar Oct 14 '15 19:10 tpetr