summaryrefslogtreecommitdiffstats
path: root/kubernetes/readiness/docker/init/Dockerfile
blob: 7214e04174e4ef593154086bd7ffaf6ddb78c2f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
from ubuntu:16.04

ENV no_proxy "localhost,127.0.0.1,.cluster.local,$KUBERNETES_SERVICE_HOST"
# Setup Corporate proxy
ENV https_proxy ${HTTPS_PROXY}
ENV http_proxy ${HTTP_PROXY}

# Additional packages
RUN apt-get update
RUN apt-get install -y apt-utils git wget curl dnsutils python python-pip jq net-tools coreutils vim

RUN pip install requests pyyaml kubernetes


ENV CERT="/var/run/secrets/kubernetes.io/serviceaccount/ca.crt"
ENV TOKEN="/var/run/secrets/kubernetes.io/serviceaccount/token"

COPY ready.py /root/ready.py
RUN chmod a+x /root/ready.py

COPY job_complete.py /root/job_complete.py
RUN chmod a+x /root/job_complete.py

ENTRYPOINT /root/ready.py