Skip to content

Commit 4cbf79c

Browse files
dockerfile creation and install requirements updated
1 parent 0e83b4e commit 4cbf79c

File tree

3 files changed

+34
-11
lines changed

3 files changed

+34
-11
lines changed

Dockerfile

+32-7
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,41 @@ RUN mkdir -p /srv/shiny-server
88
RUN apt-get update && apt-get install -y \
99
libcurl4-gnutls-dev \
1010
libssl-dev \
11-
libel-parser-perl \
11+
libxml-parser-perl
12+
# libel-parser-perl
1213

1314
# Install R packages
14-
RUN R -e 'install.packages(c("shiny","visNetwork","shinydashboard", "ggplot2"))'
15+
RUN R -e 'install.packages("devtools", repos="http://cran.us.r-project.org", dependencies = TRUE)'
16+
RUN R -e 'install.packages("shiny", version = "1.7.1", repos="http://cran.us.r-project.org")'
17+
RUN R -e 'install.packages("visNetwork", version = "2.1.0", repos="http://cran.us.r-project.org")'
18+
RUN R -e 'install.packages("igraph", version = "1.3.5", repos="http://cran.us.r-project.org")'
19+
RUN R -e 'install.packages("dplyr", version = "1.0.2", repos="http://cran.us.r-project.org")'
20+
RUN R -e 'install.packages("shinyBS", version = "0.61", repos="http://cran.us.r-project.org")'
21+
RUN R -e 'install.packages("shinythemes", version = "1.2.0", repos="http://cran.us.r-project.org")'
22+
RUN R -e 'install.packages("shinydashboard", version = "0.7.2", repos="http://cran.us.r-project.org")'
23+
RUN R -e 'install.packages("shinydashboardPlus", version = "2.0.3", repos="http://cran.us.r-project.org")'
24+
RUN R -e 'install.packages("shinyWidgets", version = "0.7.4", repos="http://cran.us.r-project.org")'
25+
RUN R -e 'install.packages("shinyjs", version = "2.1.0", repos="http://cran.us.r-project.org")'
26+
RUN R -e 'install.packages("BANN")'
1527

1628
# Copy contents of app directory
17-
COPY ./app/app.R /srv/shiny-server/
18-
COPY ./app/scripts /srv/shiny-server/
19-
COPY ./app/www /srv/shiny-server/
20-
COPY ./data /srv/shiny-server/
29+
30+
COPY ./app /srv/shiny-server/
31+
COPY ./BANNs /srv/shiny-server/
32+
COPY ./example_data /srv/shiny-server/
33+
COPY ./multioviz /srv/shiny-server/
34+
COPY ./runMultioviz.R /srv/shiny-server/
35+
COPY ./setupMultioviz.sh /srv/shiny-server/
36+
COPY ./README.md /srv/shiny-server/
37+
COPY ./R_PACKAGE_DIRECTIONS /srv/shiny-server/
38+
COPY ./demo.R /srv/shiny-server/
39+
COPY ./load_multioviz.R /srv/shiny-server/
40+
COPY ./load_packages.R /srv/shiny-server/
41+
42+
COPY ./multio-viz.Rproj /srv/shiny-server/
43+
COPY ./multio-viz_res /srv/shiny-server/
44+
COPY ./own_computational_method.R /srv/shiny-server/
2145

2246
# Run app
23-
CMD ["/usr/bin/shiny-server"]
47+
EXPOSE 3838
48+
CMD ["/usr/bin/shiny-server"]

load_multioviz.R

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
install.packages("devtools", repos="http://cran.us.r-project.org") # nolint
21
library(devtools)
32
devtools::load_all()
43
devtools::install()

setupMultioviz.sh

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1+
Rscript load_packages.R
12
git clone https://github.com/lcrawlab/BANNs.git
23
R CMD INSTALL BANNs/BANN_R/BANN_0.1.0.tar.gz
3-
Rscript load_packages.R
4-
cd multioviz
5-
Rscript ../load_multioviz.R
4+
Rscript load_multioviz.R

0 commit comments

Comments
 (0)