https://github.com/vpro/garbage-cleaner
This project is used as a 'sidecar' in all statefull sets
https://github.com/vpro/garbage-cleaner
Last synced: about 1 year ago
JSON representation
This project is used as a 'sidecar' in all statefull sets
- Host: GitHub
- URL: https://github.com/vpro/garbage-cleaner
- Owner: vpro
- License: apache-2.0
- Created: 2024-08-15T10:17:43.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-25T18:53:13.000Z (over 1 year ago)
- Last Synced: 2025-02-16T15:17:21.417Z (over 1 year ago)
- Language: Shell
- Size: 61.5 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.adoc
- License: LICENSE
Awesome Lists containing this project
README
= Garbage cleaner docker image
This project is used as a 'side car' in all statefull sets.
Purges old files from a list of folders. Deletes all files not accessed for a specific time period.
(Used timing in minutes)
Usage:
[source]
----
docker run \
--env "PURGE_FOLDERS=cache,/assets" \
--env "LOG_FOLDERS="/data/logs" \
--env "FILE_AGE=2" \
--env "CRON_MOVELOGS=*/5 * * * *" \
--env "CRON_PURGE=0 3 * * *" \
garbage-cleaner
----
Also, it will clean up logs in /data/logs