blob: 7214e04174e4ef593154086bd7ffaf6ddb78c2f6 [file] [log] [blame]
Mandeep Khindad6ea9872017-06-24 11:49:37 -04001from ubuntu:16.04
2
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
8# Additional packages
9RUN apt-get update
10RUN apt-get install -y apt-utils git wget curl dnsutils python python-pip jq net-tools coreutils vim
11
12RUN pip install requests pyyaml kubernetes
13
14
15ENV CERT="/var/run/secrets/kubernetes.io/serviceaccount/ca.crt"
16ENV TOKEN="/var/run/secrets/kubernetes.io/serviceaccount/token"
17
18COPY ready.py /root/ready.py
19RUN chmod a+x /root/ready.py
Mandeep Khinda67edf6d2018-03-26 23:30:25 +000020
21COPY job_complete.py /root/job_complete.py
22RUN chmod a+x /root/job_complete.py
23
Mandeep Khindad6ea9872017-06-24 11:49:37 -040024ENTRYPOINT /root/ready.py