tell me the best way to include shell script suite in docker files?

Earlier in your script, you run:

cd /tmp/samtools-${SAMTOOLS_VERSION}/ 

So when you run this:

wget -q https://sourceforge.net/projects/bbmap/files/latest/download

The resulting file is:

/tmp/samtools-${SAMTOOLS_VERSION}/download

That means that when you run your tar command:

tar -xjvf /tmp/download

…it doesn’t find the file because it isn’t in /tmp.

Either change the path on the tar command, or add a cd /tmp to your script before downloading the file. Or pass something like -O /tmp/download.tar to your wget invocation.

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top