forked from Gerrrr/docker-elasticsearch-curator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
44 lines (34 loc) · 1.32 KB
/
Dockerfile
File metadata and controls
44 lines (34 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
FROM python:2.7
# grab gosu for easy step-down from root
RUN gpg --keyserver ha.pool.sks-keyservers.net --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4
RUN arch="$(dpkg --print-architecture)" \
&& set -x \
&& curl -o /usr/local/bin/gosu -fSL "https://github.com/tianon/gosu/releases/download/1.3/gosu-$arch" \
&& curl -o /usr/local/bin/gosu.asc -fSL "https://github.com/tianon/gosu/releases/download/1.3/gosu-$arch.asc" \
&& gpg --verify /usr/local/bin/gosu.asc \
&& rm /usr/local/bin/gosu.asc \
&& chmod +x /usr/local/bin/gosu
# add our user and group first to make sure their IDs get assigned consistently, regardless of whatever dependencies get added
RUN groupadd -r curator && useradd -r -g curator curator
RUN apt-get update && apt-get install -y gettext-base
RUN pip install elasticsearch-curator==5.1.1
COPY docker-entrypoint.sh /
COPY script.sh /
RUN chmod +x /script.sh
COPY curator.yml.tmpl /
COPY snapshot.yml.tmpl /
COPY delete.yml.tmpl /
ENV SSL_NO_VALIDATE False
ENV USE_SSL True
ENV TIMEOUT 30
ENV MASTER_ONLY False
ENV LOG_LEVEL INFO
ENV LOG_FORMAT default
ENV BLACK_LIST ['elasticsearch', 'urllib3']
ENV ELASTICSEARCH_HOSTS 127.0.0.1
ENV ELASTICSEARCH_PORT 9200
ENV INTERVAL_IN_HOURS=24
ENV DELETE_OLDER_THAN_IN_DAYS=20
ENV SNAPSHOT_OLDER_THAN_IN_DAYS=20
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["curator"]