This repository has been archived by the owner on Nov 29, 2024. It is now read-only.
forked from shrektan/shiny
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
103 lines (88 loc) · 3.43 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
FROM rocker/hadleyverse:latest
MAINTAINER Shrek Tan "[email protected]"
# Winston Chang's shiny server code
RUN apt-get update && apt-get install -y -t unstable \
gdebi-core \
pandoc \
pandoc-citeproc \
libcurl4-gnutls-dev \
libcairo2-dev/unstable \
libxt-dev
# Download and install shiny server
RUN wget --no-verbose https://s3.amazonaws.com/rstudio-shiny-server-os-build/ubuntu-12.04/x86_64/VERSION -O "version.txt" && \
VERSION=$(cat version.txt) && \
wget --no-verbose "https://s3.amazonaws.com/rstudio-shiny-server-os-build/ubuntu-12.04/x86_64/shiny-server-$VERSION-amd64.deb" -O ss-latest.deb && \
gdebi -n ss-latest.deb && \
rm -f version.txt ss-latest.deb && \
R -e "install.packages(c('shiny', 'rmarkdown'), repos='https://cran.rstudio.com/')" && \
cp -R /usr/local/lib/R/site-library/shiny/examples/* /srv/shiny-server/
# Shrek's own working environment
# Install Database related apt
RUN apt-get update && apt-get install -y \
libaio1
# CRAN version packages
# install2.r is an cmd of linux by import litter. If the package is not available in CRAN, it will stop.
RUN install2.r --error \
assertthat \
dendextend \
dygraphs \
DiagrammeR \
extrafont \
forecast \
ggthemes \
infuser \
jsonlite \
knitr \
leaflet \
lubridate \
mailR \
openxlsx \
pander \
PerformanceAnalytics \
PKI \
R6 \
RColorBrewer \
RJDBC \
RJSONIO \
rmarkdown \
shinythemes \
shinydashboard \
showtext \
stringr \
V8 \
xtable \
xts \
&& rm -rf /tmp/downloaded_packages/ /tmp/*.rds
# Github version packages
RUN R -e "devtools::install_github('rstudio/d3heatmap')"
RUN R -e "devtools::install_github('Rdatatable/data.table')"
RUN R -e "devtools::install_github('gluc/data.tree', ref = 'dev')"
# RUN R -e "devtools::install_github('hadley/dplyr')"
RUN R -e "devtools::install_github('rstudio/DT')"
RUN R -e "devtools::install_github('renkun-ken/formattable')"
RUN R -e "devtools::install_github('hadley/ggplot2')"
RUN R -e "devtools::install_github('slowkow/ggrepel')"
RUN R -e "devtools::install_github('jrnold/ggthemes')"
RUN R -e "devtools::install_github('sainathadapa/ggthemr')"
RUN R -e "devtools::install_github('Ather-Energy/ggTimeSeries')"
RUN R -e "devtools::install_github('ricardo-bion/ggradar')"
RUN R -e "devtools::install_github('jbkunst/highcharter')"
RUN R -e "devtools::install_github('ramnathv/htmlwidgets')"
RUN R -e "devtools::install_github('hadley/httr')"
RUN R -e "devtools::install_github('hrbrmstr/metricsgraphics')"
RUN R -e "devtools::install_github('hadley/purrr')"
RUN R -e "devtools::install_github('hadley/readr')"
RUN R -e "devtools::install_github('imanuelcostigan/RSQLServer')"
RUN R -e "devtools::install_github('rstudio/shiny')"
RUN R -e "devtools::install_github('ebailey78/shinyBS', ref = 'shinyBS3')"
RUN R -e "devtools::install_github('daattali/shinyjs')"
RUN R -e "devtools::install_github('trestletech/shinyStore')"
RUN R -e "devtools::install_github('hrbrmstr/streamgraph')"
RUN R -e "devtools::install_github('hadley/svglite')"
RUN R -e "devtools::install_github('wilkox/treemapify')"
# Make semi ENTRYPOINT
COPY rstudio-server.sh /usr/bin/rstudio-server.sh
EXPOSE 3838
COPY shiny-server.sh /usr/bin/shiny-server.sh
CMD ["/usr/bin/shiny-server.sh"]
# If you want to execute rstudio-server, you have to `docker exec shinyserver RUN /usr/bin/rstudio-server.sh after the container has been established.