-
Notifications
You must be signed in to change notification settings - Fork 9
/
Dockerfile
80 lines (69 loc) · 2.09 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
70
71
72
73
74
75
76
77
78
79
80
FROM kernsuite/base:5
RUN docker-apt-install \
casacore-dev \
casacore-tools \
casarest \
python-pip \
python-pyfits \
python-numpy \
python-scipy \
python-astlib \
python-casacore \
libqdbm-dev \
build-essential \
cmake \
libblitz0-dev \
binutils-dev \
makems
RUN docker-apt-install \
wget
RUN pip3 install -U pip setuptools wheel
################################
# install latest masters
################################
RUN echo "deb-src http://ppa.launchpad.net/kernsuite/kern-5/ubuntu bionic main" > /etc/apt/sources.list.d/kernsuite-ubuntu-kern-4-bionic.list
RUN apt-get update
RUN apt-get build-dep -y meqtrees-timba meqtrees-cattery
RUN docker-apt-install python-qt4 python-qwt5-qt4 git
RUN mkdir -p /opt/src/meqtrees
ENV BUILD /opt/src/meqtrees
WORKDIR $BUILD
# now the rest of Meqtrees
WORKDIR $BUILD
RUN git clone https://github.com/ska-sa/meqtrees-timba
RUN git clone https://github.com/ska-sa/kittens
RUN git clone https://github.com/ska-sa/purr
RUN git clone https://github.com/ska-sa/tigger
RUN git clone https://github.com/ska-sa/owlcat
# Add current module
ADD . /opt/src/meqtrees/cattery
# Build Timba
RUN mkdir meqtrees-timba/build
WORKDIR $BUILD/meqtrees-timba
RUN Tools/Build/bootstrap_cmake release
WORKDIR $BUILD
RUN cd meqtrees-timba/build/release && make -j16 && make install
# Install python2.7 modules
RUN cd cattery && pip install .
RUN cd kittens && pip install .
RUN cd purr && pip install .
RUN cd tigger && pip install .
RUN cd owlcat && pip install .
ENV LD_LIBRARY_PATH /usr/local/lib:$LD_LIBRARY_PATH
ENV PATH /usr/local/bin:$PATH
RUN ldconfig # update the linker config
################################
# get the test from pyxis
################################
WORKDIR $BUILD
RUN wget https://github.com/ska-sa/pyxis/archive/v1.6.2.tar.gz
RUN tar -xvf v1.6.2.tar.gz
WORKDIR $BUILD/pyxis-1.6.2
RUN ls .
RUN pip install -U .
# run test when built
RUN pip install nose
WORKDIR /usr/local/lib/python2.7/dist-packages/Pyxis/recipies/meqtrees-batch-test
RUN python2.7 -m "nose"
ENTRYPOINT ["meqtree-pipeliner.py"]
CMD ["--help"]