Commit e0f08076 authored by ale's avatar ale

Run daily curator cleanup jobs in the container

parent e4a36d09
Pipeline #1494 passed with stages
in 2 minutes and 35 seconds
......@@ -2,6 +2,7 @@ FROM registry.git.autistici.org/ai3/docker-chaperone-base:master
COPY conf /tmp/conf
COPY build.sh /tmp/build.sh
COPY curator-cron /usr/bin/curator-cron
RUN /tmp/build.sh && rm /tmp/build.sh
......
curator-cron.service: {
type: cron,
interval: "19 2 * * *",
command: "/usr/bin/curator-cron",
}
#!/bin/sh
test -x /usr/bin/curator || exit 0
# If you don't set a locale, curator doesn't run.
export LC_ALL=en_US.UTF-8
find /etc/elasticsearch/actions -type f -name 'maint_*.yml' \
| xargs -n 1 curator --config=/etc/elasticsearch/curator.yml
>/dev/null 2>&1
exit 0
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment