File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
images/py-rocket-geospatial-2 Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -23,12 +23,14 @@ RUN rm -rf /tmp2
2323USER root
2424# install the geospatial libraries and R spatial; the rocket script are part of py-rocket-base
2525# need to ensure that it installs to the site-library (that user can control) and with a clean PATH
26- RUN echo '.libPaths(file.path(Sys.getenv("R_HOME"), "site-library"))' > /tmp/rprofile.site
27- RUN env R_PROFILE=/tmp/rprofile.site \
28- PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \
29- /rocker_scripts/install_geospatial.sh
30- RUN rm /tmp/rprofile.site
31-
26+ # Ensure packages go to site-library whether installed via R, Rscript, or littler (r)
27+ RUN echo '.libPaths("/usr/local/lib/R/site-library")' > /etc/littler.r && \
28+ echo '.libPaths("/usr/local/lib/R/site-library")' > /tmp/rprofile.site && \
29+ R_PROFILE=/tmp/rprofile.site \
30+ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \
31+ /rocker_scripts/install_geospatial.sh && \
32+ rm /etc/littler.r /tmp/rprofile.site
33+
3234# Install cwutils
3335RUN cd /tmp && \
3436 wget https://www.star.nesdis.noaa.gov/socd/coastwatch/cwf/cwutils-4_0_0_198-linux-x86_64.tar.gz && \
You can’t perform that action at this time.
0 commit comments