X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=Dockerfile-Unit-Test;h=dbaccbe4ec8eab52c025e760307b5b487cb9c436;hb=30a7bdce9115e6bba8811edae2fc949e404021da;hp=00b87fa15da33879a8b75d41bf12455c64dbb43a;hpb=40caa314d23122f0bd25c0e66b65d10303538164;p=ric-plt%2Fa1.git diff --git a/Dockerfile-Unit-Test b/Dockerfile-Unit-Test index 00b87fa..dbaccbe 100644 --- a/Dockerfile-Unit-Test +++ b/Dockerfile-Unit-Test @@ -26,14 +26,6 @@ RUN git clone --branch 1.3.0 https://gerrit.o-ran-sc.org/r/ric-plt/lib/rmr \ FROM python:3.7-alpine -# copies -COPY --from=0 /usr/local/lib64/libnng.so /usr/local/lib64/libnng.so -COPY --from=0 /usr/local/lib64/librmr_nng.so /usr/local/lib64/librmr_nng.so -COPY a1/ /tmp/a1 -COPY tests/ /tmp/tests -COPY setup.py tox.ini /tmp/ -WORKDIR /tmp - # dir that rmr routing file temp goes into RUN mkdir -p /opt/route/ @@ -43,5 +35,13 @@ RUN apk add gcc musl-dev # Upgrade pip, install tox RUN pip install --upgrade pip && pip install tox +# copies +COPY --from=0 /usr/local/lib64/libnng.so /usr/local/lib64/libnng.so +COPY --from=0 /usr/local/lib64/librmr_nng.so /usr/local/lib64/librmr_nng.so +COPY a1/ /tmp/a1 +COPY tests/ /tmp/tests +COPY setup.py tox.ini /tmp/ +WORKDIR /tmp + # Run the unit tests RUN tox