-
Notifications
You must be signed in to change notification settings - Fork 2
/
singularity.py3.recipe
109 lines (94 loc) · 2.83 KB
/
singularity.py3.recipe
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
Bootstrap: docker
From: ubuntu:20.04
%help
Singularity image containing all commonly used astro software. This image is built on Ubuntu 20.04.
%environment
export DEBIAN_FRONTEND=noninteractive
%post
export DEBIAN_FRONTEND=noninteractive
# Install common dependencies
apt-get update \
&& apt-get --yes install --no-install-recommends \
libblas-dev \
liblapacke-dev \
build-essential \
casacore-data \
casacore-dev \
cmake \
git \
g++ \
gfortran \
python3-casacore \
python3-dev \
python3-pip \
python3-setuptools \
vim \
wget \
libcfitsio-dev \
libgsl-dev \
libhdf5-dev \
libfftw3-dev \
libboost-dev \
libboost-date-time-dev \
libboost-filesystem-dev \
libboost-program-options-dev \
libboost-system-dev \
montage \
libpng-dev \
liblua5.3-dev \
&& rm -rf /var/lib/apt/lists/*
# Install python3 packages
pip3 install -U pip
pip3 install -U astroplan numpy astropy matplotlib ipython RMextract jupyter
# Download NRAO CASA
pip3 install casatasks==6.5.3.28
pip3 install casadata
# Install BDSF
pip3 install bdsf
# Install breizorro
pip3 install breizorro
# Install mosaic-queen
pip3 install mosaic-queen
# Install Everybeam
cd / && git clone https://git.astron.nl/RD/EveryBeam.git \
&& cd EveryBeam && git checkout v0.5.3 \
&& mkdir build && cd build \
&& cmake ../ \
&& make -j $threads && make install \
&& cd / && rm -rf EveryBeam
# Install IDG
cd / && git clone https://gitlab.com/astron-idg/idg.git \
&& cd idg && git checkout 1.2.0 \
&& mkdir build && cd build \
&& cmake \
-DBUILD_LIB_CUDA=Off \
../ \
&& make && make install && cd / && rm -rf idg
# Install wsclean
cd / && git clone https://gitlab.com/aroffringa/wsclean.git \
&& cd wsclean && git checkout v3.4 \
&& mkdir build && cd build \
&& cmake ../ \
&& make -j 4 && make install \
&& cd / && rm -rf wsclean
# Install AOFlagger
cd / && git clone https://gitlab.com/aroffringa/aoflagger.git \
&& cd aoflagger && git checkout v3.4.0 \
&& mkdir build && cd build \
&& cmake ../ \
&& make -j 4 && make install \
&& cd / && rm -rf aoflagger
# Install DP3
cd / && git clone https://github.com/lofar-astron/DP3.git \
&& cd DP3 && git checkout v6.0 \
&& mkdir build && cd build \
&& cmake ../ \
&& make -j 4 && make install \
&& cd / && rm -rf DP3
# Install dysco
cd / && git clone https://github.com/aroffringa/dysco.git \
&& cd dysco && git checkout v1.2 \
&& mkdir build && cd build \
&& cmake ../ \
&& make -j 4 && make install \
&& cd / && rm -rf dysco