-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2.13.0 dockerhub image fails #549
Comments
The same appears to occur with a locally built image (method as per #548). I made the following (rapid) changes to the dockerfile and the samtools is now accepted: diff --git a/Dockerfile b/Dockerfile
index debef817..6d614570 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -25,6 +25,9 @@ RUN mkdir /opt/gridss/
ARG GRIDSS_VERSION
COPY src/main/c /opt/gridss/src/main/c
COPY src/test/resources /opt/gridss/src/test/resources
+RUN cd /opt/gridss/src/main/c/gridsstools && make clean || true
+RUN cd /opt/gridss/src/main/c/gridsstools/htslib && make clean || true
+COPY src/main/c/gridsstools/htslib /opt/gridss/src/main/c/gridsstools/htslib
RUN cd /opt/gridss/src/main/c/gridsstools/htslib && \
autoreconf -i && ./configure && make -j 8 && \
cd .. && \
@@ -38,7 +41,7 @@ WORKDIR /opt/gridss/
COPY pom.xml /opt/gridss/
COPY repo /opt/gridss/repo
#RUN mvn -Dmaven.artifact.threads=8 dependency:go-offline
-# run all stages so all dependencies are
+# run all stages so all dependencies are
RUN mvn -Dmaven.artifact.threads=8 verify && rm -rf target
# Build GRIDSS jar
ARG GRIDSS_VERSION
@@ -53,7 +56,6 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
apt-utils \
gawk \
openjdk-11-jre-headless \
- samtools \
bwa \
time \
libssl1.1 \
@@ -64,10 +66,11 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
liblzma5 \
libdeflate0 \
libomp5 \
+ curl make gcc zlib1g-dev libbz2-dev liblzma-dev libcurl4-gnutls-dev libncurses5-dev \
&& rm -rf /var/lib/apt/lists/*
# Hack a fake Rscript so that insert size metrics dont break when creating the histogram
RUN echo "!/bin/sh" > /usr/local/bin/Rscript && chmod +x /usr/local/bin/Rscript
-ENV PATH="/opt/gridss/:$PATH"
+ENV PATH="/opt/gridss/:/opt/samtools/bin:$PATH"
# Install GRIDSS
ARG GRIDSS_VERSION
ENV GRIDSS_VERSION=${GRIDSS_VERSION}
@@ -82,6 +85,12 @@ COPY --from=gridss_builder_c /opt/gridss/gridsstools /opt/gridss/
COPY --from=gridss_builder_java /opt/gridss/gridss-${GRIDSS_VERSION}-gridss-jar-with-dependencies.jar /opt/gridss/
COPY scripts/gridss /opt/gridss/
RUN chmod +x /opt/gridss/*
+RUN cd /tmp && \
+ curl -sSL https://github.com/samtools/samtools/releases/download/1.13/samtools-1.13.tar.bz2 | tar -xj && \
+ cd samtools* && \
+ ./configure --prefix=/opt/samtools && \
+ make -j4 all && make install && \
+ cd .. && rm -rf samtools*
WORKDIR /data/
@@ -101,7 +110,6 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
apt-utils \
gawk \
openjdk-11-jre-headless \
- samtools \
bwa \
hmmer \
bedtools \
@@ -155,7 +163,7 @@ RUN mkdir /opt/kraken2 && \
rm -r kraken2-$KRAKEN_VERSION v*.tar.gz
RUN sh -c "$(wget -q ftp://ftp.ncbi.nlm.nih.gov/entrez/entrezdirect/install-edirect.sh -O -)" && \
mv $HOME/edirect /opt/edirect
-ENV PATH="/opt/gridss/:/opt/RepeatMasker:/opt/rmblast/:/opt/trf:/opt/kraken2:/opt/blast:/opt/edirect:$PATH"
+ENV PATH="/opt/gridss/:/opt/samtools/bin:/opt/RepeatMasker:/opt/rmblast/:/opt/trf:/opt/kraken2:/opt/blast:/opt/edirect:$PATH"
# configure repeatmasker
RUN cd /opt/RepeatMasker && \
perl configure \
@@ -172,8 +180,9 @@ LABEL software.version="$GRIDSS_VERSION"
LABEL about.summary="Genomic Rearrangement IDentification Software Suite"
LABEL about.home="https://github.com/PapenfussLab/gridss"
LABEL about.tags="Genomics"
-RUN mkdir /opt/gridss/ /data
+RUN mkdir /opt/gridss/ /data /opt/samtools/
COPY --from=gridss_builder_c /opt/gridss/gridsstools /opt/gridss/
+COPY --from=gridss_minimal /opt/samtools /opt/samtools
COPY --from=gridss_builder_java /opt/gridss/gridss-${GRIDSS_VERSION}-gridss-jar-with-dependencies.jar /opt/gridss/
COPY scripts/gridss \
scripts/gridss_annotate_vcf_kraken2 \ |
The above edits allow completion:
|
Hi, I'm still getting samtools v1.10 errors with this newest docker (see my comment here). |
@d-cameron @keiranmraine Are there plans to release an updated docker in which the samtools version error is fixed? Newb here, I edited the dockerfile but don't know how to rebuild a custom container (I'm using singularity to implement docker gridss on HPC without sudo for extra layer of complexity). Any help appreciated! |
@afurches we use singularity in the same way (doesn't really seem to cause us any real issues). I personally have no control of releases, just a consumer like you. |
@keiranmraine to implement your fix above, would I need to: If so, would you mind sharing tips for how to accomplish (1) and (2)? (Sorry if that's asking too much -- I'm a field/wet lab biologist by training who is a bit lost in the woods here.) |
I can do that. There's a few new features I'm implementing but I can split it up and push out a patch update (2.13.1) with the bug fixes before christmas and move the new features into a 2.14.0 to be released in the first week of Feb. |
@d-cameron thank you! After rerunning the reference and preprocessing steps, the invalid file pointer error messages have disappeared and the assembly step is running without issue. |
Hi,
I'm getting the following on downloading the latest release on dockerhub:
The text was updated successfully, but these errors were encountered: