-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #165 from pbelmann/feature/prokka_docker_image
Feature/prokka docker image
- Loading branch information
Showing
2 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
FROM ubuntu:18.04 | ||
|
||
# metadata | ||
LABEL website="https://github.com/tseemann/prokka" | ||
LABEL license="https://github.com/tseemann/prokka#licence" | ||
|
||
# install dependencies | ||
RUN apt-get update && \ | ||
apt-get -y --no-install-recommends install libdatetime-perl libxml-simple-perl libdigest-md5-perl git default-jre bioperl hmmer wget \ | ||
zlib1g-dev python liblzma-dev libbz2-dev xz-utils curl g++ make \ | ||
less bzip2 gzip libidn11-dev &&\ | ||
apt-get clean && apt-get autoclean && rm -rf /var/lib/apt/lists/* | ||
|
||
#get Bioperl | ||
#RUN cpan Bio::Perl | ||
|
||
# install bedtools 2.29.0 since >=2.27.0 is required for barrnap and the apt-get package is 2.25.0 | ||
# dependencies required for bedtools: zlib1g-dev python liblzma-dev libbz2-dev xz-utils curl g++ | ||
RUN wget https://github.com/arq5x/bedtools2/releases/download/v2.29.0/bedtools-2.29.0.tar.gz && \ | ||
tar -zxf bedtools-2.29.0.tar.gz && \ | ||
rm bedtools-2.29.0.tar.gz && \ | ||
cd bedtools2 && \ | ||
make | ||
|
||
# add bedtools to PATH for barrnap test | ||
ENV PATH="$PATH:/bedtools2/bin" | ||
|
||
# install barrnap | ||
RUN wget https://github.com/tseemann/barrnap/archive/0.9.tar.gz &&\ | ||
tar -zxf 0.9.tar.gz &&\ | ||
rm 0.9.tar.gz &&\ | ||
cd barrnap-0.9 &&\ | ||
make test | ||
|
||
#get prokka | ||
RUN git clone https://github.com/tseemann/prokka && \ | ||
cd prokka && \ | ||
git fetch origin pull/219/head:partialgenes && \ | ||
git checkout partialgenes | ||
|
||
# install tbl2asn manually since the one included with prokka is expired. | ||
RUN wget ftp://ftp.ncbi.nih.gov/toolbox/ncbi_tools/converters/by_program/tbl2asn/linux64.tbl2asn.gz -O linux64.tbl2asn.gz && \ | ||
gunzip linux64.tbl2asn.gz && \ | ||
mv linux64.tbl2asn /usr/bin/tbl2asn && \ | ||
chmod 755 /usr/bin/tbl2asn | ||
|
||
# put prokka in PATH & | ||
# set PATH to prioritize /usr/bin/tbl2asn before /prokka/binaries/tbl2asn | ||
ENV PATH="$PATH:/prokka/bin" | ||
|
||
#setupdb | ||
RUN prokka --setupdb | ||
|
||
WORKDIR /data | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1.12.0-0 |