-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
56 lines (46 loc) · 1.8 KB
/
Dockerfile
File metadata and controls
56 lines (46 loc) · 1.8 KB
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
FROM ubuntu
RUN apt-get -y update && \
apt-get -y dist-upgrade && \
apt-get -y install \
software-properties-common \
git \
libcairo2-dev \
libxt-dev \
libssl-dev \
libssh2-1-dev \
libcurl4-openssl-dev \
apache2 \
locales && \
apt-add-repository -y ppa:opencpu/opencpu-1.6 && \
apt-get update && \
apt-get install -y \
opencpu-lib
RUN touch /etc/apache2/sites-available/opencpu2.conf
RUN printf "ProxyPass /ocpu/ http://localhost:8001/ocpu/\nProxyPassReverse /ocpu/ http://localhost:8001/ocpu\n" >> /etc/apache2/sites-available/opencpu2.conf
RUN a2ensite opencpu2
RUN sh -c 'echo "deb http://cran.rstudio.com/bin/linux/ubuntu trusty/" >> /etc/apt/sources.list'
RUN gpg --keyserver keyserver.ubuntu.com --recv-key E084DAB9
RUN gpg -a --export E084DAB9 | apt-key add -
RUN apt-get -y update && apt-get -y install \
r-base \
libprotobuf-dev \
protobuf-compiler \
r-cran-xml
RUN R -e 'source("https://bioconductor.org/biocLite.R"); install.packages("XML", repo = "http://cran.gis-lab.info"); biocLite("Biobase"); biocLite("limma"); biocLite("org.Mm.eg.db")'
RUN R -e 'install.packages("devtools", repo = "http://cran.gis-lab.info"); library(devtools); install_github("hadley/scales"); install_github("assaron/GEOquery"); install_github("baba-beda/morpheusR")'
RUN cd /var/www/html && \
git clone https://github.com/baba-beda/morpheus.js.git morpheus && \
cd
RUN a2enmod proxy_http
EXPOSE 80
EXPOSE 443
EXPOSE 8004
RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
RUN mkdir -p /var/morpheus/cache
VOLUME ["/var/morpheus/cache"]
CMD service apache2 start && \
R -e 'opencpu::opencpu$start(8001)' && \
tail -F /var/log/opencpu/apache_access.log