1 FROM python:3.10-slim-buster
\r
3 RUN apt-get update; apt-get install -y git gcc
\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 https://opendev.org/starlingx/config.git /cgtsclient
\r
9 RUN pip install -e /cgtsclient/sysinv/cgts-client/cgts-client/
\r
11 # RUN mkdir -p /distcloud-client
\r
12 # COPY temp/distcloud-client /distcloud-client/
\r
13 RUN git clone 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
18 COPY requirements.txt /tmp/
\r
19 COPY requirements-stx.txt /tmp/
\r
20 COPY constraints.txt /tmp/
\r
22 RUN pip install -r /tmp/requirements.txt -c /tmp/constraints.txt
\r
24 # RUN pip install -r /tmp/requirements-stx.txt
\r
26 COPY requirements-test.txt /tmp/
\r
27 RUN pip install -r /tmp/requirements-test.txt
\r
31 COPY o2ims/ /src/o2ims/
\r
32 COPY o2dms/ /src/o2dms/
\r
33 COPY o2common/ /src/o2common/
\r
36 RUN pip install -e /src
\r
38 COPY configs/ /etc/o2/
\r
42 RUN apt-get install -y procps vim
\r