-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
62 lines (41 loc) · 1.87 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
FROM nvidia/cuda:10.0-cudnn7-runtime-ubuntu16.04
# install gcc9 (from )
RUN apt-get update -y && \
apt-get upgrade -y && \
apt-get dist-upgrade -y && \
apt-get install build-essential software-properties-common -y && \
add-apt-repository ppa:ubuntu-toolchain-r/test -y && \
apt-get update -y && \
apt-get install gcc-9 g++-9 -y && \
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 60 --slave /usr/bin/g++ g++ /usr/bin/g++-9 && \
update-alternatives --config gcc
# install other build dependencies git and wget and zlib
RUN apt-get install git wget libz-dev libbz2-dev liblzma-dev -y
# clone repo
RUN cd / && mkdir dnascent && cd /dnascent && \
git clone --recursive https://github.com/MBoemo/DNAscent.git
# download hdf5 compression library
RUN cd /dnascent/ && wget https://github.com/nanoporetech/vbz_compression/releases/download/v1.0.1/ont-vbz-hdf-plugin-1.0.1-Linux-x86_64.tar.gz &&\
tar -xf ont-vbz-hdf-plugin-1.0.1-Linux-x86_64.tar.gz
# set env var for this
ENV HDF5_PLUGIN_PATH=/dnascent/ont-vbz-hdf-plugin-1.0.1-Linux/usr/local/hdf5/lib/plugin
# compile hdf5
RUN cd /dnascent/DNAscent &&\
wget https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.8/hdf5-1.8.14/src/hdf5-1.8.14.tar.gz; \
tar -xzf hdf5-1.8.14.tar.gz || exit 255; \
cd hdf5-1.8.14 && \
./configure --enable-threadsafe && \
make && make install;
# download tensorflow
RUN cd /dnascent/DNAscent &&\
mkdir tensorflow; \
cd tensorflow; \
wget https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-gpu-linux-x86_64-1.15.0.tar.gz; \
tar -xzf libtensorflow-gpu-linux-x86_64-1.15.0.tar.gz || exit 255;
# compile DNAscent
RUN cd /dnascent/DNAscent &&\
make
# Add to path
ENV PATH="${PATH}:/dnascent/DNAscent/bin"
# add cuda stuff to path
ENV LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/cuda/lib64