forked from tomazc/iCount
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
85 lines (65 loc) · 1.83 KB
/
Dockerfile
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
85
FROM ubuntu:14.04.3
MAINTAINER Tomaz Curk <[email protected]>
# thanks to https://github.com/bschiffthaler/ngs/blob/master/base/Dockerfile
# and https://github.com/AveraSD/ngs-docker-star/blob/master/Dockerfile
RUN useradd -m -d /home/icuser icuser
# update system
RUN apt-get update && apt-get upgrade -y && \
apt-get install -y \
build-essential \
gfortran \
libatlas-base-dev \
wget \
g++ \
make \
python3 \
python3-pip \
python3-setuptools \
python-virtualenv \
python-pip \
git
RUN apt-get autoclean -y && \
apt-get autoremove -y
#################
### samtools
RUN apt-get install -y \
zlib1g-dev \
samtools
#################
### bedtools, need at least version 2.26, where merge command reports strand
# RUN apt-get install -y bedtools
WORKDIR /tmp/bedtools
RUN wget https://github.com/arq5x/bedtools2/releases/download/v2.26.0/bedtools-2.26.0.tar.gz
RUN tar -zxvf bedtools-2.26.0.tar.gz
WORKDIR /tmp/bedtools/bedtools2
RUN make
RUN make install
#################
### RNA-star
WORKDIR /tmp/STAR
RUN wget https://github.com/alexdobin/STAR/archive/STAR_2.4.2a.tar.gz
RUN tar -xvzf STAR_2.4.2a.tar.gz
WORKDIR /tmp/STAR/STAR-STAR_2.4.2a/source
RUN make STAR
RUN mkdir -p /home/icuser/bin && cp STAR /home/icuser/bin
WORKDIR /tmp
RUN rm -rfv STAR
#################
#### iCount
RUN chown -R icuser.icuser /home/icuser
USER icuser
WORKDIR /home/icuser
RUN virtualenv -p python3 /home/icuser/.icountenv
USER root
ADD . /home/icuser/iCount_src
RUN chown -R icuser.icuser /home/icuser
USER icuser
WORKDIR /home/icuser/iCount_src
RUN ../.icountenv/bin/pip install -e .
RUN ../.icountenv/bin/pip install -e .[docs,tests]
USER root
RUN echo "source /home/icuser/.icountenv/bin/activate" >> /etc/bash.bashrc
USER icuser
RUN mkdir /home/icuser/storage
ENV PATH /home/icuser/bin:$PATH
CMD ["/bin/bash"]