diff --git a/README.md b/README.md index dda1cff..7c72abc 100644 --- a/README.md +++ b/README.md @@ -62,6 +62,7 @@ A collection of delicious docker recipes. ## Automation +- [x] cronicle - [x] drone-rsync-arm - [x] drone-scp-arm - [x] drone-ssh-arm diff --git a/cronicle/Dockerfile b/cronicle/Dockerfile new file mode 100644 index 0000000..5f69e72 --- /dev/null +++ b/cronicle/Dockerfile @@ -0,0 +1,20 @@ +# +# Dockerfile for cronicle +# + +FROM node:alpine +MAINTAINER EasyPi Software Foundation + +RUN set -xe \ + && apk add --no-cache curl tar \ + && curl -sSL https://raw.githubusercontent.com/jhuckaby/Cronicle/master/bin/install.js | node + +WORKDIR /opt/cronicle +VOLUME /opt/cronicle/conf + +ENV CRONICLE_foreground=1 + +EXPOSE 3012 + +ENTRYPOINT ["bin/control.sh"] +CMD ["start"] diff --git a/cronicle/README.md b/cronicle/README.md new file mode 100644 index 0000000..7600298 --- /dev/null +++ b/cronicle/README.md @@ -0,0 +1,21 @@ +cronicle +======== + +[Cronicle][1] is a multi-server task scheduler and runner, with a web based +front-end UI. + +It handles both scheduled, repeating and on-demand jobs, targeting any number +of slave servers, with real-time stats and live log viewer. + +Written in Node.js, proudly open source and MIT licensed. + +```bash +$ mkdir -p data/{conf,data} +$ wget -P data https://github.com/jhuckaby/Cronicle/raw/master/sample_conf/config.json +$ wget -P data https://github.com/jhuckaby/Cronicle/raw/master/sample_conf/setup.json +$ docker-compose run --rm cronicle setup +$ docker-compose up -d +$ curl http://127.0.0.1:3012 +``` + +[1]: http://cronicle.net/ diff --git a/cronicle/docker-compose.yml b/cronicle/docker-compose.yml new file mode 100644 index 0000000..5d62d9a --- /dev/null +++ b/cronicle/docker-compose.yml @@ -0,0 +1,11 @@ +version: "3.8" +services: + cronicle: + image: vimagick/cronicle + ports: + - "3012:3012" + volumes: + - ./data/conf:/opt/cronicle/conf + - ./data/data:/opt/cronicle/data + hostname: cronicle-master + restart: unless-stopped