Newer
Older
ARG SOURCE_IMAGE
FROM ${SOURCE_IMAGE}

Jan David Mol
committed
RUN sudo apt-get update && sudo apt-get install -y git && sudo apt-get clean

Jan David Mol
committed
COPY lofar-requirements.txt /lofar-requirements.txt

Jan David Mol
committed
RUN sudo pip3 install -r /lofar-requirements.txt
# install and use ephimerides and geodetic ("measures") tables for casacore
RUN sudo mkdir -p /opt/IERS && sudo chmod a+rwx /opt/IERS
RUN IERS_DIRNAME=IERS-`date +%FT%T` && mkdir -p /opt/IERS/${IERS_DIRNAME} && ln -sfT /opt/IERS/${IERS_DIRNAME} /opt/IERS/current
RUN cd /opt/IERS/current && curl ftp://ftp.astron.nl/outgoing/Measures/WSRT_Measures.ztar | tar xz
COPY 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