summaryrefslogtreecommitdiffstats
path: root/kubernetes/readiness/src/main/docker/Dockerfile
diff options
context:
space:
mode:
authorBorislav Glozman <Borislav.Glozman@amdocs.com>2019-12-11 14:28:33 +0000
committerGerrit Code Review <gerrit@onap.org>2019-12-11 14:28:33 +0000
commit525447ad64582c9d8a94542cc32e89c9986d864d (patch)
treefd3d7802357ca9c394c7ce45bc3c81b63c34da81 /kubernetes/readiness/src/main/docker/Dockerfile
parent10ab5daccb4375ca8644ad9d738bbdb2efc7a650 (diff)
parented4a579fcddbb3028f7668923fa83d756bdf2f8f (diff)
Merge "Mavenized image creation for readiness-check"
Diffstat (limited to 'kubernetes/readiness/src/main/docker/Dockerfile')
-rw-r--r--kubernetes/readiness/src/main/docker/Dockerfile17
1 files changed, 17 insertions, 0 deletions
diff --git a/kubernetes/readiness/src/main/docker/Dockerfile b/kubernetes/readiness/src/main/docker/Dockerfile
new file mode 100644
index 0000000000..638e8efd67
--- /dev/null
+++ b/kubernetes/readiness/src/main/docker/Dockerfile
@@ -0,0 +1,17 @@
+FROM python:3-alpine3.9
+
+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}
+
+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 maven/ /root/
+RUN chmod -R a+x /root/
+
+ENTRYPOINT ["/root/ready.py"]
+CMD [""] \ No newline at end of file