forked from eco4cast/neon4cast-ci
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
30 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,37 @@ | ||
FROM rocker/binder:latest | ||
|
||
#USER root | ||
RUN apt-get update && apt-get -y install cron | ||
RUN apt-get update && apt-get -y install jags | ||
RUN apt-get update && apt-get -y install libgd-dev | ||
RUN apt-get update && apt-get -y install libnetcdf-dev | ||
# Ensure the commands are run as root user | ||
USER root | ||
|
||
RUN sudo update-ca-certificates | ||
|
||
#USER ${NB_USER} | ||
|
||
RUN apt-get -y install python3 python3-pip | ||
# Update the package list and install required packages | ||
RUN rm -rf /var/lib/apt/lists/* && \ | ||
apt-get update && \ | ||
apt-get -y install cron jags libgd-dev libnetcdf-dev python3 python3-pip && \ | ||
apt-get clean && \ | ||
sudo update-ca-certificates | ||
|
||
# Install R packages | ||
RUN install2.r devtools remotes reticulate | ||
|
||
RUN R -e "remotes::install_github('cboettig/minioclient')" | ||
RUN sleep 180 | ||
RUN R -e "remotes::install_github('eco4cast/stac4cast')" | ||
RUN sleep 180 | ||
RUN R -e "remotes::install_github('eco4cast/EFIstandards')" | ||
RUN sleep 180 | ||
RUN R -e "remotes::install_github('cboettig/aws.s3')" | ||
RUN sleep 180 | ||
RUN R -e "remotes::install_github('eco4cast/score4cast')" | ||
RUN sleep 180 | ||
RUN R -e "remotes::install_github('EcoForecast/ecoforecastR')" | ||
RUN sleep 180 | ||
RUN R -e "remotes::install_github('eco4cast/neon4cast')" | ||
RUN sleep 180 | ||
RUN R -e "remotes::install_github('cboettig/prov')" | ||
RUN sleep 180 | ||
RUN R -e "remotes::install_github('eco4cast/read4cast')" | ||
RUN sleep 180 | ||
RUN R -e "remotes::install_github('eco4cast/gefs4cast')" | ||
RUN sleep 180 | ||
RUN R -e "remotes::install_github('mitchelloharawild/distributional', ref = 'bb0427e')" | ||
|
||
RUN install2.r arrow renv rjags neonstore ISOweek RNetCDF fable fabletools forecast imputeTS duckdbfs gsheet | ||
|
||
RUN install2.r ncdf4 scoringRules tidybayes tidync udunits2 bench contentid yaml RCurl here feasts future furrr jsonlite | ||
|
||
#RUN R -e "reticulate::install_python(version = '3.9:latest', list = FALSE, force = FALSE)" | ||
|
||
# Install R packages from GitHub | ||
RUN R -e "remotes::install_github('cboettig/minioclient')" && \ | ||
R -e "remotes::install_github('eco4cast/stac4cast')" && \ | ||
R -e "remotes::install_github('eco4cast/EFIstandards')" && \ | ||
R -e "remotes::install_github('cboettig/aws.s3')" && \ | ||
R -e "remotes::install_github('eco4cast/score4cast')" && \ | ||
R -e "remotes::install_github('EcoForecast/ecoforecastR')" && \ | ||
R -e "remotes::install_github('eco4cast/neon4cast')" && \ | ||
R -e "remotes::install_github('cboettig/prov')" && \ | ||
R -e "remotes::install_github('eco4cast/read4cast')" && \ | ||
R -e "remotes::install_github('eco4cast/gefs4cast')" && \ | ||
R -e "remotes::install_github('mitchelloharawild/distributional', ref = 'bb0427e')" | ||
|
||
# Install additional R packages | ||
RUN install2.r arrow renv rjags neonstore ISOweek RNetCDF fable fabletools forecast imputeTS duckdbfs gsheet && \ | ||
install2.r ncdf4 scoringRules tidybayes tidync udunits2 bench contentid yaml RCurl here feasts future furrr jsonlite | ||
|
||
# Copy cron script | ||
COPY cron.sh /etc/services.d/cron/run | ||
|
||
# Switch back to the default user if necessary | ||
# USER ${NB_USER} |