forked from UCBerkeleySETI/blimpy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
47 lines (36 loc) · 1.52 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
# To compile this with docker use:
# docker build --tag turbo_seti .
# Then to run it:
# docker run --rm -it turbo_seti
# To be able to access local disk on Mac OSX, you need to use Docker for Mac GUI
# and click on 'File sharing', then add your directory, e.g. /data/bl_pks
# Then to run it:
# docker run --rm -it -v /data/bl_pks:/mnt/data turbo_seti
# And if you want to access a port, you need to do a similar thing:
# docker run --rm -it -p 9876:9876 sigpyproc
# INSTALL BASE FROM KERN SUITE
FROM kernsuite/base:3
ARG DEBIAN_FRONTEND=noninteractive
ENV TERM xterm
######
# Do docker apt-installs
RUN docker-apt-install build-essential python-setuptools python-pip python-tk pkg-config
RUN docker-apt-install curl wget make cmake git
RUN docker-apt-install libomp-dev
RUN docker-apt-install libhdf5-serial-dev libhdf5-dev libhdf5-cpp-11
#####
# Pip installation of python packages
RUN pip install --upgrade pip setuptools wheel
RUN pip install numpy==1.14.1
RUN pip install pandas cython astropy matplotlib
RUN pip install --only-binary=scipy scipy
######
# HDF5 fixup
# Ubuntu 16.04 has a crazy hdf5 setup, needs some massaging, and extra flags to install h5py
RUN ln -s /usr/lib/x86_64-linux-gnu/libhdf5_serial.so /usr/lib/x86_64-linux-gnu/libhdf5.so
RUN ln -s /usr/lib/x86_64-linux-gnu/libhdf5_serial_hl.so /usr/lib/x86_64-linux-gnu/libhdf5_hl.so
RUN CFLAGS=-I/usr/include/hdf5/serial pip install h5py==2.5.0
RUN CFLAGS=-I/usr/include/hdf5/serial pip install bitshuffle==0.3.4
# Finally, install sigpyproc!
COPY . .
RUN python setup.py install