Compare commits
No commits in common. "30026b4e177e8e1c87bba629c14c5f99930d83fa" and "b3436f3b2cf2ba56d8235aa3a3609a2d1d89498b" have entirely different histories.
30026b4e17
...
b3436f3b2c
75
.drone.yml
75
.drone.yml
@ -1,30 +1,22 @@
|
|||||||
|
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: build-release-images
|
name: build-multiarch-images
|
||||||
trigger:
|
|
||||||
event:
|
|
||||||
exclude:
|
|
||||||
- pull_request
|
|
||||||
ref:
|
|
||||||
- refs/tags/**
|
|
||||||
|
|
||||||
platform:
|
platform:
|
||||||
os: linux
|
os: linux
|
||||||
arch: amd64
|
arch: amd64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
# Set tags for main branch - release tag and 'latest'
|
- name: make-tags
|
||||||
- name: make-tags-main
|
|
||||||
image: node
|
image: node
|
||||||
commands:
|
commands:
|
||||||
- echo -n "${DRONE_TAG}, latest" > .tags
|
- echo -n "${DRONE_COMMIT_SHA:0:10}, latest" > .tags
|
||||||
|
|
||||||
# Build containers from main branch when released
|
- name: build
|
||||||
- name: build-main
|
|
||||||
image: thegeeklab/drone-docker-buildx
|
image: thegeeklab/drone-docker-buildx
|
||||||
privileged: true
|
privileged: true
|
||||||
settings:
|
settings:
|
||||||
provenance: false
|
|
||||||
registry: git.mrmeeb.stream
|
registry: git.mrmeeb.stream
|
||||||
username:
|
username:
|
||||||
from_secret: docker_username
|
from_secret: docker_username
|
||||||
@ -35,14 +27,6 @@ steps:
|
|||||||
- linux/arm64
|
- linux/arm64
|
||||||
- linux/amd64
|
- linux/amd64
|
||||||
|
|
||||||
- name: release
|
|
||||||
image: goreleaser/goreleaser
|
|
||||||
environment:
|
|
||||||
GITEA_TOKEN:
|
|
||||||
from_secret: gitea_token
|
|
||||||
commands:
|
|
||||||
- goreleaser release
|
|
||||||
|
|
||||||
- name: notify
|
- name: notify
|
||||||
image: plugins/slack
|
image: plugins/slack
|
||||||
when:
|
when:
|
||||||
@ -53,50 +37,9 @@ steps:
|
|||||||
webhook:
|
webhook:
|
||||||
from_secret: slack_webhook
|
from_secret: slack_webhook
|
||||||
|
|
||||||
---
|
|
||||||
kind: pipeline
|
|
||||||
type: docker
|
|
||||||
name: build-develop-images
|
|
||||||
trigger:
|
trigger:
|
||||||
event:
|
|
||||||
exclude:
|
|
||||||
- pull_request
|
|
||||||
branch:
|
branch:
|
||||||
- develop
|
- main
|
||||||
|
event:
|
||||||
platform:
|
exclude:
|
||||||
os: linux
|
- pull_request
|
||||||
arch: amd64
|
|
||||||
|
|
||||||
steps:
|
|
||||||
# Set tags for develop branch - git commit SHA and 'develop'
|
|
||||||
- name: make-tags-develop
|
|
||||||
image: node
|
|
||||||
commands:
|
|
||||||
- echo -n "${DRONE_COMMIT_SHA:0:8}, develop" > .tags
|
|
||||||
|
|
||||||
# Build containers from develop branch
|
|
||||||
- name: build-develop
|
|
||||||
image: thegeeklab/drone-docker-buildx
|
|
||||||
privileged: true
|
|
||||||
settings:
|
|
||||||
provenance: false
|
|
||||||
registry: git.mrmeeb.stream
|
|
||||||
username:
|
|
||||||
from_secret: docker_username
|
|
||||||
password:
|
|
||||||
from_secret: docker_password
|
|
||||||
repo: git.mrmeeb.stream/mrmeeb/cronicle
|
|
||||||
platforms:
|
|
||||||
- linux/arm64
|
|
||||||
- linux/amd64
|
|
||||||
|
|
||||||
- name: notify
|
|
||||||
image: plugins/slack
|
|
||||||
when:
|
|
||||||
status:
|
|
||||||
- success
|
|
||||||
- failure
|
|
||||||
settings:
|
|
||||||
webhook:
|
|
||||||
from_secret: slack_webhook
|
|
@ -1,25 +0,0 @@
|
|||||||
build:
|
|
||||||
skip: true
|
|
||||||
|
|
||||||
archives:
|
|
||||||
- format: binary
|
|
||||||
|
|
||||||
release:
|
|
||||||
draft: true
|
|
||||||
gitea:
|
|
||||||
owner: MrMeeb
|
|
||||||
name: cronicle-docker
|
|
||||||
|
|
||||||
changelog:
|
|
||||||
sort: asc
|
|
||||||
filters:
|
|
||||||
exclude:
|
|
||||||
- '^docs:'
|
|
||||||
- '^test:'
|
|
||||||
|
|
||||||
# .goreleaser.yaml
|
|
||||||
gitea_urls:
|
|
||||||
api: https://git.mrmeeb.stream/api/v1
|
|
||||||
download: https://git.mrmeeb.stream
|
|
||||||
# set to true if you use a self-signed certificate
|
|
||||||
skip_tls_verify: false
|
|
20
README.md
20
README.md
@ -1,16 +1,19 @@
|
|||||||
# Cronicle Docker
|
# Cronicle Docker
|
||||||
|
|
||||||
|
[](https://drone.mrmeeb.stream/MrMeeb/cronicle-docker) - _Every new commit triggers a build. I'm lazy._
|
||||||
|
|
||||||
|
|
||||||
Dockerised Cronicle, based on the [Cronicle-Edge](https://github.com/cronicle-edge/cronicle-edge) fork.
|
Dockerised Cronicle, based on the [Cronicle-Edge](https://github.com/cronicle-edge/cronicle-edge) fork.
|
||||||
|
|
||||||
Can function in both the **manager** and **worker** role.
|
Can function in both the **manager** and **worker** role.
|
||||||
|
|
||||||
## Running
|
## Running
|
||||||
|
|
||||||
`config.json`, located in `/config/cronicle/conf/config.json`, is automatically generated on the first run of Cronicle in 'manager' mode. This file must be kept identical between the manager and any workers it controls.
|
`config.json`, located in `/config/config.json`, is automatically generated on the first run of Cronicle in 'manager' mode. This file must be kept identical between the manager and any workers it controls.
|
||||||
|
|
||||||
If you want to configure Cronicle before first run (e.g to use a different storage engine), download `config_sample.json` and adjust accordingly before placing in `/config/cronicle/conf/config.json`.
|
If you want to configure Cronicle before first run, download `config_sample.json` and adjust accordingly before placing in `/config/config.json`.
|
||||||
|
|
||||||
:exclamation: NOTE: You must define the hostname of the container. Cronicle expects the hostname to remain the same, so the randomly-generated container hostname can cause problems if it changes. :exclamation:
|
NOTE: You must define the hostname of the container. Cronicle expects the hostname to remain the same, so the randomly-generated container hostname can cause problems if it changes.
|
||||||
|
|
||||||
### Docker CLI
|
### Docker CLI
|
||||||
```
|
```
|
||||||
@ -18,9 +21,6 @@ docker run -d --name cronicle \
|
|||||||
--hostname cronicle-manager \
|
--hostname cronicle-manager \
|
||||||
-p 3012:3012 \
|
-p 3012:3012 \
|
||||||
-e MODE=manager \
|
-e MODE=manager \
|
||||||
-e PUID=1000 \
|
|
||||||
-e PGID=1000 \
|
|
||||||
-e TZ=Europe/London \
|
|
||||||
-v {path on host}:/config
|
-v {path on host}:/config
|
||||||
git.mrmeeb.stream/mrmeeb/cronicle:latest
|
git.mrmeeb.stream/mrmeeb/cronicle:latest
|
||||||
```
|
```
|
||||||
@ -41,14 +41,11 @@ services:
|
|||||||
- {path on host}:/config
|
- {path on host}:/config
|
||||||
environment:
|
environment:
|
||||||
- MODE=manager
|
- MODE=manager
|
||||||
- PUID=1000
|
|
||||||
- PGID=1000
|
|
||||||
- TZ=Europe/London
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Custom Scripts
|
## Custom Scripts
|
||||||
|
|
||||||
This container automatically checks for scripts in `/config/init` and runs them at startup. This could be useful if you need to install additional applications into a worker container so it can execute jobs.
|
This container automatically checks for scripts in `/config/init` and runs them at startup of the container. This could be useful if you need to install additional applications into a worker container so it can execute any jobs.
|
||||||
|
|
||||||
## Ports
|
## Ports
|
||||||
|
|
||||||
@ -66,6 +63,3 @@ This container automatically checks for scripts in `/config/init` and runs them
|
|||||||
|Variable|Options|Default|Description|
|
|Variable|Options|Default|Description|
|
||||||
|--------|-------|-------|-------|
|
|--------|-------|-------|-------|
|
||||||
|MODE |manager, worker|manager|Determines what mode Cronicle runs in
|
|MODE |manager, worker|manager|Determines what mode Cronicle runs in
|
||||||
|PUID |int |1000 |Sets the UID of the user Cronicle runs under
|
|
||||||
|PGID |int |1000 |Sets the GID of the user Cronicle runs under
|
|
||||||
|TZ |[List of valid TZs](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List) |UTC |Sets the timezone of the container and by extension Cronicle
|
|
Loading…
x
Reference in New Issue
Block a user