Jelajahi Sumber

curator 3.0.1 on top of alpine

Ian Babrou 10 tahun lalu
induk
melakukan
c64b9822a0
2 mengubah file dengan 10 tambahan dan 11 penghapusan
  1. 4 8
      Dockerfile
  2. 6 3
      README.md

+ 4 - 8
Dockerfile

@@ -1,10 +1,6 @@
-FROM debian:wheezy
-MAINTAINER Ian Babrou <ibobrik@gmail.com>
+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"]

+ 6 - 3
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.