diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..fe5ea3ce7a1e7fc318c5d8176e3830d61b978af7 Binary files /dev/null and b/.DS_Store differ diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..c0ff1e74edfba7bb80ac825bb4f6784644a4592b --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ + +ddf2/DDFacet/ +ddf2/killMS/ diff --git a/base/Dockerfile b/base/Dockerfile index d12eed754ed6bc2c2d024492ba6bfef6fa66669a..1d872e3370a496672e12263ce5aa7c68d606ccfc 100644 --- a/base/Dockerfile +++ b/base/Dockerfile @@ -14,7 +14,8 @@ RUN apt update # Git, Curl, sudo and Nano RUN apt-get install git curl sudo nano -y - +RUN cd /opt/ && git clone https://github.com/lofar-astron/LOFARBeam.git +RUN mkdir /opt/LOFARBeam/build && cd /opt/LOFARBeam/build && cmake -DCMAKE_INSTALL_PREFIX=/opt/lofarsoft -DPYTHON_EXECUTABLE=$(which python) -DCASACORE_INCLUDE_DIRS=/opt/lofarsoft/include/casacore/ -DCASACORE_LIBRARIES=/opt/lofarsoft/lib/ -DCASACORE_ROOT_DIR=/opt/lofarsoft/ ../ && make -j16 && make install #------------------------ # Lofar user #------------------------ diff --git a/base/entrypoint.sh b/base/entrypoint.sh index 2533c561ae703c6de60986fa82958a6c8e61f8d3..57e43a5b903c4a8d64428fe0be6ba98b1578870f 100644 --- a/base/entrypoint.sh +++ b/base/entrypoint.sh @@ -7,7 +7,7 @@ set -e echo "" echo "[INFO] Executing entrypoint..." -echo "[INFO] Sourcing env in /opt/lofarsoft/lofarinit.sh..." +#echo "[INFO] Sourcing env in /opt/lofarsoft/lofarinit.sh..." source /opt/lofarsoft/lofarinit.sh echo "[INFO] Creating /tmp/lofarhome to be used as lofar home" diff --git a/ddf2/Dockerfile b/ddf2/Dockerfile index 068d9d98a99184d009fcd173265ea63e90315101..8d7a5891eac9b623cd149427066c42c8b12bc63b 100644 --- a/ddf2/Dockerfile +++ b/ddf2/Dockerfile @@ -1,10 +1,13 @@ 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 #------------------------ -USER root - # DDF pipeline RUN cd /opt && git clone https://github.com/mhardcastle/ddf-pipeline.git RUN cd /opt/ddf-pipeline && git checkout fdaa5aa @@ -14,8 +17,8 @@ RUN cd /opt && git clone https://github.com/cyriltasse/SkyModel.git RUN cd /opt/SkyModel && git checkout 026997f # killMS -RUN cd /opt && git clone https://github.com/saopicc/killMS.git -RUN cd /opt/killMS && git checkout b9e6ab6 #lofar-stable branch latest commit @ 24 Apr 2020 +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 @@ -27,16 +30,23 @@ 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 RUN pip install -U pip setuptools wheel -RUN python -m pip install pybind11 future pyregion sshtunnel pymysql psutil -#RUN python -m pip install -U "/opt/DDFacet/[dft-support,moresane-support,testing-requirements,fits-beam-support]" +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 && python setup.py build +RUN cd /opt/DDFacet && rm -rf /opt/DDFacet/Dcbuild && python setup.py build +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 +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 +#USER lofar ENV CONTAINER_NAME='ddf2_base3.10' +ENV DDF_PIPELINE_CATALOGS='/opt/container-data/bootstrap-cats/'