-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.old
61 lines (53 loc) · 1.85 KB
/
Dockerfile.old
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
FROM gcc:5.3
MAINTAINER [email protected]
# Installs ICE from sources into /opt/
ENV DEST_DIR=/opt/
# Install GSL
ENV GSL_VERSION=2.2.1
ENV GSL=http://mirror.thecodefactory.org/gnu/gsl/gsl-${GSL_VERSION}.tar.gz
RUN curl -SLo ${DEST_DIR}/gsl-${GSL_VERSION}.tar.gz ${GSL} && \
tar -xf ${DEST_DIR}/gsl-${GSL_VERSION}.tar.gz -C ${DEST_DIR} && \
rm ${DEST_DIR}/gsl-${GSL_VERSION}.tar.gz && \
cd ${DEST_DIR}/gsl-${GSL_VERSION} && \
./configure && \
make && \
make install && \
rm -rf ${DEST_DIR}/gsl-${GSL_VERSION}
# Download and install kentUtikls
RUN git clone git://github.com/ENCODE-DCC/kentUtils.git && \
cd kentUtils && \
make && \
cp -r ./bin/* /opt/ && \
cd .. && \
rm -rf kentUtils
# Download tabix from Samtools
ENV TABIX_VERSION=0.2.6
ENV TABIX_URL=https://sourceforge.net/projects/samtools/files/tabix/tabix-${TABIX_VERSION}.tar.bz2/download
RUN curl -SLo ${DEST_DIR}/tabix-${TABIX_VERSION}.tar.bz2 ${TABIX_URL} && \
tar -xf ${DEST_DIR}/tabix-${TABIX_VERSION}.tar.bz2 -C ${DEST_DIR} && \
rm ${DEST_DIR}/tabix-${TABIX_VERSION}.tar.bz2 && \
cd ${DEST_DIR}/tabix-${TABIX_VERSION} && \
make && \
cp -r tabix ${DEST_DIR} && \
rm -rf ${DEST_DIR}/tabix-${TABIX_VERSION}
# Download and compile ICE libraries
RUN cd ${DEST_DIR} && \
mkdir ice && \
cd ice && \
git clone git://github.com/bmajoros/ICE.git && \
git clone git://github.com/bmajoros/BOOM.git && \
git clone git://github.com/bmajoros/perl.git && \
cd BOOM && \
make all && \
cd ../ICE && \
make all && \
chmod a+x *.pl ../perl/*.pl
# Setup the environment
ENV PATH=${DEST_DIR}:${PATH}
ENV TMPDIR=/tmp/
ENV ICE=${DEST_DIR}/ice/ICE
ENV PERLLIB=${DEST_DIR}/ice/perl
ENV PATH=${DEST_DIR}/ice/ICE:${PATH}
ENV LD_LIBRARY_PATH=/usr/local/lib
# Default command for the image (when is run without any command)
CMD ["ice"]