-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
78 lines (68 loc) · 1.85 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
FROM mcranmer/bifrost
# From https://github.com/cmbant/docker-cosmobox
#Install latex and python (skip pyside, assume only command line)
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
texlive dvipng texlive-latex-extra texlive-fonts-recommended \
python-pip \
python-setuptools \
python-dev \
python-numpy \
python-matplotlib \
python-scipy \
python-pandas \
cython \
ipython \
wget \
&& apt-get clean
# In case want to run starcluster from here
#RUN pip install starcluster
#Install cfitsio library for reading FITS files
RUN oldpath=`pwd` && cd /tmp \
&& wget ftp://heasarc.gsfc.nasa.gov/software/fitsio/c/cfitsio_latest.tar.gz \
&& tar zxvf cfitsio_latest.tar.gz \
&& cd cfitsio \
&& ./configure --prefix=/usr \
&& make -j 2 \
&& make install \
&& make clean \
&& cd $oldpath \
&& rm -Rf /tmp/cfitsio*
#Install gfortran for building gbt_seti
RUN apt-get update && \
export DEBIAN_FRONTEND=noninteractive && \
apt-get install -qqy --no-install-recommends \
gfortran \
mysql-server \
libmysqlclient-dev \
mongodb-dev \
libmongo-client-dev
RUN wget https://github.com/mongodb/mongo-c-driver/releases/download/1.6.2/mongo-c-driver-1.6.2.tar.gz && \
tar xzf mongo* && \
cd mongo* && \
./configure && \
make && \
make install
# Install more necessary packages
RUN apt-get update && \
apt-get install -qqy --no-install-recommends \
libcurlpp-dev \
libpcap-dev \
libssl-dev \
libxml2-dev \
fakeroot \
libcurl4-gnutls-dev \
libfftw3-dev \
libgsl0-dev
# Install source libs3
RUN git clone https://github.com/bji/libs3.git && \
cd libs3 && \
make deb && \
make install && \
cd ..
COPY . .
# Finally, install gbt_seti
RUN cd src && \
make && \
make install
RUN ["/bin/bash"]