X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=Dockerfile.localtest;h=3a3a7ea312dbebb331ae06bc0b67318cee85facb;hb=1a9dcb5b8f598ee348f23eafecc2d92ef09c8122;hp=b047113e90422ea4da3faa98189caf86b7922846;hpb=defe8209b3628593c186487857fe02586d7e1503;p=pti%2Fo2.git diff --git a/Dockerfile.localtest b/Dockerfile.localtest index b047113..3a3a7ea 100644 --- a/Dockerfile.localtest +++ b/Dockerfile.localtest @@ -1,25 +1,21 @@ FROM python:3.10-slim-buster -RUN apt-get update; apt-get install -y git gcc +RUN apt-get update && apt-get install -y git gcc \ + vim curl procps # in case git repo is not accessable -RUN mkdir -p /cgtsclient +RUN mkdir -p /cgtsclient && mkdir -p /distcloud-client COPY temp/config /cgtsclient/ -RUN pip install -e cgtsclient/sysinv/cgts-client/cgts-client/ - -RUN mkdir -p /distcloud-client COPY temp/distcloud-client /distcloud-client/ -RUN pip install -e /distcloud-client/distributedcloud-client -# in case git repo is not accessable +RUN pip install -e cgtsclient/sysinv/cgts-client/cgts-client/ \ + && pip install -e /distcloud-client/distributedcloud-client +# in case git repo is not accessable -COPY requirements.txt /tmp/ -COPY constraints.txt /tmp/ - -RUN pip install -r /tmp/requirements.txt -c /tmp/constraints.txt +COPY requirements.txt constraints.txt requirements-test.txt /tmp/ -COPY requirements-test.txt /tmp/ -RUN pip install -r /tmp/requirements-test.txt +RUN pip install -r /tmp/requirements.txt -c /tmp/constraints.txt \ + && pip install -r /tmp/requirements-test.txt RUN mkdir -p /src @@ -45,9 +41,9 @@ COPY configs/ /etc/o2/ # RUN pip install -e /src COPY tests/ /tests/ -RUN apt-get install -y procps vim +#RUN apt-get install -y procps vim -RUN apt-get install -y curl +#RUN apt-get install -y curl RUN curl -O https://get.helm.sh/helm-v3.3.1-linux-amd64.tar.gz; RUN tar -zxvf helm-v3.3.1-linux-amd64.tar.gz; cp linux-amd64/helm /usr/local/bin