File: samtools-Dockerfile

package info (click to toggle)
samtools 1.22.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 22,092 kB
  • sloc: ansic: 36,084; perl: 7,882; sh: 475; makefile: 302; java: 158
file content (84 lines) | stat: -rw-r--r-- 2,693 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
#################################################################
# Dockerfile
#
# Software:         samtools
# Software Version: 1.2-242-4d56437
# Description:      samtools image for SciDAP
# Website:          https://samtools.github.io, http://scidap.com/
# Provides:         samtools/htslib/tabix/bgzip
# Base Image:       scidap/scidap:v0.0.1
# Build Cmd:        docker build --rm -t scidap/samtools:v1.2-242-4d56437 .
# Pull Cmd:         docker pull scidap/samtools:v1.2-242-4d56437
# Run Cmd:          docker run --rm scidap/samtools:v1.2-242-4d56437 samtools
#################################################################

### Base Image
FROM scidap/scidap:v0.0.1
MAINTAINER Andrey V Kartashov "porter@porter.st"
ENV DEBIAN_FRONTEND noninteractive

################## BEGIN INSTALLATION ######################

WORKDIR /tmp

### Install required packages (samtools)

RUN apt-get clean all &&\
    apt-get update &&\
    apt-get install -y  \
        libncurses5-dev && \
    apt-get clean && \
    apt-get purge && \
    rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*

### Installing samtools/htslib/tabix/bgzip

ENV VERSIONH 1.2.1-254-6462e34
ENV NAMEH htslib
ENV URLH "https://github.com/samtools/htslib/archive/${VERSIONH}.tar.gz"
ENV SHA1H "6462e349d16e83db8647272e4b98d2a92992071f"

ENV VERSION 1.2-242-4d56437
ENV NAME "samtools"
ENV URL "https://github.com/samtools/samtools/archive/${VERSION}.tar.gz"
ENV SHA1 "4d56437320ad370eb0b48c204ccec7c73f653393"

RUN git clone https://github.com/samtools/htslib.git && \
cd ${NAMEH} && \
git reset --hard ${SHA1H} && \
make -j 4 && \
cd .. && \
cp ./${NAMEH}/tabix /usr/local/bin/ && \
cp ./${NAMEH}/bgzip /usr/local/bin/ && \
cp ./${NAMEH}/htsfile /usr/local/bin/ && \
#RUN wget -q -O - $URLH | tar -zxv && \
#cd ${NAMEH}-${VERSIONH} && \
#make -j 4 && \
#cd .. && \
#cp ./${NAMEH}-${VERSIONH}/tabix /usr/local/bin/ && \
#cp ./${NAMEH}-${VERSIONH}/bgzip /usr/local/bin/ && \
#cp ./${NAMEH}-${VERSIONH}/htsfile /usr/local/bin/ && \
strip /usr/local/bin/tabix; true && \
strip /usr/local/bin/bgzip; true && \
strip /usr/local/bin/htsfile; true && \
#ln -s ./${NAMEH}-${VERSIONH}/ ./${NAMEH} && \

git clone https://github.com/samtools/samtools.git && \
cd ${NAME} && \
git reset --hard ${SHA1} && \
make -j 4 && \
cp ./${NAME} /usr/local/bin/ && \
cd .. && \
strip /usr/local/bin/${NAME}; true && \
rm -rf ./${NAMEH}/ && \
rm -rf ./${NAME}/ && \
rm -rf ./${NAMEH}

#wget -q -O - $URL | tar -zxv && \
#cd ${NAME}-${VERSION} && \
#make -j 4 && \
#cd .. && \
#cp ./${NAME}-${VERSION}/${NAME} /usr/local/bin/ && \
#strip /usr/local/bin/${NAME}; true && \
#rm -rf ./${NAMEH}-${VERSIONH}/ && \
#rm -rf ./${NAME}-${VERSION}/