1 FROM python:3.10-slim-buster
3 RUN apt-get update && apt-get install -y git gcc \
6 # in case git repo is not accessable
7 RUN mkdir -p /cgtsclient && mkdir -p /distcloud-client
8 COPY temp/config /cgtsclient/
9 COPY temp/distcloud-client /distcloud-client/
11 RUN pip install -e cgtsclient/sysinv/cgts-client/cgts-client/ \
12 && pip install -e /distcloud-client/distributedcloud-client
13 # in case git repo is not accessable
15 COPY requirements.txt constraints.txt requirements-test.txt /tmp/
17 RUN pip install -r /tmp/requirements.txt -c /tmp/constraints.txt \
18 && pip install -r /tmp/requirements-test.txt
22 COPY o2ims/ /src/o2ims/
23 COPY o2dms/ /src/o2dms/
24 COPY o2common/ /src/o2common/
26 RUN mkdir -p /src/o2app/
27 COPY o2app/ /src/o2app/
29 RUN mkdir -p /src/helm_sdk/
30 COPY helm_sdk/ /src/helm_sdk/
34 COPY configs/ /etc/o2/
36 # RUN mkdir -p /helmsdk
37 # COPY temp/helmsdk /helmsdk/
38 # # RUN git clone --depth 1 --branch master https://github.com/cloudify-incubator/cloudify-helm-plugin.git helmsdk
39 # COPY /helmsdk/helm_sdk /src/helm_sdk
41 # RUN pip install -e /src
44 #RUN apt-get install -y procps vim
46 #RUN apt-get install -y curl
47 RUN curl -O https://get.helm.sh/helm-v3.3.1-linux-amd64.tar.gz;
48 RUN tar -zxvf helm-v3.3.1-linux-amd64.tar.gz; cp linux-amd64/helm /usr/local/bin
50 RUN mkdir -p /etc/kubeconfig/
51 # COPY temp/kubeconfig/config /etc/kubeconfig/