Docker lacks the native ability of scheduling one-shot jobs. This project written in go aims to solve this problem. You can run your one-shot jobs either as simple containers or in a swarm. Jobs can be scheduled with a cron syntax or can be exposed through an API. The project is still in pre-pre-alpha and should not be used in production! Feedback and contributions are highly appreciated!
https://github.com/palicao/docker-executor
评论:
whizack:
palicao:this looks very similar to https://www.nomadproject.io/ what is this attempting to accomplish that nomad, marathon, or k8s can't?
Compared to all the other solutions I've seen so far my project is much more simple: you don't need to install anything, just write a config file and mount it into a container. That said, of course this is just a very small pet project I wrote in a weekend and is not comparable with the tools you mentioned which are complete solutions. So if you are not just playing around, I highly suggest you to go with one of the solutions you mentioned!
