From c64b9822a0dc96d3b7c1204a62eff48b15b5effd Mon Sep 17 00:00:00 2001 From: Ian Babrou Date: Sun, 22 Mar 2015 11:41:30 +0300 Subject: [PATCH] curator 3.0.1 on top of alpine --- Dockerfile | 12 ++++-------- README.md | 9 ++++++--- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5425304..35862a5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,6 @@ -FROM debian:wheezy -MAINTAINER Ian Babrou +FROM alpine:3.1 -RUN apt-get update && \ - apt-get -y upgrade && \ - apt-get install --no-install-recommends -y python2.7 python-pip +RUN apk --update add python py-pip && \ + pip install elasticsearch-curator==3.0.1 -RUN pip install elasticsearch-curator==2.1.1 - -ENTRYPOINT ["/usr/bin/python", "/usr/local/lib/python2.7/dist-packages/curator/curator_script.py"] +ENTRYPOINT ["/usr/bin/curator"] diff --git a/README.md b/README.md index b9421d6..abf95ef 100644 --- a/README.md +++ b/README.md @@ -1,17 +1,20 @@ # Curator in docker -This is dockerized version of elasticsearch curator, tool to manage time-based indices. +This is dockerized version of elasticsearch curator, +tool to manage time-based indices. ## Why this image -This image keeps up to date with curator releases and has tags in docker registry! +This image keeps up to date with curator releases and has tags +in the docker registry. It is also based on minimal `alpine` image, +resulting in just 50mb image. ## Usage Image entrypoint is set to curator script, so just run the image: ``` -docker run --rm bobrik/curator:2.1.0 --help +docker run --rm bobrik/curator:3.0.1 --help ``` Pick whatever version you need.