-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
40 lines (29 loc) · 1.25 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
FROM seppinho/cdh5-hadoop-mrv1
MAINTAINER Cloudgene-Team: Sebastian Schoenherr <[email protected]> and Lukas Forer <[email protected]>
#Install Prerequisites
RUN echo "deb http://lib.stat.cmu.edu/R/CRAN/bin/linux/ubuntu trusty/" | sudo tee -a /etc/apt/sources.list
RUN sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9
# install requirements
RUN sudo apt-get update -y
RUN sudo apt-get install r-base -y --force-yes
# Install R Packages
COPY conf/r-packages.R /usr/bin/r-packages.R
RUN sudo R CMD BATCH /usr/bin/r-packages.R
# Get Cloudgene [currently as a tar.gz, later from Github]
ENV CLOUDGENE_VERSION cloudgene-latest.tar.gz
RUN wget http://cloudgene.uibk.ac.at/downloads/$CLOUDGENE_VERSION -O /opt/cloudgene.tar.gz
# Create structure and set permissions
RUN mkdir /opt/cloudgene
RUN mkdir /opt/cloudgene/applications
RUN mkdir /opt/cloudgene/apps
RUN mkdir /opt/cloudgene/tmp
RUN chmod -R 777 /opt/cloudgene/tmp
RUN tar xvfz /opt/cloudgene.tar.gz -C /opt/cloudgene
RUN sudo rm /opt/cloudgene.tar.gz
RUN sudo chown cloudgene -R /opt/cloudgene
# Make the daemon executable
RUN sudo chmod +x /opt/cloudgene/cloudgene
# copy scripts
ADD conf /usr/bin/
RUN sudo chmod +x /usr/bin/*
#ENTRYPOINT ["/usr/bin/start-cloudgene.sh"]