forked from genepi/cloudgene
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
58 lines (42 loc) · 1.88 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
FROM genepi/cdh5-hadoop-mrv1:latest
MAINTAINER Sebastian Schoenherr <[email protected]>, Lukas Forer <[email protected]>
# Install R
RUN echo "deb http://cran.rstudio.com/bin/linux/ubuntu trusty/" | sudo tee -a /etc/apt/sources.list
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9
RUN sudo apt-get remove maven -y --force-yes
RUN sudo add-apt-repository "deb http://ppa.launchpad.net/natecarlson/maven3/ubuntu precise main"
RUN apt-get update && apt-get install -y --force-yes \
r-base \
maven3 \
&& rm -rf /var/lib/apt/lists/*
ENV M2_HOME=/usr/share/maven3
ENV M2=$M2_HOME/bin
ENV PATH=$M2:$PATH
# Install R Packages
RUN R -e "install.packages('knitr', repos = 'http://cran.rstudio.com' )"
RUN R -e "install.packages('markdown', repos = 'http://cran.rstudio.com' )"
RUN R -e "install.packages('rmarkdown', repos = 'http://cran.rstudio.com' )"
RUN R -e "install.packages('ggplot2', repos = 'http://cran.rstudio.com' )"
RUN R -e "install.packages('data.table', repos = 'http://cran.rstudio.com' )"
# Install Cloudgene
RUN mkdir /opt/cloudgene
COPY target/cloudgene-installer.sh /opt/cloudgene/cloudgene-installer.sh
RUN chmod +x /opt/cloudgene/cloudgene-installer.sh
RUN cd /opt/cloudgene; ./cloudgene-installer.sh
RUN chmod +x /opt/cloudgene/cloudgene
ENV PATH=/opt/cloudgene:$PATH
# Add cloudgene.conf to set all dirs to /data
COPY docker/cloudgene.conf /opt/cloudgene/cloudgene.conf
# Add docker specific pages to cloudgene
COPY docker/pages /opt/cloudgene/sample/pages
COPY docker/startup /usr/bin/startup
RUN chmod +x /usr/bin/startup
# Cloudgene Docker Branding
ENV CLOUDGENE_SERVICE_NAME="Cloudgene Docker"
ENV CLOUDGENE_HELP_PAGE="https://github.com/lukfor/docker-cloudgene"
ENV START_CLOUDGENE="true"
ENV START_HADOOP="true"
# Add test workflow to hadoop example directory
# Startup script to start Hadoop and Cloudgene
EXPOSE 80
CMD ["/usr/bin/startup"]