X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=Dockerfile-Unit-Test;h=e54eecb38435c2580901d50081b44a58a1569afc;hb=4cfece2770950e9d9b5a728b7f41f44851e2f1c1;hp=4f5ec783ada506ade190824afd251698dc76adcc;hpb=f98ee76af036d60b8f5077105830ed61a13ed5aa;p=ric-app%2Fad.git diff --git a/Dockerfile-Unit-Test b/Dockerfile-Unit-Test index 4f5ec78..e54eecb 100644 --- a/Dockerfile-Unit-Test +++ b/Dockerfile-Unit-Test @@ -14,7 +14,7 @@ # limitations under the License. # ================================================================================== -FROM frolvlad/alpine-miniconda3 +FROM frolvlad/alpine-miniconda3:python3.7 # FROM python:3.8-alpine # RMR setup @@ -28,21 +28,13 @@ COPY --from=nexus3.o-ran-sc.org:10002/o-ran-sc/bldr-alpine3-rmr:4.0.5 /usr/local # Upgrade pip, install tox RUN pip install --upgrade pip && pip install tox - RUN apk update && apk add gcc musl-dev -RUN pip install ricxappframe -RUN conda update -n base -c defaults conda -RUN conda install -c anaconda pandas -RUN conda install -c conda-forge/label/cf202003 hdbscan -RUN pip install schedule -RUN conda install scikit-learn # copies COPY setup.py tox.ini LICENSE.txt /tmp/ -COPY ad/ /tmp/ad -COPY tests/ /tmp/tests RUN pip install /tmp - +COPY src/ /tmp/src +COPY tests/ /tmp/tests # Run the unit tests WORKDIR /tmp -RUN PYTHONPATH=/tmp/ad:/usr/lib/python3.7/site-packages/:$PYTHONPATH tox -e code,flake8 +RUN PYTHONPATH=/tmp/src:/usr/lib/python3.7/site-packages/:$PYTHONPATH tox -e code,flake8