forked from zalando-zmon/zmon-worker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
28 lines (16 loc) · 972 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
24
25
26
27
28
FROM registry.opensource.zalan.do/stups/ubuntu:16.04-49
#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 && \
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
# TODO: Remove once cassandra-driver issue is fixed (ref: https://datastax-oss.atlassian.net/browse/PYTHON-656)
RUN pip2 install -U Cython==0.24.1
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"]
COPY scm-source.json /