Add wrong attributes check on selector
[pti/o2.git] / Dockerfile
index dc0adcb..e837ed4 100644 (file)
@@ -1,20 +1,22 @@
 FROM python:3.10-slim-buster
 
-RUN apt-get update; apt-get install -y git gcc
+RUN apt-get update && apt-get install -y git gcc procps vim curl ssh
 
 # in case git repo is not accessable
 # RUN mkdir -p /cgtsclient
 # COPY temp/config /cgtsclient/
-RUN git clone --depth 1 --branch master https://opendev.org/starlingx/config.git /cgtsclient
+RUN git clone --depth 1 --branch r/stx.7.0 https://opendev.org/starlingx/config.git /cgtsclient
 RUN pip install -e /cgtsclient/sysinv/cgts-client/cgts-client/
 
 # RUN mkdir -p /distcloud-client
 # COPY temp/distcloud-client /distcloud-client/
-RUN git clone --depth 1 --branch master https://opendev.org/starlingx/distcloud-client.git /distcloud-client/
+RUN git clone --depth 1 --branch r/stx.7.0 https://opendev.org/starlingx/distcloud-client.git /distcloud-client/
 RUN pip install -e /distcloud-client/distributedcloud-client
 # in case git repo is not accessable
 
 # RUN git clone --depth 1 --branch master https://github.com/cloudify-incubator/cloudify-helm-plugin.git /helmsdk
+RUN git clone --depth 1 --branch r/stx.7.0 https://opendev.org/starlingx/fault.git /faultclient
+RUN pip install -e /faultclient/python-fmclient/fmclient/
 
 
 COPY requirements.txt /tmp/
@@ -34,6 +36,12 @@ COPY o2ims/ /src/o2ims/
 COPY o2dms/ /src/o2dms/
 COPY o2common/ /src/o2common/
 
+RUN mkdir -p /src/helm_sdk/
+COPY helm_sdk/ /src/helm_sdk/
+
+RUN mkdir -p /configs/
+COPY configs/ /configs/
+
 RUN mkdir -p /src/o2app/
 COPY o2app/ /src/o2app/
 COPY setup.py /src/
@@ -44,8 +52,6 @@ COPY configs/ /etc/o2/
 
 COPY tests/ /tests/
 
-RUN apt-get install -y procps vim curl
-
 RUN curl -O https://get.helm.sh/helm-v3.3.1-linux-amd64.tar.gz;
 RUN tar -zxvf helm-v3.3.1-linux-amd64.tar.gz; cp linux-amd64/helm /usr/local/bin