Skip to content
This repository has been archived by the owner on May 22, 2023. It is now read-only.
/ tickerd Public archive

A Docker process scheduler

License

Notifications You must be signed in to change notification settings

josh/tickerd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tickerd

A Docker process scheduler.

Usage

$ tickerd -interval=1h -- run-backup.sh

Dockerfile

FROM alpine:latest

RUN apk add --no-cache bash

RUN wget -O /usr/bin/tickerd https://github.com/josh/tickerd/releases/latest/download/tickerd-linux-amd64 && chmod +x /usr/bin/tickerd

CMD ["echo", "Hello, World!"]
ENTRYPOINT ["/usr/bin/tickerd"]

ENV TICKERD_HEALTHCHECK_PORT 9000
HEALTHCHECK --interval=30s --timeout=3s --start-period=3s --retries=1 \
  CMD ["/usr/bin/tickerd", "-healthcheck"]