Skip to content

shrikrishnaholla/dq

Repository files navigation

dq

Task Scheduler for Docker Functions

DQ is an amalgamation of the best features of a job scheduler like resque and a serverless platform like AWS lambda. It is meant to be self-hosted and called using REST APIs. All tasks run on docker containers defined in a spec similar to compose called dq.yml

DQ

DQ won 4th place in the Docker 1.12 Hackathon

Features

  • Call a background task with arguments [Ex: sending email]
  • Schedule a recurring task [Ex: backing up db]
  • Run a background service that handles HTTP requests and auto scales based on load [voting, spam checking]

Requirements

To use some features like services, you will need Docker 1.12 or above

Usage

  • Create a dq.yml based on the sample in this repo
  • Create a network
    docker network create dq_net
  • Start redis
    docker run -d --name redis --net dq_net redis
  • Start DQ
    -v $(pwd)/dq.yml:/dq/dq.yml -v /var/run/docker.sock:/var/run/docker.sock \
    shrikrishna/dq```
    
    

Development

Fork/clone this repo and edit dq.yml

About

Task Scheduler for Docker Functions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published