-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathDockerfile
More file actions
executable file
·115 lines (100 loc) · 2.91 KB
/
Dockerfile
File metadata and controls
executable file
·115 lines (100 loc) · 2.91 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
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
105
106
107
108
109
110
111
112
113
114
115
########################################################
# Dockerfile for automated build of latest SONAR code #
# #
# Please see https://github.com/scharch/SONAR for more #
# information. #
########################################################
FROM ubuntu:noble
LABEL org.opencontainers.image.authors="Chaim Schramm chaim.schramm@nih.gov"
ENV DEBIAN_FRONTEND=noninteractive
WORKDIR /
#install Python
RUN apt-get update
RUN apt-get install -y \
build-essential \
zlib1g-dev \
libncurses5-dev \
libgdbm-dev \
libnss3-dev \
libssl-dev \
libreadline-dev \
libffi-dev \
wget \
python3 \
python3-pip
#install biopython and key packages like PyQT
RUN apt-get install -y \
python3-biopython python3-docopt python3-fuzzywuzzy \
python3-pyqt5 python3-lxml python3-six \
python3-openpyxl python3-networkx python3-pandas \
python3-pyfastx python3-ete3 python3-airr
#install libraries for bioperl
RUN apt-get install -y \
gcc-multilib \
perl \
cpanminus \
liblwp-protocol-https-perl \
libnet-https-any-perl \
libdb-dev \
graphviz \
make \
libexpat1-dev \
libatlas-base-dev \
gfortran
#install perl modules that are prerequisites
RUN cpanm \
CPAN::Meta \
YAML \
Digest::SHA \
Module::Build \
Test::Most \
Test::Weaken \
Test::Memory::Cycle \
Clone \
HTML::TableExtract \
Algorithm::Munkres \
Algorithm::Combinatorics \
Statistics::Basic \
List::Util \
PDL::LinearAlgebra::Trans \
Array::Compare \
Convert::Binary::C \
Error \
Graph@0.9711 \
GraphViz \
Inline::C \
PostScript::TextBlock \
Set::Scalar \
Sort::Naturally \
Math::Random \
Spreadsheet::ParseExcel \
IO::String \
JSON \
Data::Stag \
CGI \
Bio::Phylo \
Switch
#now actually install BioPerl
RUN cpanm -v \
https://github.com/bioperl/bioperl-live/archive/release-1-7-2.tar.gz
#install R
RUN echo "deb http://cloud.r-project.org/bin/linux/ubuntu noble-cran40/" >> /etc/apt/sources.list
RUN gpg --keyserver keyserver.ubuntu.com --recv-key E298A3A825C0D65DFD57CBB651716619E084DAB9
RUN gpg -a --export E298A3A825C0D65DFD57CBB651716619E084DAB9| apt-key add -
RUN apt-get update && apt-get install -y r-base r-base-dev
#install R packages
RUN R --vanilla -e 'install.packages(c("docopt","MASS","ggplot2","ptinpoly"), repos="http://cran.r-project.org/")'
#install Xvfb for 4.4
RUN apt-get install -y xvfb
#get fastq-dump for vignette
RUN apt-get install -y curl
RUN curl -O https://ftp-trace.ncbi.nlm.nih.gov/sra/sdk/2.9.6-1/sratoolkit.2.9.6-1-ubuntu64.tar.gz
RUN tar -xzf sratoolkit.2.9.6-1-ubuntu64.tar.gz
RUN ln -s /sratoolkit.2.9.6-1-ubuntu64/bin/fastq-dump /usr/bin/fastq-dump
#pull latest SONAR source code and set it up
RUN apt-get install -y git libidn12
RUN git clone https://github.com/scharch/SONAR.git
WORKDIR SONAR
RUN echo -e "\n\n\n\n\n" | ./setup.py
RUN cp sonar /usr/bin
WORKDIR /