[READINESS] Add missing python modules to docker image 86/137586/2
authorAndreas Geissler <andreas-geissler@telekom.de>
Tue, 26 Mar 2024 10:49:07 +0000 (11:49 +0100)
committerAndreas Geissler <andreas-geissler@telekom.de>
Tue, 26 Mar 2024 11:15:12 +0000 (12:15 +0100)
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>
Dockerfile
requirements.txt

index 79b2e42..cab5972 100644 (file)
@@ -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"]
index eca5e2e..ca17c50 100644 (file)
@@ -1 +1,2 @@
+requests==2.31.0
 kubernetes==29.0.0