Sign inSign up

topdockercat/webcron

By topdockercat

Updated about 5 years ago

A simple Python webcron script that makes web requests at regular intervals to multiple urls.

Image
0

3.1K

topdockercat/webcron repository overview

Webcron

A simple Python webcron script that makes web requests at regular intervals to multiple urls.

Config file (jobs.json)

The configuration file is a json formated list of jobs. A job is defined by its name, the url to be requested and the request interval in seconds.

Example:

[
    {
        "name": "Google HTTP",
        "url": "http://google.com",
        "interval": 5
    },
    {
        "name": "Google HTTPS",
        "url": "https://google.com",
        "interval": 10
    }
]

Volumes

  • Config path: The path to configuration folder
-v /path/to/local/storage:/usr/src/app/config

Start container

docker run -d --name=webcron -v -v /path/to/local/storage:/usr/src/app/config:r topdockercat/webcron:latest

Tag summary

Content type

Image

Digest

Size

46.1 MB

Last updated

about 5 years ago

docker pull topdockercat/webcron