Skip to content

Instantly share code, notes, and snippets.

@Finesim97
Last active January 15, 2020 23:30
Show Gist options
  • Save Finesim97/6b7635d526bba47f8cbb9f609440d688 to your computer and use it in GitHub Desktop.
Save Finesim97/6b7635d526bba47f8cbb9f609440d688 to your computer and use it in GitHub Desktop.
Dockerfile for an older metaerg version without certain bugs.

This is will construct a Docker image based on an older version of metaerg without a certain bug and fix the BLAST download and XML-DOM-XPath installation.

mkdir metaergold
cd metaergold
wget https://raw.githubusercontent.com/xiaoli-dong/metaerg/532bd189a446f8da85373335d48105ace49f3f7e/Dockerfile
wget -qO- https://gist.githubusercontent.com/Finesim97/6b7635d526bba47f8cbb9f609440d688/raw/d219a7cb88407c9db5b5bcf60d284c85fc382a00/Dockerfile.diff | patch Dockerfile
sudo docker build -t metaerg-old .

Now you have to replace xiaolidong/docker-metaerg with metaerg-old in your docker call and you can remove the `metaergold directory.

39c39,40
< RUN cpanm Bio::Perl \
---
> RUN cpanm -f XML::DOM::XPath && \
> cpanm Bio::Perl \
68c69
< RUN wget ftp://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/LATEST/ncbi-blast-2.9.0+-x64-linux.tar.gz && \
---
> RUN wget ftp://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/2.9.0/ncbi-blast-2.9.0+-x64-linux.tar.gz && \
100c101
< RUN git clone https://github.com/xiaoli-dong/metaerg.git
---
> RUN git clone https://github.com/xiaoli-dong/metaerg.git && git -C metaerg checkout 68907b737b12c7456275b028ea31314aebbe50e
113c114
< WORKDIR /NGStools/
\ No newline at end of file
---
> WORKDIR /NGStools/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment