updating dockerfiles
[arvados-tutorial.git] / docker / bam2fastq / Dockerfile
index 86f399a373b9824d16fd1269fc7270b6ac61f9c2..d40b3fa37fcde4f11d02a3793287a7fb9be95bc5 100644 (file)
@@ -1,10 +1,63 @@
-FROM arvados/jobs
-MAINTAINER Bryan Cosca <bcosca@curii.com>
-
+FROM arvados/jobs:latest
 USER root
 
-RUN apt-get update -qy
-RUN apt-get install -qy build-essential wget cmake zlib1g-dev python-pip unzip libbz2-dev liblzma-dev libcurl4-openssl-dev libncurses-dev git
+# Install python tools
+RUN apt-get update && apt-get install -y --no-install-recommends apt-utils
+RUN apt-get install -y apt-utils && apt-get install -y unzip
+RUN apt-get install autoconf -y
+RUN apt-get install wget -y
+RUN apt-get install python-pip -y
+RUN apt-get install python-numpy -y && apt-get install python-scipy -y
+RUN apt-get install python-matplotlib -y && apt-get install python-pandas -y
+RUN apt-get upgrade -y
+RUN apt-get clean
+
+# install lib files to build SAMtools
+RUN apt-get install libncurses5-dev -y && apt-get install libbz2-dev -y && apt-get install liblzma-dev -y && apt-get install git -y && apt-get install autoconf -y
+
+# installing zlib1g
+RUN apt-get install zlib1g-dev -y
+RUN apt-get install zlib1g -y
+
+# Installing xz-utils
+
+RUN apt-get install xz-utils -y
+
+# Installing liblzma-dev
+RUN apt-get install liblzma-dev -y
+
+# Installing pthreads
+RUN apt-get install libpthread-stubs0-dev -y
+
+# Installing libcurl
+RUN apt-get install libcurl3-openssl-dev -y
+
+# Installing libcrypto
+RUN apt-get install libssl-dev -y
+
+# Installing bc
+RUN apt-get install bc -y
+
+# installing build essentials
+RUN apt-get install build-essential -y
+
+# Installing parallel
+RUN apt-get install parallel -y
+
+# Installing Cmake
+RUN apt-get install cmake -y
+
+# Installing SDSL
+RUN cd /tmp && git clone 'https://github.com/simongog/sdsl-lite.git' && cd sdsl-lite && ./install.sh /usr/local
+
+RUN apt-get remove libhts-dev
+
+# Installing htslib
+RUN cd /tmp && wget http://github.com/samtools/htslib/archive/1.10.2.zip && unzip 1.10.2 && cd htslib-1.10.2 && make && make install && cd /tmp && rm -rf htslib-1.10.2 && ldconfig
+
+# Installing samtools
+
+RUN wget http://github.com/samtools/samtools/releases/download/1.10/samtools-1.10.tar.bz2 && tar -xvf samtools-1.10.tar.bz2 && cd samtools-1.10 && autoheader && autoconf && ./configure && make && make install 
 
 RUN git clone --recursive https://github.com/jts/bam2fastq
 WORKDIR /bam2fastq