feat(ext/curator): Update to v8
Curator is now major version locked with Elasticsearch. https://www.elastic.co/guide/en/elasticsearch/client/curator/current/versions.html
This commit is contained in:
parent
ba06c5458a
commit
6db3e37334
|
@ -1,17 +1,9 @@
|
||||||
FROM bitnami/elasticsearch-curator:5.8.1
|
FROM untergeek/curator:8.0.2
|
||||||
|
|
||||||
USER root
|
USER root
|
||||||
|
|
||||||
RUN install_packages cron && \
|
RUN >>/var/spool/cron/crontabs/nobody \
|
||||||
echo \
|
echo '* * * * * /curator/curator /.curator/delete_log_files_curator.yml'
|
||||||
'* * * * *' \
|
|
||||||
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
|
|
||||||
|
|
||||||
ENTRYPOINT ["cron"]
|
ENTRYPOINT ["crond"]
|
||||||
CMD ["-f", "-L8"]
|
CMD ["-f", "-d8"]
|
||||||
|
|
|
@ -1,11 +1,12 @@
|
||||||
# Curator configuration
|
# Curator configuration
|
||||||
# https://www.elastic.co/guide/en/elasticsearch/client/curator/current/configfile.html
|
# https://www.elastic.co/guide/en/elasticsearch/client/curator/current/configfile.html
|
||||||
|
|
||||||
|
elasticsearch:
|
||||||
client:
|
client:
|
||||||
hosts:
|
hosts: [ http://elasticsearch:9200 ]
|
||||||
- elasticsearch
|
other_settings:
|
||||||
port: 9200
|
username: elastic
|
||||||
http_auth: 'elastic:changeme'
|
password: ${ELASTIC_PASSWORD}
|
||||||
|
|
||||||
logging:
|
logging:
|
||||||
loglevel: INFO
|
loglevel: INFO
|
||||||
|
|
|
@ -6,8 +6,10 @@ services:
|
||||||
context: extensions/curator/
|
context: extensions/curator/
|
||||||
init: true
|
init: true
|
||||||
volumes:
|
volumes:
|
||||||
- ./extensions/curator/config/curator.yml:/usr/share/curator/config/curator.yml:ro,Z
|
- ./extensions/curator/config/curator.yml:/.curator/curator.yml:ro,Z
|
||||||
- ./extensions/curator/config/delete_log_files_curator.yml:/usr/share/curator/config/delete_log_files_curator.yml:ro,Z
|
- ./extensions/curator/config/delete_log_files_curator.yml:/.curator/delete_log_files_curator.yml:ro,Z
|
||||||
|
environment:
|
||||||
|
ELASTIC_PASSWORD: ${ELASTIC_PASSWORD:-}
|
||||||
networks:
|
networks:
|
||||||
- elk
|
- elk
|
||||||
depends_on:
|
depends_on:
|
||||||
|
|
Loading…
Reference in New Issue