alpine linux logrotate docker build
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
CODEOWNERS
Dockerfile
LICENSE
Makefile
README.md
clean-completed-pods.sh
load-and-sleep.sh
logrotate.conf
run-logrotate
run-logrotate.sh

README.md

logrotate

alpine linux logrotate docker build

purpose

this container is built to be used as a sidecar container for handling log rotations as part of the samsung_cnct central logging project. this container will be used by the per-node log aggregator to handle node-level log rotatations.

entrypoint

the script load-and-sleep.sh will load logrotate's execution script into the 15 minute periodic run folder. the execution script is /run-logrotate and contains a call to execute logrotate with the below config file.

config

the config file is landed at /logrotate.conf. If you wish to override it, land a new config to the same spot. the config assumes all log files are being landed at /var/log/containers/* where the final wildcard is the pod unique identifier. logrotate does not have a recursive option, so currently this will go two levels deep looking for logs