Sign inSign up

adarnimrod/cron

By adarnimrod

•Updated over 5 years ago

A Docker image for running a Cron daemon, actually running Supersonic.

Image
0

432

adarnimrod/cron repository overview

⁠Cron docker

pipeline status

A Docker image for running a Cron daemon, actually running Supersonic⁠.

⁠Usage

There are possible usage patterns for this image. The first is using it in a multi-stage image build as the source of the supersonic binary to incorporate in your own image like so:

FROM registry.shore.co.il/cron as supersonic

FROM alpine:latest
COPY --from=supersonic /usr/local/bin/supersonic /usr/local/bin/

The other pattern is building on top of this image to run some periodic tasks. The ONBUILD commands will copy the crontab file and validate it. Just copy whatever scripts and install whatever packages you need, like so:

FROM registry.shore.co.il/cron
COPY script /usr/local/bin/
USER root
RUN apk add --update --no-cache aws-cli
USER nobody

⁠License

This software is licensed under the MIT license (see LICENSE.txt).

⁠Author Information

Nimrod Adar, contact me⁠ or visit my website⁠. Patches are welcome via git send-email⁠. The repository is located at: https://git.shore.co.il/explore/⁠.

Tag summary

Content type

Image

Digest

Size

9.7 MB

Last updated

over 5 years ago

docker pull adarnimrod/cron