-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
63 lines (51 loc) · 1.85 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
FROM ucsdets/datascience-notebook:2019.4-stable
MAINTAINER Melissa Gymrek <[email protected]>
USER root
# Install dependencies
RUN apt-get update && apt-get -qq install -y \
automake \
cmake \
datamash \
default-jdk \
git \
less \
libbz2-dev \
liblzma-dev \
libncurses5 libncurses5-dev \
vim \
zlib1g-dev \
software-properties-common
# uninstall R from conda and install manually
RUN conda remove r-base -y
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
RUN add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/'
RUN apt-get update
RUN apt-get install r-base-dev -y
# Make sources directory
RUN mkdir /sources
# Install extra python packages
RUN pip install pyvcf
# Install course-specific software
ADD install_cse185_deps_wks1-3.sh /sources/
RUN chmod +x /sources/install_cse185_deps_wks1-3.sh
RUN /sources/install_cse185_deps_wks1-3.sh
ADD install_cse185_deps_wk4.sh /sources/
RUN chmod +x /sources/install_cse185_deps_wk4.sh
RUN /sources/install_cse185_deps_wk4.sh
RUN rm /sources/*.tar.gz
RUN rm /sources/*.zip
RUN rm -rf /opt/julia
ADD install_cse185_deps_wk5.sh /sources
RUN chmod +x /sources/install_cse185_deps_wk5.sh
RUN /sources/install_cse185_deps_wk5.sh
#ADD install_cse185_deps_wk6.sh /sources
#RUN chmod +x /sources/install_cse185_deps_wk6.sh
#RUN /sources/install_cse185_deps_wk6.sh
# Set env variables
ENV PERL5LIB="${PERL5LIB}:/sources/sspace_basic/dotlib"
ENV PATH="${PATH}:/sources/homer/bin:/sources/meme-5.0.5/src/"
# DESeq2
RUN R -e "install.packages('readr', dependencies=TRUE, repos='http://cran.rstudio.com/')"
RUN R -e "install.packages('BiocManager', dependencies=TRUE, repos='http://cran.rstudio.com/')"
RUN R -e "BiocManager::install('DESeq2', version = '3.10')"
RUN R -e "BiocManager::install('tximport', version = '3.10')"