Skip to content

Latest commit

 

History

History
31 lines (29 loc) · 596 Bytes

README.md

File metadata and controls

31 lines (29 loc) · 596 Bytes

docker-cron-job

Minimum docker image implementing a cron job.

Getting Started

Clone the repository:

git clone https://github.com/jan-brinkmann/docker-cron-job.git

Change into it:

cd docker-cron-job

Build the image:

docker build -t docker-cron-job .

Start a container:

docker run docker-cron-job

See

Hello World!

every minute (or whatever is defined in cron.sh).

Customizing

Apply any cron schedule by setting CRON_SCHEDULE. For instance, if you want to run your job once a day:

docker run -e CRON_SCHEDULE="0 0 * * *" docker-cron-job