diff --git a/curator/.dockerignore b/curator/.dockerignore index 72e8ffc0db8aad71a934dd11e5968bd5109e54b4..91445b94f5921ddc8269189c6eda60e8ddd65531 100644 --- a/curator/.dockerignore +++ b/curator/.dockerignore @@ -1 +1,2 @@ * +!entrypoint diff --git a/curator/Dockerfile b/curator/Dockerfile index 7fdad66db864a532ce1e94eeb49ab0bda94ea892..699e66f83eba60dff151c542c631ffd73e8a7d98 100644 --- a/curator/Dockerfile +++ b/curator/Dockerfile @@ -1,4 +1,6 @@ -FROM python:3.6-alpine -RUN pip install --no-cache-dir elasticsearch-curator==5.4.1 -CMD /usr/sbin/crond -f +FROM python:3.7-alpine +RUN pip install --progress-bar=off --no-cache-dir elasticsearch-curator==5.5.4 +COPY --chown=root:root entrypoint / +ENTRYPOINT [ "/entrypoint" ] +CMD [ "/usr/sbin/crond", "-fd7" ] HEALTHCHECK --timeout=1s CMD pgrep crond || exit 1 diff --git a/curator/entrypoint b/curator/entrypoint new file mode 100755 index 0000000000000000000000000000000000000000..a41e5bbd0f448586576d3eef802460c55ec39e73 --- /dev/null +++ b/curator/entrypoint @@ -0,0 +1,5 @@ +#!/bin/sh +set -eu + +crontab -u nobody /etc/crontabs/nobody +eval exec "$@"