Sign inSign up

jsonfry/curl-cron

By jsonfry

•Updated almost 9 years ago

Image
1

500K+

jsonfry/curl-cron repository overview

⁠jsonfry/curl-cron

Docker image that runs periodically runs a curl command

⁠Supported Architectures

  • amd64
  • arm64

⁠Usage

docker run -d [OPTIONS] jsonfry/curl-cron
⁠Required Parameters:
  • -e OPTIONS=<OPTIONS>: curl command options
  • -e CRON_SCHEDULE="0 1 * * *": specifies when cron job starts (details⁠), e.g. 0 1 * * * (runs every night at 1:00).
⁠Optional parameters:
  • now: run container once and exit (no cron scheduling).

⁠Examples:

Run every hour with cron schedule (container keeps running):

docker run -d \
    -e OPTIONS=example.com \
    -e CRON_SCHEDULE="0 1 * * *" \
    jsonfry/curl-cron

Run just once (container is deleted afterwards):

docker run --rm \
    -e OPTIONS=example.com \
    jsonfry/curl-cron now

Tag summary

Content type

Image

Digest

Size

2.6 MB

Last updated

almost 9 years ago

docker pull jsonfry/curl-cron