Update watcher worker
[pti/o2.git] / Dockerfile
index 593e21f..75e2363 100644 (file)
@@ -1,14 +1,32 @@
 FROM python:3.10-slim-buster\r
 \r
 RUN apt-get update; apt-get install -y git gcc\r
+\r
+# in case git repo is not accessable\r
+# RUN mkdir -p /cgtsclient\r
+# COPY temp/config /cgtsclient/\r
+RUN git clone https://opendev.org/starlingx/config.git /cgtsclient\r
+RUN pip install -e /cgtsclient/sysinv/cgts-client/cgts-client/\r
+\r
+# RUN mkdir -p /distcloud-client\r
+# COPY temp/distcloud-client /distcloud-client/\r
+RUN git clone https://opendev.org/starlingx/distcloud-client.git /distcloud-client/\r
+RUN pip install -e /distcloud-client/distributedcloud-client\r
+# in case git repo is not accessable\r
+\r
+\r
 COPY requirements.txt /tmp/\r
+COPY requirements-stx.txt /tmp/\r
 COPY constraints.txt /tmp/\r
 \r
-RUN pip install -r /tmp/requirements.txt -c /tmp/constraints.txt\r
+RUN  pip install -r /tmp/requirements.txt -c /tmp/constraints.txt\r
+\r
+# RUN  pip install -r /tmp/requirements-stx.txt\r
 \r
 COPY requirements-test.txt /tmp/\r
 RUN pip install -r /tmp/requirements-test.txt\r
 \r
+\r
 RUN mkdir -p /src\r
 COPY o2ims/ /src/o2ims/\r
 COPY o2dms/ /src/o2dms/\r
@@ -19,4 +37,6 @@ RUN pip install -e /src
 \r
 COPY tests/ /tests/\r
 \r
+RUN apt-get install -y procps vim\r
+\r
 WORKDIR /src\r