X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=Dockerfile;h=a4ca7210d5e98e82ca99ff97fad5b32b24f36a9b;hb=387ee50cfe8e97ba211464c311bb7b6eb9ee2961;hp=593e21f6e14bc65109a316c274d647fe9c5a9c5f;hpb=81e3575a77366f30c2049f98c48a3087db0ea992;p=pti%2Fo2.git diff --git a/Dockerfile b/Dockerfile index 593e21f..a4ca721 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,14 +1,32 @@ FROM python:3.10-slim-buster RUN apt-get update; apt-get install -y git gcc + +# in case git repo is not accessable +# RUN mkdir -p /cgtsclient +# COPY temp/config /cgtsclient/ +RUN git clone https://opendev.org/starlingx/config.git /cgtsclient +RUN pip install -e /cgtsclient/sysinv/cgts-client/cgts-client/ + +# RUN mkdir -p /distcloud-client +# COPY temp/distcloud-client /distcloud-client/ +RUN git clone https://opendev.org/starlingx/distcloud-client.git /distcloud-client/ +RUN pip install -e /distcloud-client/distributedcloud-client +# in case git repo is not accessable + + COPY requirements.txt /tmp/ +COPY requirements-stx.txt /tmp/ COPY constraints.txt /tmp/ -RUN pip install -r /tmp/requirements.txt -c /tmp/constraints.txt +RUN pip install -r /tmp/requirements.txt -c /tmp/constraints.txt + +# RUN pip install -r /tmp/requirements-stx.txt COPY requirements-test.txt /tmp/ RUN pip install -r /tmp/requirements-test.txt + RUN mkdir -p /src COPY o2ims/ /src/o2ims/ COPY o2dms/ /src/o2dms/ @@ -17,6 +35,10 @@ COPY setup.py /src/ RUN pip install -e /src +COPY configs/ /etc/o2/ + COPY tests/ /tests/ +RUN apt-get install -y procps vim + WORKDIR /src