Skip to content
Snippets Groups Projects
Commit e0f08076 authored by ale's avatar ale
Browse files

Run daily curator cleanup jobs in the container

parent e4a36d09
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment