@@ -51,18 +51,26 @@ RUN echo 'options(\n\
5151# Update R packages
5252RUN R -e "update.packages(ask = F)"
5353
54- # Create docker user with empty password (will have uid and gid 1000)
55- RUN useradd --create-home --shell /bin/bash docker \
56- && passwd docker -d \
57- && adduser docker sudo
54+ # Other R packages
55+ RUN R -e "install.packages('devtools')"
56+ RUN R -e "install.packages('roxygen2')"
57+ RUN R -e "install.packages('testthat')"
58+
59+ # sf system dependencies
60+ RUN add-apt-repository ppa:ubuntugis/ubuntugis-unstable --yes
61+ RUN apt-get -y update
62+ RUN apt-get install -y libudunits2-dev libproj-dev libgeos-dev libgdal-dev
63+
64+ # Install all plotly's dependencies
65+ RUN R -e "install.packages('plotly', dependencies = T)"
5866
5967# system dependencies related to running orca
6068RUN apt-get install -y \
6169 libgtk2.0-0 \
6270 libgconf-2-4 \
6371 xvfb \
6472 fuse \
65- desktop-file-utils
73+ desktop-file-utils
6674
6775# google chrome
6876RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \
@@ -76,27 +84,13 @@ RUN chmod 777 /home/orca-1.1.1-x86_64.AppImage
7684RUN printf '#!/bin/bash \n xvfb-run --auto-servernum --server-args "-screen 0 640x480x24" /home/orca-1.1.1-x86_64.AppImage "$@"' > /usr/bin/orca
7785RUN chmod 777 /usr/bin/orca
7886
79- # other R packages
80- RUN R -e "install.packages(c('devtools', 'roxygen2', 'testthat'))"
81-
82- # sf system dependencies
83- RUN add-apt-repository ppa:ubuntugis/ubuntugis-unstable --yes
84- RUN apt-get -y update
85- RUN apt-get install -y libudunits2-dev libproj-dev libgeos-dev libgdal-dev
86-
87- # install all plotly's dependencies
88- RUN R -e "install.packages('plotly', dependencies = T)"
89-
9087# install visual testing packages
9188RUN R -e "devtools::install_github('cpsievert/vdiffr@diffObj')"
9289RUN R -e "devtools::install_github('cpsievert/diffobj@css')"
9390
94- # TODO: why does roxygen2 install fail above?
95- RUN R -e "install.packages('roxygen2')"
96-
9791# configure for visual testing
9892ENV VDIFFR=true
9993EXPOSE 3838
10094COPY ./ /home/plotly
10195
102- CMD R -e "vdiffr::manage_cases('home/plotly'); devtools::test('home/plotly') "
96+ CMD R -e "vdiffr::manage_cases('home/plotly')"
0 commit comments