-
Notifications
You must be signed in to change notification settings - Fork 11
/
Dockerfile
106 lines (86 loc) · 2.67 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
#####
#
# sppIDer
# - Quinn Langdon's sppIDer bioinformatics pipeline
# - https://hub.docker.com/r/glbrc/sppider/
# - https://github.com/GLBRC/sppIDer
#
#####
### base image
# https://hub.docker.com/_/centos/
FROM centos:7.5.1804
### install prereqs
# epel-release is required first to install the yum repo for R
RUN yum update -y && \
yum install -y \
epel-release && \
yum install -y \
bzip2 \
bzip2-devel \
cairo-devel \
ed \
gcc \
gcc-c++ \
libcurl \
libcurl-devel \
make \
mariadb-devel \
ncurses-devel \
openssl-devel \
postgresql-devel \
R \
wget \
xz-devel \
zlib-devel && \
yum clean all && \
rm -rf /var/cache/yum
### samtools 1.6
# build and install to /usr/local/bin/
RUN cd /tmp && \
wget https://github.com/samtools/samtools/releases/download/1.6/samtools-1.6.tar.bz2 && \
tar -xjvf samtools-1.6.tar.bz2 && \
rm -f samtools-1.6.tar.bz2 && \
cd samtools-1.6/ && \
make && make install && \
rm -rf /tmp/samtools-1.6
### bwa 0.7.12
# build and install to /usr/local/bin/
RUN cd /tmp && \
wget https://downloads.sourceforge.net/project/bio-bwa/bwa-0.7.12.tar.bz2 && \
tar -xjvf bwa-0.7.12.tar.bz2 && \
rm -f bwa-0.7.12.tar.bz2 && \
cd bwa-0.7.12 && \
make && \
cp bwa /usr/local/bin/ && \
rm -rf /tmp/bwa-0.7.12
### bedtools 2.26
# build and install to /usr/local/bin/
RUN cd /tmp && \
wget https://github.com/arq5x/bedtools2/releases/download/v2.26.0/bedtools-2.26.0.tar.gz && \
tar -zxvf bedtools-2.26.0.tar.gz && \
rm -f bedtools-2.26.0.tar.gz && \
cd bedtools2 && \
make && make install && \
rm -rf /tmp/bedtools2
### R
# install needed packages
RUN R --vanilla -e 'install.packages("data.table", dependencies=TRUE, repos="http://cran.us.r-project.org")'
RUN R --vanilla -e 'install.packages("doBy", dependencies=TRUE, repos="http://cran.us.r-project.org")'
RUN R --vanilla -e 'install.packages("dplyr", dependencies=TRUE, repos="http://cran.us.r-project.org")'
RUN R --vanilla -e 'install.packages("ggplot2", dependencies=TRUE, repos="http://cran.us.r-project.org")'
RUN R --vanilla -e 'install.packages("modes", dependencies=TRUE, repos="http://cran.us.r-project.org")'
### python 2.7
# install pip
# install biopython and its prereqs
RUN cd /tmp && \
wget https://bootstrap.pypa.io/get-pip.py && \
/usr/bin/python2.7 get-pip.py && \
pip install biopython && \
pip install numpy
### package sppIDer script files (*.R, *.py)
RUN mkdir -p /tmp/sppIDer/working/
ADD scripts/*.py scripts/*.R /tmp/sppIDer/
### execute sppIDer by default
WORKDIR /tmp/sppIDer/
ENTRYPOINT ["/usr/bin/python2.7"]
CMD ["docker_helper.py"]