Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
ASTRON SDC
LOFARimagerecipies
Commits
e61ab801
Commit
e61ab801
authored
Mar 03, 2021
by
Marco Iacobelli
Browse files
Update Dockerfile
parent
fc25e389
Pipeline
#10102
failed with stage
in 1 minute and 55 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Dockerfile
View file @
e61ab801
...
...
@@ -20,13 +20,13 @@ RUN cd / && wget https://dl.bintray.com/boostorg/release/1.63.0/source/boost_1_6
RUN
cd
/
&&
mkdir
-p
/opt/lofarsoft/data
&&
cd
/opt/lofarsoft/data
&&
wget ftp://anonymous@ftp.astron.nl/outgoing/Measures/WSRT_Measures.ztar
&&
tar
xvf WSRT_Measures.ztar
&&
rm
WSRT_Measures.ztar
# install casacore v2.4.1
RUN
cd
/
&&
wget https://github.com/casacore/casacore/archive/v2.4.1.tar.gz
&&
tar
xvf v2.4.1.tar.gz
&&
cd
casacore-2.4.1
&&
mkdir
build
&&
cd
build
&&
cmake
-DBUILD_PYTHON
=
True
-DDATA_DIR
=
/opt/lofarsoft/data
-DUSE_OPENMP
=
ON
-DUSE_THREADS
=
OFF
-DUSE_FFTW3
=
TRUE
-DUSE_HDF5
=
ON
-DCXX11
=
ON
-DCMAKE_BUILD_TYPE
=
Release
-DCMAKE_INSTALL_PREFIX
=
/opt/lofarsoft/
-DCMAKE_CXX_FLAGS
=
"-fsigned-char -O2 -DNDEBUG -march=native"
../
&&
make
-j4
&&
make
install
&&
cd
../../
&&
rm
-rf
casacore-2.4.1 v2.4.1.tar.gz
RUN
cd
/
&&
wget https://github.com/casacore/casacore/archive/v2.4.1.tar.gz
&&
tar
xvf v2.4.1.tar.gz
&&
cd
casacore-2.4.1
&&
mkdir
build
&&
cd
build
&&
cmake
-DPORTABLE
-DBUILD_PYTHON
=
True
-DDATA_DIR
=
/opt/lofarsoft/data
-DUSE_OPENMP
=
ON
-DUSE_THREADS
=
OFF
-DUSE_FFTW3
=
TRUE
-DUSE_HDF5
=
ON
-DCXX11
=
ON
-DCMAKE_BUILD_TYPE
=
Release
-DCMAKE_INSTALL_PREFIX
=
/opt/lofarsoft/
-DCMAKE_CXX_FLAGS
=
"-fsigned-char -O2 -DNDEBUG -march=native"
../
&&
make
-j4
&&
make
install
&&
cd
../../
&&
rm
-rf
casacore-2.4.1 v2.4.1.tar.gz
# install python casacore v3.2.0
RUN
cd
/
&&
wget https://github.com/casacore/python-casacore/archive/v3.2.0.tar.gz
&&
tar
xvf v3.2.0.tar.gz
&&
cd
python-casacore-3.2.0
&&
python setup.py build_ext
-I
/opt/lofarsoft/include
-L
/opt/lofarsoft/lib/
&&
mkdir
-p
/opt/lofarsoft/lib/python2.7/site-packages/
&&
export
PYTHONPATH
=
/opt/lofarsoft/lib/python2.7/site-packages/
&&
python setup.py
install
--prefix
=
/opt/lofarsoft
&&
cd
../
&&
rm
-rf
v3.2.0.tar.gz
# install AOFlagger 2.14 last py2 version compatible
RUN
cd
/
&&
wget https://sourceforge.net/projects/aoflagger/files/aoflagger-2.14.0/aoflagger-2.14.0.tar.bz2/download
&&
mv
download download.tar
&&
tar
xvf download.tar
&&
cd
aoflagger-2.14.0
&&
mkdir
build
&&
cd
build
&&
cmake ../
-DCMAKE_INSTALL_PREFIX
=
/opt/lofarsoft
-DCMAKE_PREFIX_PATH
=
/opt/lofarsoft
&&
make
-j4
&&
make
install
&&
cd
../../
&&
rm
-rf
download.tar aoflagger-2.14.0
RUN
cd
/
&&
wget https://sourceforge.net/projects/aoflagger/files/aoflagger-2.14.0/aoflagger-2.14.0.tar.bz2/download
&&
mv
download download.tar
&&
tar
xvf download.tar
&&
cd
aoflagger-2.14.0
&&
mkdir
build
&&
cd
build
&&
cmake ../
-DPORTABLE
-DCMAKE_INSTALL_PREFIX
=
/opt/lofarsoft
-DCMAKE_PREFIX_PATH
=
/opt/lofarsoft
&&
make
-j4
&&
make
install
&&
cd
../../
&&
rm
-rf
download.tar aoflagger-2.14.0
# install losoto 2.0
RUN
cd
/
&&
git clone https://github.com/revoltek/losoto.git
&&
cd
losoto
&&
git checkout c8fbd6194074bef4009cb66dd7ecd59e98664d63
&&
export
PYTHONPATH
=
/opt/lofarsoft/lib/python2.7/site-packages/
&&
pip
install
tables
==
3.5.2
&&
pip
install
configparser
==
4.0.2
&&
python setup.py
install
--prefix
=
/opt/lofarsoft
&&
cd
/
&&
rm
-rf
losoto
...
...
@@ -41,23 +41,23 @@ RUN cd / && git clone https://github.com/lofar-astron/PyBDSF.git && export PYTHO
RUN
cd
/
&&
git clone https://github.com/darafferty/LSMTool.git
&&
cd
LSMTool
&&
git checkout v1.4.2
&&
export
PYTHONPATH
=
/opt/lofarsoft/lib/python2.7/site-packages/
&&
python setup.py
install
--prefix
=
/opt/lofarsoft
&&
cd
/
&&
rm
-rf
LSMTool
# install the LOFAR beam library
RUN
cd
/
&&
git clone https://github.com/lofar-astron/LOFARBeam.git
&&
cd
LOFARBeam
&&
mkdir
build
&&
cd
build
&&
cmake
-DCMAKE_INSTALL_PREFIX
=
/opt/lofarsoft
-DCMAKE_PREFIX_PATH
=
/opt/lofarsoft ../
&&
make
&&
make
install
&&
cd
../../
&&
rm
-rf
LOFARBeam
RUN
cd
/
&&
git clone https://github.com/lofar-astron/LOFARBeam.git
&&
cd
LOFARBeam
&&
mkdir
build
&&
cd
build
&&
cmake
-DPORTABLE
-DCMAKE_INSTALL_PREFIX
=
/opt/lofarsoft
-DCMAKE_PREFIX_PATH
=
/opt/lofarsoft ../
&&
make
&&
make
install
&&
cd
../../
&&
rm
-rf
LOFARBeam
# install IDG 0.7
RUN
cd
/
&&
git clone https://gitlab.com/astron-idg/idg.git
&&
cd
idg
&&
git checkout 0.7
&&
mkdir
build
&&
cd
build
&&
cmake
-DCMAKE_INSTALL_PREFIX
=
/opt/lofarsoft ../
&&
make
&&
make
install
&&
cd
/
&&
rm
-rf
idg
RUN
cd
/
&&
git clone https://gitlab.com/astron-idg/idg.git
&&
cd
idg
&&
git checkout 0.7
&&
mkdir
build
&&
cd
build
&&
cmake
-DPORTABLE
-DCMAKE_INSTALL_PREFIX
=
/opt/lofarsoft ../
&&
make
&&
make
install
&&
cd
/
&&
rm
-rf
idg
# install WSClean v2.10.1
RUN
cd
/
&&
git clone https://gitlab.com/aroffringa/wsclean.git
&&
cd
wsclean
&&
git checkout v2.10.1
&&
mkdir
-p
build
&&
cd
build
&&
cmake
-DCASACORE_ROOT_DIR
=
/opt/lofarsoft
-DIDGAPI_LIBRARIES
=
/opt/lofarsoft/lib/libidg-api.so
-DIDGAPI_INCLUDE_DIRS
=
/opt/lofarsoft/include
-DCMAKE_PREFIX_PATH
=
/opt/lofarsoft
-DCMAKE_INSTALL_PREFIX
=
/opt/lofarsoft ../
&&
make
-j
4
&&
make
install
RUN
cd
/
&&
git clone https://gitlab.com/aroffringa/wsclean.git
&&
cd
wsclean
&&
git checkout v2.10.1
&&
mkdir
-p
build
&&
cd
build
&&
cmake
-DPORTABLE
-DCASACORE_ROOT_DIR
=
/opt/lofarsoft
-DIDGAPI_LIBRARIES
=
/opt/lofarsoft/lib/libidg-api.so
-DIDGAPI_INCLUDE_DIRS
=
/opt/lofarsoft/include
-DCMAKE_PREFIX_PATH
=
/opt/lofarsoft
-DCMAKE_INSTALL_PREFIX
=
/opt/lofarsoft ../
&&
make
-j
4
&&
make
install
# install Dysco v1.2
RUN
cd
/
&&
wget https://github.com/aroffringa/dysco/archive/v1.2.tar.gz
&&
tar
xvf v1.2.tar.gz
&&
cd
dysco-1.2
&&
mkdir
build
&&
cd
build
&&
cmake
-DCASACORE_ROOT_DIR
=
/opt/lofarsoft
-DCMAKE_INSTALL_PREFIX
=
/opt/lofarsoft ../
&&
make
-j
4
&&
make
install
&&
cd
/
&&
rm
-rf
v1.2.tar.gz dysco-1.2
RUN
cd
/
&&
wget https://github.com/aroffringa/dysco/archive/v1.2.tar.gz
&&
tar
xvf v1.2.tar.gz
&&
cd
dysco-1.2
&&
mkdir
build
&&
cd
build
&&
cmake
-DPORTABLE
-DCASACORE_ROOT_DIR
=
/opt/lofarsoft
-DCMAKE_INSTALL_PREFIX
=
/opt/lofarsoft ../
&&
make
-j
4
&&
make
install
&&
cd
/
&&
rm
-rf
v1.2.tar.gz dysco-1.2
# install DP3 v4.1 last py2 version compatible
RUN
cd
/
&&
git clone https://github.com/lofar-astron/DP3.git
&&
cd
DP3
&&
git checkout v4.1
&&
mkdir
build
&&
cd
build
&&
cmake
-DCMAKE_INSTALL_PREFIX
=
/opt/lofarsoft
-DCMAKE_PREFIX_PATH
=
/opt/lofarsoft ../
&&
make
&&
make
install
&&
ln
-s
/opt/lofarsoft/bin/DPPP /opt/lofarsoft/bin/NDPPP
&&
cd
../../
&&
rm
-rf
DP3
# install LOFAR 3.2.1
RUN
cd
/
&&
svn
--non-interactive
-q
co https://svn.astron.nl/LOFAR/branches/LOFAR-Release-3_2/
source
RUN
cd source
&&
mkdir
-p
build/gnucxx11_optarch
&&
cd
build/gnucxx11_optarch
&&
cmake
-DBUILD_PACKAGES
=
"Pipeline ParmDB pyparmdb"
-DCMAKE_INSTALL_PREFIX
=
/opt/lofarsoft
-DCASACORE_ROOT_DIR
=
/opt/lofarsoft
-DBUILD_TESTING
=
OFF
-DUSE_OPENMP
=
True ../../
&&
make
-j1
&&
make
install
&&
cd
/
&&
rm
-rf
source
RUN
cd source
&&
mkdir
-p
build/gnucxx11_optarch
&&
cd
build/gnucxx11_optarch
&&
cmake
-DPORTABLE
-DBUILD_PACKAGES
=
"Pipeline ParmDB pyparmdb"
-DCMAKE_INSTALL_PREFIX
=
/opt/lofarsoft
-DCASACORE_ROOT_DIR
=
/opt/lofarsoft
-DBUILD_TESTING
=
OFF
-DUSE_OPENMP
=
True ../../
&&
make
-j1
&&
make
install
&&
cd
/
&&
rm
-rf
source
# install factor 2
RUN
cd
/
&&
git clone https://github.com/lofar-astron/factor.git
&&
cd factor
&&
export
PYTHONPATH
=
/opt/lofarsoft/lib/python2.7/site-packages/
&&
python setup.py
install
--prefix
=
/opt/lofarsoft
&&
cd
/
&&
rm
-rf
factor
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment