-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
39 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,17 @@ | ||
FROM alpine:3.8 | ||
FROM bitnami/elasticsearch-curator:5.8.1 | ||
|
||
ENV CURATOR_VERSION=5.8.1 | ||
USER root | ||
|
||
RUN apk --update add --no-cache tini python py-pip \ | ||
&& pip install elasticsearch-curator==${CURATOR_VERSION} | ||
RUN install_packages cron && \ | ||
echo \ | ||
'* * * * *' \ | ||
root \ | ||
LC_ALL=C.UTF-8 LANG=C.UTF-8 \ | ||
/opt/bitnami/python/bin/curator \ | ||
--config=/usr/share/curator/config/curator.yml \ | ||
/usr/share/curator/config/delete_log_files_curator.yml \ | ||
'>/proc/1/fd/1' '2>/proc/1/fd/2' \ | ||
>>/etc/crontab | ||
|
||
COPY entrypoint.sh / | ||
|
||
WORKDIR /usr/share/curator | ||
COPY config ./config | ||
|
||
ENTRYPOINT ["/entrypoint.sh"] | ||
ENTRYPOINT ["cron"] | ||
CMD ["-f", "-L8"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,12 @@ | ||
--- | ||
# Remember, leave a key empty if there is no value. None will be a string, | ||
# not a Python "NoneType" | ||
# Curator configuration | ||
# https://www.elastic.co/guide/en/elasticsearch/client/curator/current/configfile.html | ||
|
||
client: | ||
hosts: | ||
- ${ELASTICSEARCH_HOST} | ||
- elasticsearch | ||
port: 9200 | ||
url_prefix: | ||
use_ssl: False | ||
certificate: | ||
client_cert: | ||
client_key: | ||
aws_key: | ||
aws_secret_key: | ||
aws_region: | ||
ssl_no_validate: False | ||
http_auth: | ||
timeout: 30 | ||
master_only: False | ||
http_auth: elastic:changeme | ||
|
||
logging: | ||
loglevel: DEBUG | ||
logfile: | ||
loglevel: INFO | ||
logformat: default |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.