summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Geissler <andreas-geissler@telekom.de>2024-03-26 11:49:07 +0100
committerAndreas Geissler <andreas-geissler@telekom.de>2024-03-26 12:15:12 +0100
commit51d511b7df997b397c5e208f7bc2efe91b82d85a (patch)
treee32b845742f672b819190dd7e292a5f614223f0c
parentf89b63168f143136d6a6b9a9a7c73ece4100814d (diff)
[READINESS] Add missing python modules to docker image
With the new base image the requirements.txt is not loaded, therefor it has to be added into the dockerfile Issue-ID: OOM-3280 Change-Id: I00cdf1f60ae2e07d6b0fc7246798f2d241d17471 Signed-off-by: Andreas Geissler <andreas-geissler@telekom.de>
-rw-r--r--Dockerfile2
-rw-r--r--requirements.txt1
2 files changed, 3 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
index 79b2e42..cab5972 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -3,6 +3,8 @@ FROM nexus3.onap.org:10001/onap/integration-python:12.0.0
ENV CERT="/var/run/secrets/kubernetes.io/serviceaccount/ca.crt"
ENV TOKEN="/var/run/secrets/kubernetes.io/serviceaccount/token"
+COPY requirements.txt .
+RUN pip install -r requirements.txt
COPY ready.py .
ENTRYPOINT ["/app/ready.py"]
diff --git a/requirements.txt b/requirements.txt
index eca5e2e..ca17c50 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1 +1,2 @@
+requests==2.31.0
kubernetes==29.0.0