Docs: Add API docs from swagger json file; Add user guide document
[pti/o2.git] / Dockerfile
1 FROM python:3.10-slim-buster\r
2 \r
3 RUN apt-get update; apt-get install -y git gcc\r
4 \r
5 # in case git repo is not accessable\r
6 # RUN mkdir -p /cgtsclient\r
7 # COPY temp/config /cgtsclient/\r
8 RUN git clone --depth 1 --branch master https://opendev.org/starlingx/config.git /cgtsclient\r
9 RUN pip install -e /cgtsclient/sysinv/cgts-client/cgts-client/\r
10 \r
11 # RUN mkdir -p /distcloud-client\r
12 # COPY temp/distcloud-client /distcloud-client/\r
13 RUN git clone --depth 1 --branch master https://opendev.org/starlingx/distcloud-client.git /distcloud-client/\r
14 RUN pip install -e /distcloud-client/distributedcloud-client\r
15 # in case git repo is not accessable\r
16 \r
17 # RUN git clone --depth 1 --branch master https://github.com/cloudify-incubator/cloudify-helm-plugin.git /helmsdk\r
18 \r
19 \r
20 COPY requirements.txt /tmp/\r
21 COPY requirements-stx.txt /tmp/\r
22 COPY constraints.txt /tmp/\r
23 \r
24 RUN  pip install -r /tmp/requirements.txt -c /tmp/constraints.txt\r
25 \r
26 # RUN  pip install -r /tmp/requirements-stx.txt\r
27 \r
28 COPY requirements-test.txt /tmp/\r
29 RUN pip install -r /tmp/requirements-test.txt\r
30 \r
31 \r
32 RUN mkdir -p /src\r
33 COPY o2ims/ /src/o2ims/\r
34 COPY o2dms/ /src/o2dms/\r
35 COPY o2common/ /src/o2common/\r
36 \r
37 RUN mkdir -p /src/o2app/\r
38 COPY o2app/ /src/o2app/\r
39 COPY setup.py /src/\r
40 \r
41 RUN pip install -e /src\r
42 \r
43 COPY configs/ /etc/o2/\r
44 \r
45 COPY tests/ /tests/\r
46 \r
47 RUN apt-get install -y procps vim curl\r
48 \r
49 RUN curl -O https://get.helm.sh/helm-v3.3.1-linux-amd64.tar.gz;\r
50 RUN tar -zxvf helm-v3.3.1-linux-amd64.tar.gz; cp linux-amd64/helm /usr/local/bin\r
51 \r
52 WORKDIR /src\r