1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-16 03:48:44 +00:00
dockerfiles/elastalert/Dockerfile

36 lines
765 B
Docker
Raw Normal View History

2019-10-30 08:11:49 +00:00
#
# Dockerfile for elastalert
#
FROM python:3.6-alpine
ENV ELASTALERT_VERSION=v0.2.1
ENV ELASTALERT_HOME=/opt/elastalert
2019-10-30 10:57:53 +00:00
ENV TZ=UTC
2019-10-30 08:11:49 +00:00
WORKDIR ${ELASTALERT_HOME}
RUN set -xe \
2019-10-30 10:57:53 +00:00
&& apk add --no-cache \
bash \
curl \
libffi \
libmagic \
libssl1.1 \
musl \
tzdata \
2019-10-30 08:11:49 +00:00
&& apk add --no-cache -t .build-deps \
build-base \
libffi-dev \
musl-dev \
openssl-dev \
2019-10-30 10:57:53 +00:00
python3-dev \
2019-10-30 08:11:49 +00:00
&& pip install elastalert==${ELASTALERT_VERSION} \
&& mkdir -p rules \
&& curl -sSL https://github.com/Yelp/elastalert/raw/${ELASTALERT_VERSION}/config.yaml.example > config.yaml \
&& apk del .build-deps
VOLUME ${ELASTALERT_HOME}
CMD ["elastalert", "--config", "config.yaml"]