add LOG_LEVEL env var
This commit is contained in:
parent
98ab91f73f
commit
e8d9f7c8cd
@ -20,6 +20,7 @@ ENV MODE=manager
|
|||||||
ENV PUID=1000
|
ENV PUID=1000
|
||||||
ENV PGID=1000
|
ENV PGID=1000
|
||||||
ENV TZ=UTC
|
ENV TZ=UTC
|
||||||
|
ENV LOG_LEVEL=9
|
||||||
|
|
||||||
#Get required packages
|
#Get required packages
|
||||||
RUN apk update && apk add tzdata curl shadow bash xz git procps nodejs npm nano
|
RUN apk update && apk add tzdata curl shadow bash xz git procps nodejs npm nano
|
||||||
|
@ -87,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
|
|PUID |int |1000 |Sets the UID of the user Cronicle runs under
|
||||||
|PGID |int |1000 |Sets the GID 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
|
|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}
|
PGID=${PGID}
|
||||||
TZ=${TZ}
|
TZ=${TZ}
|
||||||
MODE=${MODE}
|
MODE=${MODE}
|
||||||
|
LOG_LEVEL=${LOG_LEVEL}
|
||||||
----------------------------------------------------------------------
|
----------------------------------------------------------------------
|
||||||
"
|
"
|
||||||
|
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
#!/command/with-contenv bash
|
#!/command/with-contenv bash
|
||||||
# shellcheck shell=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