diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..e9fa526 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,5 @@ +# Changelog + +## 4.2.6 + +* Package Curator v4.2.6. diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..dadc805 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +FROM alpine:3.5 + +LABEL maintainer "Zappi DevOps " + +ARG APP_DEPS="python py-setuptools" +ARG BUILD_DEPS="py-pip" +ARG CURATOR_VERSION="4.2.6" + +RUN apk --update add ${APP_DEPS} ${BUILD_DEPS} && \ + pip install elasticsearch-curator==${CURATOR_VERSION} && \ + apk del ${BUILD_DEPS} && \ + rm -rf /var/cache/apk/* + +ENTRYPOINT ["/usr/bin/curator"] diff --git a/README.md b/README.md index e92fef9..72cf45d 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,27 @@ # docker-elasticsearch-curator -Elasticsearch Curator helps you curate, or manage, your Elasticsearch indices and snapshots + +[![CircleCI](https://circleci.com/gh/Intellection/docker-elasticsearch-curator/tree/master.svg?style=shield&circle-token=dbb2e1eb99522d9dd8d5377d913fffd78a485942)](https://circleci.com/gh/Intellection/docker-elasticsearch-curator/tree/master) + +Elasticsearch Curator helps you curate, or manage, your Elasticsearch indices +and snapshots. + +## Usage + +``` +$ docker run -it zappi/elasticsearch-curator --help +Usage: curator [OPTIONS] ACTION_FILE + + Curator for Elasticsearch indices. + + See http://elastic.co/guide/en/elasticsearch/client/curator/current + +Options: + --config PATH Path to configuration file. Default: ~/.curator/curator.yml + --dry-run Do not perform any changes. + --version Show the version and exit. + --help Show this message and exit. +``` + +For more details [see official documentation][1]. + +[1]: https://www.elastic.co/guide/en/elasticsearch/client/curator/current/index.html diff --git a/circle.yml b/circle.yml new file mode 100644 index 0000000..bc05753 --- /dev/null +++ b/circle.yml @@ -0,0 +1,14 @@ +--- +machine: + pre: + - curl -sSL https://s3.amazonaws.com/circle-downloads/install-circleci-docker.sh | bash -s -- 1.10.0 + environment: + IMAGE_NAME: 'zappi/elasticsearch-curator' + services: + - docker + +test: + pre: + - docker build --tag=$IMAGE_NAME . + override: + - docker run $IMAGE_NAME --version