This repository has been archived by the owner on Oct 31, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile.18.04
65 lines (54 loc) · 2.98 KB
/
Dockerfile.18.04
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
#
# This file is part of lamp-virus. It provides the installation rules and commands to
# build a Docker image
#
# Copyright (C) 2016-2018, Michaël Bekaert <michael.bekaert@stir.ac.uk>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
FROM ubuntu:18.04
MAINTAINER Michael Bekaert <michael.bekaert@stir.ac.uk>
LABEL description="LAMP-VIRUS Docker" version="1.1" Vendor="Institute of Aquaculture, University of Stirling"
ENV DOCKERVERSION 1.1
USER root
COPY virus.R /opt/virus.R
COPY class_sequences.pl /usr/local/bin/class_sequences.pl
COPY collect_genomevirus.pl /usr/local/bin/collect_genomevirus.pl
COPY map_lamp.pl /usr/local/bin/map_lamp.pl
RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y build-essential git wget unzip
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y r-base tk tk-dev gfortran
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y primer3 libblas-dev liblapack-dev bioperl libgd-dev libgd-perl
RUN perl -MCPAN -e 'my $c = "CPAN::HandleConfig"; $c->load(doit => 1, autoconfig => 1); $c->edit(prerequisites_policy => "follow"); $c->edit(build_requires_install_policy => "yes"); $c->commit'
RUN perl -MCPAN -e 'install Bio::Graphics'
RUN wget http://bioinfo.unl.edu/downloads/GramAlign3_00.zip -O GramAlign3_00.zip && \
unzip GramAlign3_00.zip && \
make -C GramAlign3_00/src -k clean && \
sed -i 's/CFLAGS = -O3 -funroll/CFLAGS = -O2 -funroll/' GramAlign3_00/src/Makefile && \
make -C GramAlign3_00/src && \
install GramAlign3_00/src/GramAlign /usr/local/bin/ && \
rm -rf GramAlign3_00 GramAlign3_00.zip __MACOSX
RUN Rscript -e "install.packages('adegenet', repos='http://cran.rstudio.com', dependencies = TRUE, Ncpus = 8);"
RUN Rscript -e "install.packages('ape', repos='http://cran.rstudio.com', dependencies = TRUE, Ncpus = 8);"
RUN cd /opt && git clone https://github.com/pseudogene/lava-dna.git && \
cd lava-dna && perl Makefile.PL && cd .. && \
make -C lava-dna && \
make -C lava-dna -k install
RUN mv /opt/lava-dna/t_data/loose_parameters.xml /opt/lava-dna/t_data/looser_parameters.xml && \
mv /opt/lava-dna/t_data/normal_parameters.xml /opt/lava-dna/t_data/loose_parameters.xml && \
mv /opt/lava-dna/t_data/strict_parameters.xml /opt/lava-dna/t_data/normal_parameters.xml
COPY strict_parameters.xml /opt/lava-dna/t_data/strict_parameters.xml
COPY stricter_parameters.xml /opt/lava-dna/t_data/stricter_parameters.xml
RUN mkdir /virus
WORKDIR /virus