Skip to content
This repository has been archived by the owner on Jun 22, 2020. It is now read-only.

Commit

Permalink
强制requests==2.18.1
Browse files Browse the repository at this point in the history
  • Loading branch information
anjia0532 committed Aug 14, 2017
1 parent 045171c commit 824eb3c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
@@ -1,7 +1,7 @@
FROM python:2.7-alpine

ENV SET_CONTAINER_TIMEZONE false
ENV ELASTALERT_VERSION v0.1.17
ENV ELASTALERT_VERSION v0.1.18
ENV CONTAINER_TIMEZONE Asia/Shanghai
ENV ELASTALERT_URL https://github.com/Yelp/elastalert/archive/${ELASTALERT_VERSION}.tar.gz
#ENV WECHAT_PLUGIN_URL https://raw.githubusercontent.com/anjia0532/elastalert-wechat-plugin/master/wechat_qiye_alert.py
Expand Down Expand Up @@ -31,6 +31,7 @@ RUN \
tar -xzvf elastalert.tar.gz -C ${ELASTALERT_HOME} --strip-components 1 && \
rm elastalert.tar.gz && \

sed 's/requests.*$/requests==2.18.1/g' ${ELASTALERT_HOME}/requirements.txt &&\
pip install "setuptools>=11.3" && \
python setup.py install

Expand Down

0 comments on commit 824eb3c

Please sign in to comment.