Skip to content
This repository has been archived by the owner on Mar 10, 2022. It is now read-only.

starudream/cronjob

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CronJob

Golang Docker License

Config

{
    "tasks": [
        {
            "name": "GitHub",
            "url": "https://api.github.com/",
            "body": "",
            "cron": "*/5 * * * * *",
            "timezone": "Asia/Shanghai",
            "method": "GET",
            "headers": {},
            "timeout": 30,
            "no_body": false,
            "decryption": "",
            "http_proxy": "http://127.0.0.1:7890",
            "https_proxy": "http://127.0.0.1:7890"
        }
    ]
}

Usage

Version Size Pull

docker pull starudream/cronjob
docker run -d \
    --name cronjob \
    --restart always \
    -v /opt/docker/cronjob/config.json:/config.json \
    starudream/cronjob:latest

License

Apache License 2.0