Compare commits
3 Commits
6ac07ec9a0
...
fa39f8b7d4
Author | SHA1 | Date | |
---|---|---|---|
fa39f8b7d4 | |||
1920c68eba | |||
d293cbaef9 |
@ -15,14 +15,15 @@ ARG CRONICLE_EDGE_VERSION=1.6.2
|
||||
ENV CRONICLE_foreground=1
|
||||
ENV CRONICLE_echo=1
|
||||
ENV CRONICLE_color=1
|
||||
ENV EDITOR=vi
|
||||
ENV EDITOR=nano
|
||||
ENV MODE=manager
|
||||
ENV PUID=1000
|
||||
ENV PGID=1000
|
||||
ENV TZ=UTC
|
||||
ENV LOG_LEVEL=9
|
||||
|
||||
#Get required packages
|
||||
RUN apk update && apk add tzdata curl shadow bash xz git procps nodejs npm
|
||||
RUN apk update && apk add tzdata curl shadow bash xz git procps nodejs npm nano
|
||||
|
||||
#Make folders
|
||||
RUN mkdir /config && \
|
||||
|
12
README.md
12
README.md
@ -6,6 +6,13 @@ Dockerised Cronicle, based on the [Cronicle-Edge](https://github.com/cronicle-ed
|
||||
|
||||
Can function in both the **manager** and **worker** role.
|
||||
|
||||
*This repo is mirrored to GitHub*
|
||||
|
||||
## 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
|
||||
|
||||
|Tag |Description|
|
||||
@ -19,9 +26,9 @@ Tags relating to releases are also available, for locking in on a specific versi
|
||||
|
||||
`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.
|
||||
|
||||
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 (e.g to use a different storage engine), download `config_sample.json` and adjust accordingly before placing in `/config/cronicle/conf/config.json`. Make sure to change the `secret`!
|
||||
|
||||
: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:
|
||||
:exclamation: 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:
|
||||
|
||||
### Docker CLI
|
||||
```
|
||||
@ -80,3 +87,4 @@ This container automatically checks for scripts in `/config/init` and runs them
|
||||
|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
|
||||
|LOG_LEVEL|1-10 |9 |Sets log level from `1` (quietest) to `10` (loudest)|
|
||||
|
@ -21,6 +21,7 @@ PUID=${PUID}
|
||||
PGID=${PGID}
|
||||
TZ=${TZ}
|
||||
MODE=${MODE}
|
||||
LOG_LEVEL=${LOG_LEVEL}
|
||||
----------------------------------------------------------------------
|
||||
"
|
||||
|
||||
|
@ -1,3 +1,3 @@
|
||||
#!/command/with-contenv bash
|
||||
# shellcheck shell=bash
|
||||
exec s6-setuidgid cronicle node /app/cronicle/lib/main.js --color 1
|
||||
exec s6-setuidgid cronicle node /app/cronicle/lib/main.js --debug_level ${LOG_LEVEL} --color ${CRONICLE_color}
|
Loading…
x
Reference in New Issue
Block a user