A Docker image for running a Cron daemon, actually running Supersonic.
432
A Docker image for running a Cron daemon, actually running Supersonic.
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
This software is licensed under the MIT license (see LICENSE.txt).
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/.
Content type
Image
Digest
Size
9.7 MB
Last updated
over 5 years ago
docker pull adarnimrod/cron