Skip to content
Dockerfile 1.85 KiB
Newer Older
FROM lofarit/base3.10

USER root

RUN apt-get install llvm-7 -y
ENV LLVM_CONFIG=llvm-config-7 
ENV PYTHONPATH /opt/lofarsoft/lib/python2.7/site-packages
#------------------------
# Get and install ddf2
#------------------------
# DDF pipeline
RUN cd /opt && git clone https://github.com/mhardcastle/ddf-pipeline.git
RUN cd /opt/ddf-pipeline && git checkout fdaa5aa

# SkyModel
RUN cd /opt && git clone https://github.com/cyriltasse/SkyModel.git
RUN cd /opt/SkyModel && git checkout 026997f

# killMS
COPY killMS /opt/killMS
#RUN cd /opt/killMS && python setup.py build
RUN cd /opt/killMS/Predict && make
RUN cd /opt/killMS/Array/Dot && make
RUN cd /opt/killMS/Gridder && make

# DynSpecMS
RUN cd /opt && git clone https://github.com/cyriltasse/DynSpecMS.git
RUN cd /opt/DynSpecMS && git checkout 461183f

# DDFacet
COPY DDFacet /opt/DDFacet
RUN cp /opt/ddf-pipeline/misc/setup.cfg /opt/DDFacet/ # Fix compile options
RUN python -m pip install -U pip setuptools wheel
Fabio Roberto Vitello's avatar
Fabio Roberto Vitello committed
RUN pip install -U pip setuptools wheel
Fabio Roberto Vitello's avatar
Fabio Roberto Vitello committed
RUN python -m pip install numpy==1.16.2 bdsf==1.8.15 emcee
RUN python -m pip install astropy_healpix pybind11 future pyregion sshtunnel pymysql psutil
RUN python -m pip install -U "/opt/DDFacet/[dft-support,moresane-support,testing-requirements,fits-beam-support]"
RUN cd /opt/DDFacet && rm -rf /opt/DDFacet/Dcbuild && python setup.py build
Fabio Roberto Vitello's avatar
Fabio Roberto Vitello committed
RUN python -m pip install bdsf==1.8.15 numpy==1.16.2
RUN sed -e "s|INSTALLDIR|/opt|" /opt/ddf-pipeline/misc/DDF.sh > /opt/DDFacet/init.sh

Fabio Roberto Vitello's avatar
Fabio Roberto Vitello committed
RUN  sed 's/numpy (<=1.16)/numpy (<=1.16.2)/g' /usr/local/lib/python2.7/dist-packages/meqtrees_cattery-1.7.0.dist-info/METADATA >  /usr/local/lib/python2.7/dist-packages/meqtrees_cattery-1.7.0.dist-info/METADATA
RUN cd /opt && git clone https://www.ict.inaf.it/gitlab/lofarit/container-data.git
#USER lofar

ENV CONTAINER_NAME='ddf2_base3.10'
ENV DDF_PIPELINE_CATALOGS='/opt/container-data/bootstrap-cats/'