blob: b060915354548dc0ab7e341f0a32d8dccccff803 [file] [log] [blame]
Dmitry Puzikovd0101df2019-04-25 14:33:48 +02001FROM python:2-alpine
Mandeep Khindad6ea9872017-06-24 11:49:37 -04002
3ENV no_proxy "localhost,127.0.0.1,.cluster.local,$KUBERNETES_SERVICE_HOST"
4# Setup Corporate proxy
barak131c2a42017-06-27 02:45:02 +03005ENV https_proxy ${HTTPS_PROXY}
6ENV http_proxy ${HTTP_PROXY}
Mandeep Khindad6ea9872017-06-24 11:49:37 -04007
Mandeep Khindad6ea9872017-06-24 11:49:37 -04008RUN pip install requests pyyaml kubernetes
9
Mandeep Khindad6ea9872017-06-24 11:49:37 -040010ENV CERT="/var/run/secrets/kubernetes.io/serviceaccount/ca.crt"
11ENV TOKEN="/var/run/secrets/kubernetes.io/serviceaccount/token"
12
13COPY ready.py /root/ready.py
14RUN chmod a+x /root/ready.py
Mandeep Khinda67edf6d2018-03-26 23:30:25 +000015
16COPY job_complete.py /root/job_complete.py
17RUN chmod a+x /root/job_complete.py
18
Dmitry Puzikovd0101df2019-04-25 14:33:48 +020019ENTRYPOINT ["/root/ready.py"]
20CMD [""]