Compare commits
30 Commits
1.0.2
...
fa39f8b7d4
| Author | SHA1 | Date | |
|---|---|---|---|
| fa39f8b7d4 | |||
| 1920c68eba | |||
| d293cbaef9 | |||
| 6ac07ec9a0 | |||
| ab73132553 | |||
| 76cdb2640e | |||
| f1f322d58a | |||
| bfbc0e22d7 | |||
| f3dc829111 | |||
| 9c3caf751e | |||
| 1ac78908ad | |||
| f990871798 | |||
| 2ecac58414 | |||
| 613393f328 | |||
| 30026b4e17 | |||
| 580845afe0 | |||
| d4aa8ff410 | |||
| b3436f3b2c | |||
| 4541df4c8a | |||
| 26c3a15c81 | |||
| e10acf4e46 | |||
| 2d8fb52b23 | |||
| 511704a90f | |||
| 70d6215ca3 | |||
| d759db2bb0 | |||
| c04d6febad | |||
| cad9b48ab9 | |||
| 327208391b | |||
| ee7034cba3 | |||
| 78f681fb41 |
79
.drone.yml
79
.drone.yml
@ -22,8 +22,6 @@ steps:
|
||||
when:
|
||||
ref:
|
||||
- refs/tags/**
|
||||
depends_on:
|
||||
- clone
|
||||
|
||||
# Set tags for main branch
|
||||
- name: make-tags
|
||||
@ -33,9 +31,6 @@ steps:
|
||||
when:
|
||||
ref:
|
||||
- refs/heads/main
|
||||
depends_on:
|
||||
- get-tags
|
||||
- clone
|
||||
|
||||
- name: make-tags-release
|
||||
image: node
|
||||
@ -44,12 +39,9 @@ steps:
|
||||
when:
|
||||
ref:
|
||||
- refs/tags/**
|
||||
depends_on:
|
||||
- get-tags
|
||||
- clone
|
||||
|
||||
# Build containers from main branch
|
||||
- name: build-gitea
|
||||
- name: build
|
||||
image: thegeeklab/drone-docker-buildx
|
||||
privileged: true
|
||||
settings:
|
||||
@ -63,53 +55,17 @@ steps:
|
||||
platforms:
|
||||
- linux/arm64
|
||||
- linux/amd64
|
||||
depends_on:
|
||||
- make-tags
|
||||
- make-tags-release
|
||||
|
||||
- name: build-github
|
||||
image: thegeeklab/drone-docker-buildx
|
||||
privileged: true
|
||||
settings:
|
||||
provenance: false
|
||||
registry: ghcr.io
|
||||
username:
|
||||
from_secret: docker_username
|
||||
password:
|
||||
from_secret: github_token
|
||||
repo: ghcr.io/mrmeeb/cronicle
|
||||
platforms:
|
||||
- linux/arm64
|
||||
- linux/amd64
|
||||
depends_on:
|
||||
- make-tags
|
||||
- make-tags-release
|
||||
|
||||
- name: release-gitea
|
||||
- name: release
|
||||
image: goreleaser/goreleaser
|
||||
environment:
|
||||
GITEA_TOKEN:
|
||||
from_secret: gitea_token
|
||||
commands:
|
||||
- goreleaser release -f .goreleaser-gitea.yaml
|
||||
- goreleaser release
|
||||
when:
|
||||
ref:
|
||||
- refs/tags/**
|
||||
depends_on:
|
||||
- build-gitea
|
||||
|
||||
- name: release-github
|
||||
image: goreleaser/goreleaser
|
||||
environment:
|
||||
GITHUB_TOKEN:
|
||||
from_secret: github_token
|
||||
commands:
|
||||
- goreleaser release -f .goreleaser-github.yaml
|
||||
when:
|
||||
ref:
|
||||
- refs/tags/**
|
||||
depends_on:
|
||||
- build-github
|
||||
|
||||
- name: notify
|
||||
image: plugins/slack
|
||||
@ -120,11 +76,6 @@ steps:
|
||||
settings:
|
||||
webhook:
|
||||
from_secret: slack_webhook
|
||||
depends_on:
|
||||
- release-gitea
|
||||
- release-github
|
||||
- build-github
|
||||
- build-gitea
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
@ -149,7 +100,7 @@ steps:
|
||||
- echo -n "develop-${DRONE_COMMIT_SHA:0:8}, develop" > .tags
|
||||
|
||||
# Build containers from develop branch
|
||||
- name: build-gitea
|
||||
- name: build
|
||||
image: thegeeklab/drone-docker-buildx
|
||||
privileged: true
|
||||
settings:
|
||||
@ -163,25 +114,6 @@ steps:
|
||||
platforms:
|
||||
- linux/arm64
|
||||
- linux/amd64
|
||||
depends_on:
|
||||
- make-tags
|
||||
|
||||
- name: build-github
|
||||
image: thegeeklab/drone-docker-buildx
|
||||
privileged: true
|
||||
settings:
|
||||
provenance: false
|
||||
registry: ghcr.io
|
||||
username:
|
||||
from_secret: docker_username
|
||||
password:
|
||||
from_secret: github_token
|
||||
repo: ghcr.io/mrmeeb/cronicle
|
||||
platforms:
|
||||
- linux/arm64
|
||||
- linux/amd64
|
||||
depends_on:
|
||||
- make-tags
|
||||
|
||||
- name: notify
|
||||
image: plugins/slack
|
||||
@ -192,6 +124,3 @@ steps:
|
||||
settings:
|
||||
webhook:
|
||||
from_secret: slack_webhook
|
||||
depends_on:
|
||||
- build-gitea
|
||||
- build-github
|
||||
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,3 +1,2 @@
|
||||
dist-gitea/
|
||||
dist-github/
|
||||
dist/
|
||||
.tags
|
||||
@ -1,20 +0,0 @@
|
||||
dist: dist-github
|
||||
|
||||
build:
|
||||
skip: true
|
||||
|
||||
archives:
|
||||
- format: binary
|
||||
|
||||
release:
|
||||
draft: true
|
||||
github:
|
||||
owner: MrMeeb
|
||||
name: cronicle-docker
|
||||
|
||||
changelog:
|
||||
sort: asc
|
||||
filters:
|
||||
exclude:
|
||||
- '^docs:'
|
||||
- '^test:'
|
||||
@ -1,5 +1,3 @@
|
||||
dist: dist-gitea
|
||||
|
||||
build:
|
||||
skip: true
|
||||
|
||||
38
README.md
38
README.md
@ -1,41 +1,17 @@
|
||||
# Cronicle Docker
|
||||
|
||||
 
|
||||
 
|
||||
|
||||
Dockerised Cronicle, based on the [Cronicle-Edge](https://github.com/cronicle-edge/cronicle-edge) fork of [Cronicle](https://github.com/jhuckaby/Cronicle). This container was built to include features I value in containers, namely logging to `stdout` and configurable `PUID` and `PGID`.
|
||||
Dockerised Cronicle, based on the [Cronicle-Edge](https://github.com/cronicle-edge/cronicle-edge) fork.
|
||||
|
||||
This container can function in both the **manager** and **worker** role.
|
||||
|
||||
## Links
|
||||
- :tea: [Gitea Repo (source)](https://git.mrmeeb.stream/MrMeeb/cronicle-docker)
|
||||
- :whale2: [Containers](https://git.mrmeeb.stream/MrMeeb/-/packages/container/cronicle/latest) (also published to GHCR)
|
||||
- :mirror: [GitHub mirror](https://github.com/MrMeeb/cronicle-docker)
|
||||
- :package: [Cronicle Repo](https://github.com/jhuckaby/Cronicle)
|
||||
- :package: [Cronicle-Edge Repo](https://github.com/cronicle-edge/cronicle-edge)
|
||||
Can function in both the **manager** and **worker** role.
|
||||
|
||||
*This repo is mirrored to GitHub*
|
||||
|
||||
## Overview
|
||||
|
||||
[**Cronicle**](https://github.com/jhuckaby/Cronicle) 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 worker servers, with real-time stats and live log viewer. It's basically a fancy [Cron](https://en.wikipedia.org/wiki/Cron) replacement written in [Node.js](https://nodejs.org/). You can give it simple shell commands, or write Plugins in virtually any language.
|
||||
|
||||

|
||||
|
||||
## Features at a Glance
|
||||
|
||||
* Single or multi-server setup.
|
||||
* Automated failover to backup servers.
|
||||
* Auto-discovery of nearby servers.
|
||||
* Real-time job status with live log viewer.
|
||||
* Plugins can be written in any language.
|
||||
* Schedule events in multiple timezones.
|
||||
* Optionally queue up long-running events.
|
||||
* Track CPU and memory usage for each job.
|
||||
* Historical stats with performance graphs.
|
||||
* Simple JSON messaging system for Plugins.
|
||||
* Web hooks for external notification systems.
|
||||
* Simple REST API for scheduling and running events.
|
||||
* API Keys for authenticating remote apps.
|
||||
## Links
|
||||
- :tea: [Gitea Repo (source)](https://git.mrmeeb.stream/MrMeeb/cronicle-docker)
|
||||
- :whale2: [Containers](https://git.mrmeeb.stream/MrMeeb/-/packages/container/cronicle/latest) - since I'm currently not also publishing them to ghcr.io
|
||||
- :mirror: [GitHub mirror](https://github.com/MrMeeb/cronicle-docker)
|
||||
|
||||
## Tags
|
||||
|
||||
|
||||
@ -104,21 +104,3 @@ else
|
||||
echo "'$MODE' is not a recognised appion for the MODE environment variable. Accepted appions are 'manager' and 'worker'."
|
||||
|
||||
fi
|
||||
|
||||
#Expose log directory
|
||||
if [ ! -d /config/cronicle/logs ]
|
||||
then
|
||||
|
||||
echo "Logs dir is missing, creating."
|
||||
|
||||
cp -r /app/cronicle/logs /config/cronicle/logs
|
||||
rm -rf /app/cronicle/logs
|
||||
ln -s /config/cronicle/logs /app/cronicle/logs
|
||||
else
|
||||
|
||||
echo "Logs dir already exists. Doesn't need creating."
|
||||
echo "Linking persistent logs dir back into Cronicle."
|
||||
rm -rf /app/cronicle/logs
|
||||
ln -s /config/cronicle/logs /app/cronicle/logs
|
||||
|
||||
fi
|
||||
Reference in New Issue
Block a user