|
| 1 | +################## MultiStage build ###################### |
| 2 | + |
| 3 | +################## Core ###################### |
| 4 | + |
| 5 | +FROM busybox AS buildcore |
| 6 | + |
| 7 | +MAINTAINER Amanda Cooksey <amandamcooksey@gmail.com> |
| 8 | + |
| 9 | +ARG IPR=5 |
| 10 | +ENV IPR $IPR |
| 11 | +ARG IPRSCAN=5.36-75.0 |
| 12 | +ENV IPRSCAN $IPRSCAN |
| 13 | + |
| 14 | +RUN mkdir -p /opt/interproscan/bin/blast/ncbi-blast-2.9.0+ |
| 15 | +RUN mkdir -p /opt/interproscan/bin/interproscan |
| 16 | + |
| 17 | + |
| 18 | +RUN wget -O /opt/interproscan-core-$IPRSCAN.tar.gz ftp://ftp.ebi.ac.uk/pub/software/unix/iprscan/$IPR/$IPRSCAN/alt/interproscan-core-$IPRSCAN.tar.gz |
| 19 | +RUN wget -O /opt/interproscan-core-$IPRSCAN.tar.gz.md5 ftp://ftp.ebi.ac.uk/pub/software/unix/iprscan/$IPR/$IPRSCAN/alt/interproscan-core-$IPRSCAN.tar.gz.md5 |
| 20 | + |
| 21 | + |
| 22 | +WORKDIR /opt |
| 23 | + |
| 24 | +RUN md5sum -c interproscan-core-$IPRSCAN.tar.gz.md5 |
| 25 | + |
| 26 | +RUN tar -pxvzf interproscan-core-$IPRSCAN.tar.gz \ |
| 27 | + -C /opt/interproscan --strip-components=1 \ |
| 28 | + && rm -f interproscan-core-$IPRSCAN.tar.gz interproscan-core-$IPRSCAN.tar.gz.md5 |
| 29 | + |
| 30 | + |
| 31 | +# Workaround bin/blast/ncbi-blast-2.9.0+/rpsblast: error while loading shared |
| 32 | +# libraries: libgnutls.so.28: cannot open shared object file: No such file or |
| 33 | +# directory |
| 34 | +RUN wget -O /opt/ncbi-blast-2.9.0+-x64-linux.tar.gz ftp://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/2.9.0/ncbi-blast-2.9.0+-x64-linux.tar.gz |
| 35 | +RUN tar xvf ncbi-blast-2.9.0+-x64-linux.tar.gz |
| 36 | + |
| 37 | + |
| 38 | +# copy the new version to the binary folder |
| 39 | +RUN cp /opt/ncbi-blast-2.9.0+/bin/rpsblast /opt/interproscan/bin/blast/ncbi-blast-2.9.0+/rpsblast |
| 40 | +#RUN cp /opt/interproscan/interproscan.sh /opt/interproscan/interproscan-5.jar /opt/interproscan/bin/interproscan |
| 41 | + |
| 42 | +################## BASE IMAGE ###################### |
| 43 | + |
| 44 | +FROM ubuntu:16.04 |
| 45 | + |
| 46 | +MAINTAINER Amanda Cooksey <amandamcooksey@gmail.com> |
| 47 | +LABEL base_image="ubuntu:16.04" \ |
| 48 | + software="interproscan" \ |
| 49 | + software.version="5.36-75.0" \ |
| 50 | + version="1" \ |
| 51 | + about.summary="Scan sequences against the InterPro protein signature databases." \ |
| 52 | + about.home="https://www.ebi.ac.uk/interpro/interproscan.html" \ |
| 53 | + about.license="Apache-2.0" \ |
| 54 | + about.license_file="https://github.com/ebi-pf-team/interproscan/blob/dev/LICENSE" \ |
| 55 | + about.documentation="https://github.com/ebi-pf-team/interproscan/wiki" \ |
| 56 | + about.tags="biology::nucleic, biology::protein, field::biology, field::biology:bioinformatics, interface::commandline, role::program,:biological-sequence" \ |
| 57 | + extra.identifier.biotools="interproscan_5" \ |
| 58 | + extra.binaries="interproscan.sh" |
| 59 | + |
| 60 | +COPY --from=buildcore /opt/interproscan /opt/interproscan |
| 61 | + |
| 62 | +RUN mkdir -p /opt/interproscan/data |
| 63 | +RUN mkdir -p /data |
| 64 | + |
| 65 | +RUN apt-get update && \ |
| 66 | + apt-get upgrade -y && \ |
| 67 | + apt-get install -y \ |
| 68 | + parallel \ |
| 69 | + openjdk-8-jre \ |
| 70 | + build-essential \ |
| 71 | + pkg-config \ |
| 72 | + python3 \ |
| 73 | + bzip2 \ |
| 74 | + libdw1 \ |
| 75 | + nano \ |
| 76 | + ca-certificates && \ |
| 77 | + apt-get clean && \ |
| 78 | + apt-get purge && \ |
| 79 | + rm -rf /var/lib/apt/lists/* /tmp/* |
| 80 | + |
| 81 | + |
| 82 | +WORKDIR /opt/interproscan |
| 83 | + |
| 84 | +ENV PATH=$PATH:/opt/interproscan/bin |
| 85 | + |
| 86 | +ADD splitfasta.pl /usr/bin |
| 87 | +ADD iprs_wrapper.sh /usr/bin |
| 88 | +ADD cyverse_parse_ips_xml.pl /usr/bin |
| 89 | + |
| 90 | + |
| 91 | +ENTRYPOINT ["/bin/bash", "iprs_wrapper.sh"] |
| 92 | +##################### INSTALLATION END ##################### |
0 commit comments