-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
68 lines (59 loc) · 1.71 KB
/
Dockerfile
File metadata and controls
68 lines (59 loc) · 1.71 KB
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
FROM ubuntu:16.04
# Set metadata
LABEL maintainer="tmiller@mochsl.org.br"
# Define dinamic variable for TIPseqHunter annotation data
# This must be a gzipped tarball reachable by URL
ARG tarball_url
# Set environment variables
ENV SAMTOOLS_URL="https://github.com/samtools/samtools/releases/download/1.7/samtools-1.7.tar.bz2" \
SAMTOOLS_PATH="/samtools-1.7" \
BOWTIE2_URL="https://github.com/BenLangmead/bowtie2/archive/v2.2.3.tar.gz" \
BOWTIE2_PATH="/bowtie2-2.2.3"
# Set PATH to find samtools
ENV PATH=${SAMTOOLS_PATH}:${PATH}
# Install core packages
# R: ggplot2, e1071, caret, pROC
# JAVA: Openjdk-7
# Compile: samtools, bowtie2
RUN apt-get update \
&& apt-get install -y \
autoconf \
automake \
bzip2 \
gcc \
g++ \
gzip \
make \
libbz2-dev \
libcairo2-dev \
libcurl4-gnutls-dev \
libgit2-dev \
liblzma-dev \
libncurses5-dev \
libssl-dev \
libtool \
libxml2-dev \
r-base \
r-base-core \
r-cran-caret \
r-cran-e1071 \
r-cran-ggplot2 \
software-properties-common \
wget \
zlib1g-dev \
&& add-apt-repository -y ppa:openjdk-r/ppa \
&& apt-get update \
&& apt-get install -y openjdk-7-jdk \
&& Rscript -e 'install.packages("pROC", dependencies = TRUE, repos="http://cloud.r-project.org/")' \
&& wget -qO - ${SAMTOOLS_URL} | tar -xj -C / && (cd ${SAMTOOLS_PATH} && make) \
&& wget -qO - ${BOWTIE2_URL} | tar -xz -C / && (cd ${BOWTIE2_PATH} && make) \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Add annotation data from URL to the image
RUN wget -qO - ${tarball_url} | tar -xz -C /
# Copy thirdparty libraries and TIPseqHunter{,2}.jar
COPY thirdparty lib /java/
# Copy all TIPseqHunter executables
COPY bin /usr/bin/
# Set default command
CMD ["bash"]