Commit 2a1224f5 authored by Elisabetta Giani's avatar Elisabetta Giani
Browse files

AT5-382: csp-mid-lmc project - modified Dockerfile and setup.py to

install the package in editable mode with its dependencies.
parent 7cb4ae5b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -13,7 +13,8 @@ name = "nexus-hosted"
# otherwise pytango will be recompiled.
numpy = "==1.17.2"
pytango = "==9.3.1"
csp-lmc-common = ">=0.5.0"
csp-lmc-common = "> 0.5.0"

# itango is added to make it easier to exercise the device in a CLI session,
# but it's not mandatory. If you remove itango, you should also remove the
# 'RUN ipython profile create' line from Dockerfile.
+1 −4
Original line number Diff line number Diff line
@@ -3,11 +3,8 @@ FROM nexus.engageska-portugal.pt/ska-docker/ska-python-runtime:latest AS runtime

# create ipython profile to so that itango doesn't fail if ipython hasn't run yet
RUN ipython profile create
#install lmc-base-classes

#RUN DEBIAN_FRONTEND=noninteractive pip3 install https://nexus.engageska-portugal.pt/repository/pypi/packages/ska-logging/0.2.1/ska_logging-0.2.1.tar.gz
#RUN DEBIAN_FRONTEND=noninteractive pip3 install https://nexus.engageska-portugal.pt/repository/pypi/packages/lmcbaseclasses/0.4.1+14ff4f1b/lmcbaseclasses-0.4.1+14ff4f1b.tar.gz
#RUN DEBIAN_FRONTEND=noninteractive pip3 install https://nexus.engageska-portugal.pt/repository/pypi/packages/csp-lmc-common/0.3.1/csp-lmc-common-0.3.1.tar.gz
ENV PATH=/home/tango/.local/bin:$PATH
RUN python3 -m pip install -e . --extra-index-url https://nexus.engageska-portugal.pt/repository/pypi/simple

CMD ["/venv/bin/python","/app/csp_lmc_mid/MidCspMaster.py"]