1
1
FROM quay.io/wtsicgp/dockstore-cgpmap:3.1.4 as builder
2
2
USER root
3
3
4
- # Tool version ENVs, some of them are also used in the second build stage, make sure version are consistent between the two stages.
4
+ # Version of tools that are installed in both stages, make sure they are consistent.
5
+ # # VAGrENG dependcies
6
+ ENV VER_BEDTOOLS "2.25.0-1"
7
+ # # cgpRna dependencies
8
+ ENV VER_BOWTIE1 "1.1.2-3"
9
+ ENV VER_BOWTIE2 "2.2.6-2"
10
+ ENV VER_BLAST "2.2.31-4"
11
+ ENV VER_GMAP "2015-12-31.v7-1"
12
+
13
+ # Version of other tools
5
14
# # VAGrENG dependcies
6
15
ENV VER_VCFTOOLS "0.1.16"
7
16
ENV VER_Set_IntervalTree "0.12"
8
- ENV VER_BEDTOOLS "2.25.0-1"
9
17
# # CancerIT dependencies
10
18
ENV VER_CGPVCF "v2.2.1"
11
19
ENV VER_GRASS "v2.1.1"
12
20
ENV VER_VAGRENT "v3.3.3"
13
21
# # cgpRna dependencies
22
+ ENV VER_RSEQC "3.0.0"
23
+ ENV VER_HTSEQ "0.7.2"
14
24
ENV VER_File_ShareDir_Install "0.13"
15
25
ENV VER_Config_IniFiles "3.000002"
16
26
ENV VER_STAR "2.5.0c"
@@ -20,6 +30,13 @@ ENV VER_DEFUSE "v0.8.2"
20
30
ENV SOURCE_FATOTWOBIT "http://hgdownload.soe.ucsc.edu/admin/exe/linux.x86_64/faToTwoBit"
21
31
ENV SOURCE_BLAT "https://hgwdev.gi.ucsc.edu/~kent/src/blatSrc35.zip"
22
32
33
+ RUN apt-get -yq update
34
+
35
+ RUN apt-get install -qy --no-install-recommends lsb-release
36
+
37
+ RUN echo "deb http://cran.rstudio.com/bin/linux/ubuntu `lsb_release -cs`/" >> /etc/apt/sources.list
38
+ RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
39
+
23
40
RUN apt-get -yq update
24
41
RUN apt-get install -yq --no-install-recommends \
25
42
locales \
@@ -28,19 +45,34 @@ make \
28
45
gcc \
29
46
pkg-config \
30
47
zlib1g-dev \
31
- software-properties-common \
32
48
zip \
33
49
unzip \
34
50
libpng-dev \
35
- libboost-all-dev
51
+ python3 python3-dev python3-pip python3-setuptools \
52
+ r-base r-base-dev \
53
+ libcurl4-gnutls-dev zlib1g-dev \
54
+ bedtools=${VER_BEDTOOLS} \
55
+ bowtie=${VER_BOWTIE1} \
56
+ bowtie2=${VER_BOWTIE2} \
57
+ ncbi-blast+=${VER_BLAST} \
58
+ gmap=${VER_GMAP}
59
+
36
60
# libboost-all-dev is required to compile defuse. Its installation installs python2 as well, which is required for building Bedtools
61
+ RUN apt-get install -yq --no-install-recommends libboost-all-dev
62
+ # for building matplotlib
63
+ RUN apt-get install -yq --no-install-recommends libfreetype6-dev
64
+
65
+ RUN apt-get install -yq --no-install-recommends liblzo2-dev
37
66
38
67
RUN locale-gen en_US.UTF-8
39
68
RUN update-locale LANG=en_US.UTF-8
40
69
41
70
ENV OPT /opt/wtsi-cgp
42
71
ENV PATH $OPT/bin:$OPT/biobambam2/bin:$PATH
43
72
ENV PERL5LIB $OPT/lib/perl5
73
+ ENV R_LIBS $OPT/R-lib
74
+ ENV R_LIBS_USER $R_LIBS
75
+ ENV PYTHONPATH $OPT/python-lib/lib/python3.5/site-packages
44
76
ENV LD_LIBRARY_PATH $OPT/lib
45
77
ENV LC_ALL en_US.UTF-8
46
78
ENV LANG en_US.UTF-8
@@ -52,14 +84,30 @@ RUN bash build/opt-build.sh $OPT
52
84
# build the tools in this repo, separate to reduce build time on errors
53
85
COPY . .
54
86
RUN bash build/opt-build-local.sh $OPT
87
+ RUN bash build/config-defuse.sh $OPT
55
88
56
89
FROM ubuntu:16.04
57
90
58
91
LABEL maintainer=
"[email protected] " \
59
92
uk.ac.sanger.cgp="Cancer, Ageing and Somatic Mutation, Wellcome Trust Sanger Institute" \
60
- version="2.3.4 " \
93
+ version="2.4.0 " \
61
94
description="cgpRna docker"
62
95
96
+ # Version of tools that are installed in both stages, make sure they are consistent.
97
+ # # VAGrENG dependcies
98
+ ENV VER_BEDTOOLS "2.25.0-1"
99
+ # # cgpRna dependencies
100
+ ENV VER_BOWTIE1 "1.1.2-3"
101
+ ENV VER_BOWTIE2 "2.2.6-2"
102
+ ENV VER_BLAST "2.2.31-4"
103
+ ENV VER_GMAP "2015-12-31.v7-1"
104
+
105
+ RUN apt-get -yq update
106
+ RUN apt-get install -qy --no-install-recommends lsb-release
107
+
108
+ RUN echo "deb http://cran.rstudio.com/bin/linux/ubuntu `lsb_release -cs`/" >> /etc/apt/sources.list
109
+ RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
110
+
63
111
RUN apt-get -yq update
64
112
RUN apt-get install -yq --no-install-recommends \
65
113
apt-transport-https \
@@ -74,40 +122,36 @@ zlib1g \
74
122
liblzma5 \
75
123
libncurses5 \
76
124
p11-kit \
77
- software-properties-common \
78
- unattended-upgrades && \
125
+ unattended-upgrades \
126
+ python3 \
127
+ r-base \
128
+ bedtools=${VER_BEDTOOLS} \
129
+ bowtie=${VER_BOWTIE1} \
130
+ bowtie2=${VER_BOWTIE2} \
131
+ ncbi-blast+=${VER_BLAST} \
132
+ gmap=${VER_GMAP} && \
79
133
unattended-upgrade -d -v && \
80
134
apt-get remove -yq unattended-upgrades && \
81
135
apt-get autoremove -yq
82
136
83
137
RUN locale-gen en_US.UTF-8
84
138
RUN update-locale LANG=en_US.UTF-8
85
139
86
- # dependecy tool versions, some of them are also used in the first stage, make sure they are consistent between stages.
87
- # # VAGrENG dependcies
88
- ENV VER_VCFTOOLS "0.1.16"
89
- ENV VER_BEDTOOLS "2.25.0-1"
90
- # # cgpRna dependencies
91
- ENV VER_BOWTIE1 "1.1.2-3"
92
- ENV VER_BOWTIE2 "2.2.6-2"
93
- ENV VER_BLAST "2.2.31-4"
94
- ENV VER_GMAP "2015-12-31.v7-1"
95
- ENV VER_RSEQC "3.0.0"
96
- ENV VER_HTSEQ "0.7.2"
97
-
98
140
ENV OPT /opt/wtsi-cgp
99
- ENV PATH $OPT/bin:$OPT/biobambam2/bin:$PATH
141
+ ENV PATH $OPT/bin:$OPT/biobambam2/bin:$OPT/python-lib/bin/:$ PATH
100
142
ENV PERL5LIB $OPT/lib/perl5
143
+ ENV R_LIBS $OPT/R-lib
144
+ ENV R_LIBS_USER $R_LIBS
145
+ ENV PYTHONPATH $OPT/python-lib/lib/python3.5/site-packages
101
146
ENV LD_LIBRARY_PATH $OPT/lib
102
147
ENV LC_ALL en_US.UTF-8
103
148
ENV LANG en_US.UTF-8
104
149
105
150
RUN mkdir -p $OPT
106
151
COPY --from=builder $OPT $OPT
107
152
108
- COPY build/opt-build-sys-dependencies.sh ./
109
- COPY build/config-defuse.sh ./
110
- RUN bash opt-build-sys-dependencies.sh && rm -f opt-build-sys-dependencies.sh && bash config-defuse.sh $OPT && rm -f config-defuse.sh
153
+ COPY run-cgprna $OPT/cgprna
154
+ RUN cd $OPT/cgprna && python3 setup.py develop
111
155
112
156
# # USER CONFIGURATION
113
157
RUN adduser --disabled-password --gecos '' ubuntu && chsh -s /bin/bash && mkdir -p /home/ubuntu
0 commit comments