Skip to content
Snippets Groups Projects
Select Git revision
  • 9d7d6538ffa942aa752a10cad25409da5fa468be
  • master default protected
  • refactor-control-power-properties
  • L2SS-2199-apply-dab-to-xy
  • stop-using-mesh-gateway
  • set_hba_element_power
  • test-pytango-10.0.3
  • revert-cs032-ccd-ip
  • deploy-components-parallel
  • fix-chrony-exporter
  • L2SS-2407-swap-iers-caltable-monitoring-port
  • L2SS-2357-fix-ruff
  • sync-up-with-meta-pypcc
  • stabilise-landing-page
  • all-stations-lofar2
  • v0.39.7-backports
  • Move-sdptr-to-v1.5.0
  • fix-build-ubuntu
  • tokens-in-env-files
  • fix-build
  • L2SS-2214-deploy-cdb
  • v0.52.8 protected
  • v0.52.7 protected
  • v0.55.5-r2 protected
  • v0.52.8-rc1 protected
  • v0.55.5 protected
  • v0.55.4 protected
  • 0.55.2.dev0
  • 0.55.1.dev0
  • 0.55.0.dev0
  • v0.54.0 protected
  • 0.53.2.dev0
  • 0.53.1.dev0
  • v0.52.3-r2 protected
  • remove-snmp-client
  • v0.52.3 protected
  • v0.52.3dev0 protected
  • 0.53.1dev0
  • v0.52.2-rc3 protected
  • v0.52.2-rc2 protected
  • v0.52.2-rc1 protected
41 results

Dockerfile

Blame
  • Stefano Di Frischia's avatar
    L2SS-1288: set calibration tables path
    Stefano Di Frischia authored
    000b36da
    History
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    Dockerfile 1.42 KiB
    ARG SOURCE_IMAGE
    FROM ${SOURCE_IMAGE}
    
    RUN sudo apt-get update
    RUN sudo apt-get install -y git && sudo apt-get clean
    RUN sudo apt-get install -y g++ gcc && sudo apt-get clean
    RUN sudo apt-get install -y shellcheck graphviz && sudo apt-get clean
    RUN sudo apt-get install -y python3-dev libboost-python-dev pkg-config && sudo apt-get clean
    RUN sudo apt-get install -y rsync && sudo apt-get clean
    RUN sudo apt-get install -y netcat && sudo apt-get clean
    
    # Manually install all requirements from the .txt as part of the base image
    # This reduces runtime overhead as well as preventing issues around dependency
    # installation for development builds (pip install ./ ignores requirements.txt)
    COPY tmp/requirements.txt /tangostationcontrol-requirements.txt
    
    RUN sudo pip3 install -r /tangostationcontrol-requirements.txt
    
    # install and use ephimerides and geodetic ("measures") tables for casacore.
    # we install a _stub_ since the tables need to be deployed explicitly from within the software.
    RUN sudo mkdir -p /opt/IERS && sudo chmod a+rwx /opt/IERS
    ARG IERS_DIRNAME=IERS-1970-01-01T00:00:00-stub
    COPY lofar-device-base/WSRT_Measures_stub /opt/IERS/${IERS_DIRNAME}
    RUN ln -sfT /opt/IERS/${IERS_DIRNAME} /opt/IERS/current
    
    COPY lofar-device-base/casarc /home/tango/.casarc
    
    ENV TANGO_LOG_PATH=/var/log/tango
    RUN sudo mkdir -p /var/log/tango && sudo chmod a+rwx /var/log/tango
    RUN sudo mkdir -p /opt/calibration-tables && sudo chmod a+rwx /opt/calibration-tables