1 FROM python:3.10-slim-buster
3 RUN apt-get update; apt-get install -y git gcc
5 # in case git repo is not accessable
6 RUN mkdir -p /cgtsclient
7 COPY temp/config /cgtsclient/
8 RUN pip install -e cgtsclient/sysinv/cgts-client/cgts-client/
10 RUN mkdir -p /distcloud-client
11 COPY temp/distcloud-client /distcloud-client/
12 RUN pip install -e /distcloud-client/distributedcloud-client
13 # in case git repo is not accessable
16 COPY requirements.txt /tmp/
17 COPY constraints.txt /tmp/
19 RUN pip install -r /tmp/requirements.txt -c /tmp/constraints.txt
21 COPY requirements-test.txt /tmp/
22 RUN pip install -r /tmp/requirements-test.txt
26 COPY o2ims/ /src/o2ims/
27 COPY o2dms/ /src/o2dms/
28 COPY o2common/ /src/o2common/
30 RUN mkdir -p /src/o2app/
31 COPY o2app/ /src/o2app/
33 RUN mkdir -p /src/helm_sdk/
34 COPY helm_sdk/ /src/helm_sdk/
38 COPY configs/ /etc/o2/
40 # RUN mkdir -p /helmsdk
41 # COPY temp/helmsdk /helmsdk/
42 # # RUN git clone --depth 1 --branch master https://github.com/cloudify-incubator/cloudify-helm-plugin.git helmsdk
43 # COPY /helmsdk/helm_sdk /src/helm_sdk
45 # RUN pip install -e /src
48 RUN apt-get install -y procps vim
50 RUN apt-get install -y curl
51 RUN curl -O https://get.helm.sh/helm-v3.3.1-linux-amd64.tar.gz;
52 RUN tar -zxvf helm-v3.3.1-linux-amd64.tar.gz; cp linux-amd64/helm /usr/local/bin
54 RUN mkdir -p /etc/kubeconfig/
55 # COPY temp/kubeconfig/config /etc/kubeconfig/