Sign inSign up

metcarob/dockjob

By metcarob

•Updated almost 3 years ago

DockJob is a job scheduler with a web UI - designed to run inside a container.

Image
5

3.8K

metcarob/dockjob repository overview

⁠DockJob (https://github.com/rmetcalf9/dockJob⁠)

Job scheduler with a web UI - designed to run inside a container. I am creating this project to build myself a small light weight job scheduler. I need this because I am building a docker stack and I want to run a scheduler inside the stack to replace the use of cron. My searches for alternatives (https://github.com/jjethwa/rundeck/issues/101⁠) have hit a deadend, so I thought I would put together a simple API based python application.

  • Doesn't do https or security itself - Kong⁠ will also be deployed to the stack to provide this
  • Works in any web context
  • Works from any port
  • Main interface is a simple json api
  • UI developed which connects to api.
  • Will run any command inside the container - but I am really focused to run wget commands. This makes use of security provided by docker networking.
  • Keeps logs of recent runs of jobs.
  • INITIALLY won't use a data store as a backend. On restart will lose all data, configured jobs, logs, etc.
  • 'Run now' button as well as scheduled run

⁠Running DockJob to check it out...

On a machine with docker installed run the following command:

docker run -d -p 80:80 -e APIAPP_APIURL='http://localhost:80/api' -e'APIAPP_APIDOCSURL=http://localhost:80/apidocs/' metcarob/dockjob

Visit http://localhost/frontend⁠

In this setup there is no user authentication or https. To run with these see compose examples⁠ for information on a more robust way to deploy it.

Tag summary

Content type

Image

Digest

sha256:c15e48836…

Size

460.7 MB

Last updated

almost 3 years ago

docker pull metcarob/dockjob:0.4.73