diff options
author | Dmitry Puzikov <dmitry.puzikov@tieto.com> | 2019-04-25 14:33:48 +0200 |
---|---|---|
committer | Alexis de Talhouƫt <adetalhouet89@gmail.com> | 2019-05-10 17:52:43 +0000 |
commit | d0101df34803d6266c8ae3be2be3befd79e459de (patch) | |
tree | c9cd967ff46521ff520a99c167faa7dadef67487 /kubernetes/readiness/docker/init | |
parent | 6e520f189fbd1cfab2359763e454eff07bbc68a6 (diff) |
Minimize container image
Rebase image on alpine
Change-Id: I923c0792783b551bf623f754a2aed4bf1a765f45
Issue-ID: INT-1045
Signed-off-by: Dmitry Puzikov <dmitry.puzikov@tieto.com>
Diffstat (limited to 'kubernetes/readiness/docker/init')
-rw-r--r-- | kubernetes/readiness/docker/init/Dockerfile | 10 | ||||
-rw-r--r-- | kubernetes/readiness/docker/init/job_complete.py | 2 | ||||
-rw-r--r-- | kubernetes/readiness/docker/init/ready.py | 2 |
3 files changed, 5 insertions, 9 deletions
diff --git a/kubernetes/readiness/docker/init/Dockerfile b/kubernetes/readiness/docker/init/Dockerfile index 7214e04174..b060915354 100644 --- a/kubernetes/readiness/docker/init/Dockerfile +++ b/kubernetes/readiness/docker/init/Dockerfile @@ -1,17 +1,12 @@ -from ubuntu:16.04 +FROM python:2-alpine 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" @@ -21,4 +16,5 @@ 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 +ENTRYPOINT ["/root/ready.py"] +CMD [""]
\ No newline at end of file diff --git a/kubernetes/readiness/docker/init/job_complete.py b/kubernetes/readiness/docker/init/job_complete.py index 97d22da6c1..2b3180aa2e 100644 --- a/kubernetes/readiness/docker/init/job_complete.py +++ b/kubernetes/readiness/docker/init/job_complete.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python import getopt import logging import os diff --git a/kubernetes/readiness/docker/init/ready.py b/kubernetes/readiness/docker/init/ready.py index 87c09a444c..20872f9897 100644 --- a/kubernetes/readiness/docker/init/ready.py +++ b/kubernetes/readiness/docker/init/ready.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python import getopt import logging import os |