-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
22 lines (15 loc) · 740 Bytes
/
Dockerfile
File metadata and controls
22 lines (15 loc) · 740 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM python:3.9-buster
LABEL description="Elastalert CI testing module"
LABEL maintainer="Feroz Salam (feroz@argh.in)"
RUN pip install -v elastalert2==2.1.2
# Required CircleCI dependencies
RUN apt update && \
apt install -y git ssh tar gzip ca-certificates
RUN wget https://github.com/jwilder/dockerize/releases/download/v0.6.1/dockerize-linux-amd64-v0.6.1.tar.gz
RUN tar -C /usr/local/bin -xvzf dockerize-linux-amd64-v0.6.1.tar.gz
WORKDIR /data
COPY elastalert-ci.py /data
COPY config.yaml /data
CMD ["dockerize", "-wait", "http://elasticsearch:9200/_cluster/health", "-timeout", "120s", \
"python", "elastalert-ci.py", "--data", "example/tests/data-files.yaml", \
"--rules_directory", "example/rules"]