Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 1 | from ubuntu:16.04 |
| 2 | |
| 3 | ENV no_proxy "localhost,127.0.0.1,.cluster.local,$KUBERNETES_SERVICE_HOST" |
| 4 | # Setup Corporate proxy |
barak | 131c2a4 | 2017-06-27 02:45:02 +0300 | [diff] [blame] | 5 | ENV https_proxy ${HTTPS_PROXY} |
| 6 | ENV http_proxy ${HTTP_PROXY} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 7 | |
| 8 | # Additional packages |
| 9 | RUN apt-get update |
| 10 | RUN apt-get install -y apt-utils git wget curl dnsutils python python-pip jq net-tools coreutils vim |
| 11 | |
| 12 | RUN pip install requests pyyaml kubernetes |
| 13 | |
| 14 | |
| 15 | ENV CERT="/var/run/secrets/kubernetes.io/serviceaccount/ca.crt" |
| 16 | ENV TOKEN="/var/run/secrets/kubernetes.io/serviceaccount/token" |
| 17 | |
| 18 | COPY ready.py /root/ready.py |
| 19 | RUN chmod a+x /root/ready.py |
Mandeep Khinda | 67edf6d | 2018-03-26 23:30:25 +0000 | [diff] [blame] | 20 | |
| 21 | COPY job_complete.py /root/job_complete.py |
| 22 | RUN chmod a+x /root/job_complete.py |
| 23 | |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 24 | ENTRYPOINT /root/ready.py |