-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile
69 lines (56 loc) · 2.08 KB
/
Dockerfile
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
FROM ubuntu:20.04 AS spython-base
LABEL "APPLICATION_NAME_BASE"="Ubuntu LTS + MeqSilhouette + dependencies"
LABEL "OS_VERSION"="20.04"
LABEL "SYSTEM_NAME"="MeqSv2"
LABEL "SYSTEM_URL"="https://github.com/rdeane/MeqSilhouette"
LABEL "AUTHOR_NAME"="Iniyan Natarajan, Robin Hall"
LABEL "AUTHOR_EMAIL"="iniyannatarajan@gmail.com, robin@idia.ac.za"
# make opt directory for installs
RUN mkdir -p /opt
# ensure no interaction for tzdata in casa install
ENV DEBIAN_FRONTEND=noninteractive
# install utility packages and repositories
RUN apt-get update -y
RUN apt-get install -y wget vim python3-pip gcc python3 unzip git time
RUN pip uninstall -y enum34
RUN apt-get install -y build-essential cmake g++ rsync libboost-python-dev \
libboost-program-options-dev texlive-latex-extra texlive-fonts-recommended dvipng cm-super
# build aatm manually
RUN cd
RUN cd /opt
RUN wget -c https://launchpad.net/aatm/trunk/0.5/+download/aatm-0.5.tar.gz
RUN tar -xzf aatm-0.5.tar.gz
RUN cd aatm-0.5 && ./configure && make && make install
# register kern 7
RUN apt-get install -y software-properties-common
RUN add-apt-repository -s ppa:kernsuite/kern-7
RUN apt-add-repository multiverse
RUN apt-add-repository restricted
# install numpy==1.21 to avoid the error "numpy has no attribute 'BitGenerator' and 'asscalar'"
#RUN pip install numpy==1.21
# install required packages
RUN apt-get install -y \
meqtrees \
meqtrees-timba \
tigger-lsm \
python3-astro-tigger \
python3-astro-tigger-lsm \
casalite \
wsclean \
pyxis \
python3-casacore
# install numpy==1.21 to avoid the error "numpy has no attribute 'BitGenerator' and 'asscalar'"
RUN pip install numpy==1.21
RUN apt-get clean
# update casa data
RUN casa-config --exec update-data
# download and install MeqSilhouette from master
RUN cd
RUN cd /opt
RUN git clone --depth 1 https://github.com/rdeane/MeqSilhouette.git
RUN cd MeqSilhouette && pip install .
RUN cd
ENV MEQTREES_CATTERY_PATH=/usr/lib/python3/dist-packages/Cattery
ENV PATH=/usr/local/bin:$PATH
ENV PYTHONPATH=/usr/local/lib/python3.8/dist-packages:/usr/lib/python3/dist-packages
ENV LC_ALL=C