annotate Dockerfile @ 0:7e0392d4531c

Initial Commit.
author m.vandenbeek@gmail.com
date Tue, 02 Dec 2014 15:14:12 +0100
parents
children 5b930e77b1f3
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
7e0392d4531c Initial Commit.
m.vandenbeek@gmail.com
parents:
diff changeset
1 # Toolfactory image
7e0392d4531c Initial Commit.
m.vandenbeek@gmail.com
parents:
diff changeset
2 #
7e0392d4531c Initial Commit.
m.vandenbeek@gmail.com
parents:
diff changeset
3 # VERSION 0.1
7e0392d4531c Initial Commit.
m.vandenbeek@gmail.com
parents:
diff changeset
4
7e0392d4531c Initial Commit.
m.vandenbeek@gmail.com
parents:
diff changeset
5 FROM debian:jessie
7e0392d4531c Initial Commit.
m.vandenbeek@gmail.com
parents:
diff changeset
6
7e0392d4531c Initial Commit.
m.vandenbeek@gmail.com
parents:
diff changeset
7 MAINTAINER Marius van den Beek, m.vandenbeek@gmail.com
7e0392d4531c Initial Commit.
m.vandenbeek@gmail.com
parents:
diff changeset
8
7e0392d4531c Initial Commit.
m.vandenbeek@gmail.com
parents:
diff changeset
9 # make sure the package repository is up to date
7e0392d4531c Initial Commit.
m.vandenbeek@gmail.com
parents:
diff changeset
10 RUN DEBIAN_FRONTEND=noninteractive apt-get -qq update
7e0392d4531c Initial Commit.
m.vandenbeek@gmail.com
parents:
diff changeset
11
7e0392d4531c Initial Commit.
m.vandenbeek@gmail.com
parents:
diff changeset
12 # Install all requirements that are recommend by the Galaxy project
7e0392d4531c Initial Commit.
m.vandenbeek@gmail.com
parents:
diff changeset
13 RUN DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y autoconf
7e0392d4531c Initial Commit.
m.vandenbeek@gmail.com
parents:
diff changeset
14 RUN DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y automake
7e0392d4531c Initial Commit.
m.vandenbeek@gmail.com
parents:
diff changeset
15 RUN DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y build-essential
7e0392d4531c Initial Commit.
m.vandenbeek@gmail.com
parents:
diff changeset
16 RUN DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y gfortran
7e0392d4531c Initial Commit.
m.vandenbeek@gmail.com
parents:
diff changeset
17 RUN DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y cmake
7e0392d4531c Initial Commit.
m.vandenbeek@gmail.com
parents:
diff changeset
18 RUN DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y git-core
7e0392d4531c Initial Commit.
m.vandenbeek@gmail.com
parents:
diff changeset
19 RUN DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y libatlas-base-dev
7e0392d4531c Initial Commit.
m.vandenbeek@gmail.com
parents:
diff changeset
20 RUN DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y libblas-dev
7e0392d4531c Initial Commit.
m.vandenbeek@gmail.com
parents:
diff changeset
21 RUN DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y liblapack-dev
7e0392d4531c Initial Commit.
m.vandenbeek@gmail.com
parents:
diff changeset
22 RUN DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y mercurial
7e0392d4531c Initial Commit.
m.vandenbeek@gmail.com
parents:
diff changeset
23 RUN DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y subversion
7e0392d4531c Initial Commit.
m.vandenbeek@gmail.com
parents:
diff changeset
24 RUN DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y python-dev
7e0392d4531c Initial Commit.
m.vandenbeek@gmail.com
parents:
diff changeset
25 RUN DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y pkg-config
7e0392d4531c Initial Commit.
m.vandenbeek@gmail.com
parents:
diff changeset
26 RUN DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y openjdk-7-jre
7e0392d4531c Initial Commit.
m.vandenbeek@gmail.com
parents:
diff changeset
27 RUN DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y python-setuptools
7e0392d4531c Initial Commit.
m.vandenbeek@gmail.com
parents:
diff changeset
28 RUN DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y adduser
7e0392d4531c Initial Commit.
m.vandenbeek@gmail.com
parents:
diff changeset
29 RUN DEBIAN_FRONTEND=noninteractive apt-get install -y python-virtualenv
7e0392d4531c Initial Commit.
m.vandenbeek@gmail.com
parents:
diff changeset
30 RUN DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y zlib1g-dev
7e0392d4531c Initial Commit.
m.vandenbeek@gmail.com
parents:
diff changeset
31 RUN DEBIAN_FRONTEND=noninteractive apt-get install -y libfreetype6-dev
7e0392d4531c Initial Commit.
m.vandenbeek@gmail.com
parents:
diff changeset
32 RUN DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y ghostscript
7e0392d4531c Initial Commit.
m.vandenbeek@gmail.com
parents:
diff changeset
33 RUN DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y r-base-core
7e0392d4531c Initial Commit.
m.vandenbeek@gmail.com
parents:
diff changeset
34 RUN DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y imagemagick
7e0392d4531c Initial Commit.
m.vandenbeek@gmail.com
parents:
diff changeset
35 RUN DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y graphicsmagick-imagemagick-compat
7e0392d4531c Initial Commit.
m.vandenbeek@gmail.com
parents:
diff changeset
36 RUN DEBIAN_FRONTEND=noninteractive apt-get install -y exonerate
7e0392d4531c Initial Commit.
m.vandenbeek@gmail.com
parents:
diff changeset
37 RUN DEBIAN_FRONTEND=noninteractive apt-get install -y bedtools
7e0392d4531c Initial Commit.
m.vandenbeek@gmail.com
parents:
diff changeset
38 RUN DEBIAN_FRONTEND=noninteractive apt-get install -y wget
7e0392d4531c Initial Commit.
m.vandenbeek@gmail.com
parents:
diff changeset
39 RUN DEBIAN_FRONTEND=noninteractive apt-get install -y curl
7e0392d4531c Initial Commit.
m.vandenbeek@gmail.com
parents:
diff changeset
40 RUN DEBIAN_FRONTEND=noninteractive apt-get install -y libcurl4-openssl-dev
7e0392d4531c Initial Commit.
m.vandenbeek@gmail.com
parents:
diff changeset
41 RUN DEBIAN_FRONTEND=noninteractive apt-get install -y libssl-dev
7e0392d4531c Initial Commit.
m.vandenbeek@gmail.com
parents:
diff changeset
42 RUN DEBIAN_FRONTEND=noninteractive apt-get install -y libreadline-dev
7e0392d4531c Initial Commit.
m.vandenbeek@gmail.com
parents:
diff changeset
43 RUN DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y libxml2-dev
7e0392d4531c Initial Commit.
m.vandenbeek@gmail.com
parents:
diff changeset
44 RUN DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y samtools
7e0392d4531c Initial Commit.
m.vandenbeek@gmail.com
parents:
diff changeset
45
7e0392d4531c Initial Commit.
m.vandenbeek@gmail.com
parents:
diff changeset
46 RUN DEBIAN_FRONTEND=noninteractive easy_install numpy
7e0392d4531c Initial Commit.
m.vandenbeek@gmail.com
parents:
diff changeset
47 RUN DEBIAN_FRONTEND=noninteractive easy_install pysam
7e0392d4531c Initial Commit.
m.vandenbeek@gmail.com
parents:
diff changeset
48 RUN DEBIAN_FRONTEND=noninteractive easy_install tornado
7e0392d4531c Initial Commit.
m.vandenbeek@gmail.com
parents:
diff changeset
49 RUN DEBIAN_FRONTEND=noninteractive easy_install matplotlib
7e0392d4531c Initial Commit.
m.vandenbeek@gmail.com
parents:
diff changeset
50 RUN DEBIAN_FRONTEND=noninteractive easy_install pycurl
7e0392d4531c Initial Commit.
m.vandenbeek@gmail.com
parents:
diff changeset
51 RUN DEBIAN_FRONTEND=noninteractive easy_install pip
7e0392d4531c Initial Commit.
m.vandenbeek@gmail.com
parents:
diff changeset
52 RUN DEBIAN_FRONTEND=noninteractive pip install metaseq
7e0392d4531c Initial Commit.
m.vandenbeek@gmail.com
parents:
diff changeset
53 RUN DEBIAN_FRONTEND=noninteractive easy_install pandas
7e0392d4531c Initial Commit.
m.vandenbeek@gmail.com
parents:
diff changeset
54 RUN DEBIAN_FRONTEND=noninteractive pip install ipython
7e0392d4531c Initial Commit.
m.vandenbeek@gmail.com
parents:
diff changeset
55 RUN DEBIAN_FRONTEND=noninteractive apt-get install -y zlib1g-dev
7e0392d4531c Initial Commit.
m.vandenbeek@gmail.com
parents:
diff changeset
56 RUN DEBIAN_FRONTEND=noninteractive apt-get install -y liblzma-dev
7e0392d4531c Initial Commit.
m.vandenbeek@gmail.com
parents:
diff changeset
57 RUN DEBIAN_FRONTEND=noninteractive apt-get install -y libpcre3-dev
7e0392d4531c Initial Commit.
m.vandenbeek@gmail.com
parents:
diff changeset
58 RUN DEBIAN_FRONTEND=noninteractive apt-get install -y libbz2-dev
7e0392d4531c Initial Commit.
m.vandenbeek@gmail.com
parents:
diff changeset
59 RUN DEBIAN_FRONTEND=noninteractive pip install rpy2
7e0392d4531c Initial Commit.
m.vandenbeek@gmail.com
parents:
diff changeset
60
7e0392d4531c Initial Commit.
m.vandenbeek@gmail.com
parents:
diff changeset
61 RUN Rscript -e 'install.packages("latticeExtra", dependencies=TRUE, repos="http://cran.us.r-project.org")'
7e0392d4531c Initial Commit.
m.vandenbeek@gmail.com
parents:
diff changeset
62 RUN Rscript -e 'source("http://bioconductor.org/biocLite.R"); biocLite("DESeq2")'
7e0392d4531c Initial Commit.
m.vandenbeek@gmail.com
parents:
diff changeset
63 RUN Rscript -e 'source("http://bioconductor.org/biocLite.R"); biocLite("DESeq")'
7e0392d4531c Initial Commit.
m.vandenbeek@gmail.com
parents:
diff changeset
64 RUN Rscript -e 'source("http://bioconductor.org/biocLite.R"); biocLite("edgeR")'
7e0392d4531c Initial Commit.
m.vandenbeek@gmail.com
parents:
diff changeset
65 RUN Rscript -e 'install.packages("ggplot2", dependencies=TRUE, repos="http://cran.us.r-project.org")'
7e0392d4531c Initial Commit.
m.vandenbeek@gmail.com
parents:
diff changeset
66 RUN Rscript -e 'source("http://bioconductor.org/biocLite.R"); biocLite("EDASeq")'
7e0392d4531c Initial Commit.
m.vandenbeek@gmail.com
parents:
diff changeset
67 RUN Rscript -e 'install.packages("reshape", dependencies=TRUE, repos="http://cran.us.r-project.org")'
7e0392d4531c Initial Commit.
m.vandenbeek@gmail.com
parents:
diff changeset
68 RUN Rscript -e 'install.packages("gridExtra", dependencies=TRUE, repos="http://cran.us.r-project.org")'
7e0392d4531c Initial Commit.
m.vandenbeek@gmail.com
parents:
diff changeset
69
7e0392d4531c Initial Commit.
m.vandenbeek@gmail.com
parents:
diff changeset
70
7e0392d4531c Initial Commit.
m.vandenbeek@gmail.com
parents:
diff changeset
71 RUN adduser galaxy -u 1002
7e0392d4531c Initial Commit.
m.vandenbeek@gmail.com
parents:
diff changeset
72
7e0392d4531c Initial Commit.
m.vandenbeek@gmail.com
parents:
diff changeset
73 #VOLUME ["/home/galaxy/"]
7e0392d4531c Initial Commit.
m.vandenbeek@gmail.com
parents:
diff changeset
74 #RUN chown -R galaxy /home/galaxy/ ##Doesn't work on volumes
7e0392d4531c Initial Commit.
m.vandenbeek@gmail.com
parents:
diff changeset
75 RUN mkdir /home/galaxy/job_working_directory
7e0392d4531c Initial Commit.
m.vandenbeek@gmail.com
parents:
diff changeset
76 WORKDIR /home/galaxy/job_working_directory
7e0392d4531c Initial Commit.
m.vandenbeek@gmail.com
parents:
diff changeset
77 USER galaxy
7e0392d4531c Initial Commit.
m.vandenbeek@gmail.com
parents:
diff changeset
78
7e0392d4531c Initial Commit.
m.vandenbeek@gmail.com
parents:
diff changeset
79
7e0392d4531c Initial Commit.
m.vandenbeek@gmail.com
parents:
diff changeset
80 #ENTRYPOINT chown -R galaxy /home/galaxy/ && su - galaxy
7e0392d4531c Initial Commit.
m.vandenbeek@gmail.com
parents:
diff changeset
81 CMD /bin/bash