Public Repository

Last pushed: a year ago
Short Description
Small docker for maintaining Elasticsearch cluster/node
Full Description

Run the following command to execute it

docker run -d -e INTERVAL_IN_HOURS=24 -e OLDER_THAN_IN_DAYS="1" --link elasticsearch-merapar merapar/es-cleanup

Dockerfile looks like:

FROM    python:2.7

RUN pip install elasticsearch-curator==3.4.0

ENV INTERVAL_IN_HOURS=24
ENV OLDER_THAN_IN_DAYS="7"

CMD while true; do curator --host elasticsearch delete indices --older-than $OLDER_THAN_IN_DAYS --time-unit=days --timestring '%Y.%m.%d'; curator --host elasticsearch delete indices --older-than $OLDER_THAN_IN_DAYS --time-unit=days --timestring '%Y-%m-%d'; sleep $(( 60*60*$INTERVAL_IN_HOURS )); done
Docker Pull Command
Owner
merapar

Comments (0)