forked from zalando-zmon/zmon-worker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
23 lines (13 loc) · 814 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM registry.opensource.zalan.do/stups/ubuntu:latest
#making this a cachable point as compile takes forever without -j
RUN apt-get update && apt-get -y install python-pip python-dev libev4 libev-dev python-psycopg2 libpq-dev libldap2-dev libsasl2-dev libssl-dev libsnappy-dev iputils-ping freetds-dev git && \
pip2 install -U pip setuptools urllib3 Cython
# make requests library use the Debian CA bundle (includes Zalando CA)
ENV REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt
ADD requirements.txt /app/requirements.txt
RUN pip2 install --upgrade -r /app/requirements.txt
ADD ./ /app/
RUN cd /app && python2 setup.py install
COPY zmon_worker_extras/ /app/zmon_worker_extras
ENV ZMON_PLUGINS "$ZMON_PLUGINS:/app/zmon_worker_extras/check_plugins"
CMD ["zmon-worker", "-c", "/app/config.yaml"]