Add o2dms api endpoint
[pti/o2.git] / Dockerfile.localtest
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 pip install -e cgtsclient/sysinv/cgts-client/cgts-client/\r
9 \r
10 RUN mkdir -p /distcloud-client\r
11 COPY temp/distcloud-client /distcloud-client/\r
12 RUN pip install -e /distcloud-client/distributedcloud-client\r
13 # in case git repo is not accessable\r
14 \r
15 \r
16 COPY requirements.txt /tmp/\r
17 COPY constraints.txt /tmp/\r
18 \r
19 RUN  pip install -r /tmp/requirements.txt -c /tmp/constraints.txt\r
20 \r
21 COPY requirements-test.txt /tmp/\r
22 RUN pip install -r /tmp/requirements-test.txt\r
23 \r
24 \r
25 RUN mkdir -p /src\r
26 COPY o2ims/ /src/o2ims/\r
27 COPY o2dms/ /src/o2dms/\r
28 COPY o2common/ /src/o2common/\r
29 \r
30 RUN mkdir -p /src/o2app/\r
31 COPY o2app/ /src/o2app/\r
32 COPY setup.py /src/\r
33 \r
34 COPY configs/ /etc/o2/\r
35 \r
36 # RUN pip install -e /src\r
37 \r
38 COPY tests/ /tests/\r
39 \r
40 RUN apt-get install -y procps vim\r
41 \r
42 WORKDIR /src\r