add TPOT_PERSISTENCE_CYCLES setting

- makes logrotate cycles configurable, instead of static 30 days
- adjust .env / env.example for setting cycles
- adjust tpotinit dockerfile to include envsubst
- add logrotate.template
- add checks / validations
This commit is contained in:
t3chn0m4g3
2025-05-13 15:32:00 +02:00
parent 3372a23eb2
commit 9455877fa3
6 changed files with 130 additions and 3 deletions

View File

@ -13,6 +13,7 @@ RUN apk --no-cache -U upgrade && \
conntrack-tools \
cracklib \
curl \
envsubst \
ethtool \
figlet \
git \
@ -32,7 +33,7 @@ RUN apk --no-cache -U upgrade && \
# Setup user, logrotate permissions
addgroup -g 2000 tpot && \
adduser -S -s /bin/ash -u 2000 -D -g 2000 tpot && \
chmod 0600 /opt/tpot/etc/logrotate/logrotate.conf && \
chmod 0600 /opt/tpot/etc/logrotate/logrotate.* && \
#
# Clean up
apk del --purge git && \