├── Dockerfile └── README.md /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM alpine:3.6 2 | 3 | RUN apk --no-cache add python py-setuptools py-pip gcc libffi py-cffi python-dev libffi-dev py-openssl musl-dev linux-headers openssl-dev libssl1.0 && \ 4 | pip install elasticsearch-curator==5.8.1 && \ 5 | pip install boto3==1.9.143 && \ 6 | pip install requests-aws4auth==0.9 && \ 7 | pip install cryptography==2.6.1 && \ 8 | apk del py-pip gcc python-dev libffi-dev musl-dev linux-headers openssl-dev && \ 9 | sed -i '/import sys/a urllib3.contrib.pyopenssl.inject_into_urllib3()' /usr/bin/curator && \ 10 | sed -i '/import sys/a import urllib3.contrib.pyopenssl' /usr/bin/curator && \ 11 | sed -i '/import sys/a import urllib3' /usr/bin/curator 12 | 13 | USER nobody:nobody 14 | 15 | ENTRYPOINT ["/usr/bin/curator"] 16 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Curator in docker 2 | 3 | This is dockerized version of elasticsearch curator, 4 | tool to manage time-based indices. 5 | 6 | ## Why this image 7 | 8 | This image keeps up to date with curator releases and has tags 9 | in the docker registry. It is also based on minimal `alpine` image, 10 | resulting in a just 50mb image. 11 | 12 | ## Usage 13 | 14 | Image entrypoint is set to curator script, so just run the image: 15 | 16 | ``` 17 | docker run --rm bobrik/curator:5.8.1 --help 18 | ``` 19 | 20 | Pick whatever version you need. 21 | --------------------------------------------------------------------------------