-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathDockerfile
67 lines (52 loc) · 1.78 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
############################################################
# Dockerfile to build Juicer container image
# Based on Ubuntu
############################################################
# Set the base image to Ubuntu
FROM ubuntu
# File Author / Maintainer
MAINTAINER Neva C. Durand
# Update the repository sources list
# Install base packages: java, git, wget
RUN apt-get update && apt-get install -y \
default-jdk \
gawk \
gcc \
git \
libz-dev \
locales \
make \
unzip \
bzip2 \
libbz2-dev \
&& rm -rf /var/lib/apt/lists/*
# GAWK has the 'and' function, needed for chimeric_blacklist
RUN echo 'alias awk=gawk' >> ~/.bashrc
# Need to be sure we have this for stats
RUN locale-gen en_US.UTF-8
WORKDIR /opt/
# Install BWA
ADD https://github.com/lh3/bwa/archive/v0.7.17.zip .
RUN unzip v0.7.17.zip
RUN cd bwa-0.7.17/ && make
RUN ln -s bwa-0.7.17/bwa bwa
# Install Samtools
ADD https://github.com/samtools/samtools/releases/download/1.6/samtools-1.6.tar.bz2 .
RUN bunzip2 samtools-1.6.tar.bz2
RUN tar xf samtools-1.6.tar
RUN cd samtools-1.6 && ./configure --without-curses --disable-bz2 --disable-lzma && make && make install
# Install Juicer
ADD https://github.com/theaidenlab/juicer/archive/1.6.2.zip .
RUN unzip 1.6.2.zip
RUN cd juicer-1.6.2 && chmod +x CPU/* CPU/common/*
# Install Juicer tools
ADD http://hicfiles.tc4ga.com.s3.amazonaws.com/public/juicer/juicer_tools.1.7.6_jcuda.0.8.jar /opt/juicer-1.6.2/CPU/common
RUN ln -s /opt/juicer-1.6.2/CPU/common/juicer_tools.1.7.6_jcuda.0.8.jar /opt/juicer-1.6.2/CPU/common/juicer_tools.jar
RUN ln -s juicer-1.6.2/CPU scripts
# Version number contained in image
ADD VERSION .
# For sorting, LC_ALL is C
ENV LC_ALL C
ENV PATH=/opt:/opt/scripts:/opt/scripts/common:$PATH
ENTRYPOINT ["juicer.sh", "-D", "/opt"]
CMD ["-h"]