Add back secret with built-in user for o2 service
[pti/o2.git] / Dockerfile
index dc0adcb..c3aba8d 100644 (file)
@@ -1,6 +1,6 @@
 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
@@ -15,6 +15,8 @@ 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 master https://opendev.org/starlingx/fault.git /faultclient
+RUN pip install -e /faultclient/python-fmclient/fmclient/
 
 
 COPY requirements.txt /tmp/
@@ -44,8 +46,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