Skip to content

Commit

Permalink
R version 4.3.0
Browse files Browse the repository at this point in the history
R version 4.3.0
  • Loading branch information
PondiB authored Oct 13, 2023
2 parents d620661 + c1b7992 commit b74fbc2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 17 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ Collate:
'SessionConfig-Class.R'
'error.R'
Depends:
R (>= 3.6.0)
R (>= 4.3.0)
24 changes: 8 additions & 16 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,28 +1,20 @@
FROM ubuntu:jammy
FROM r-base:4.3.0

# Install software dependencies
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y software-properties-common cmake g++ git supervisor wget
ENV TZ=Etc/UTC
RUN apt-get install -y libnetcdf-dev libcurl4-openssl-dev libcpprest-dev doxygen graphviz libsqlite3-dev libboost-all-dev
RUN add-apt-repository -y ppa:ubuntugis/ubuntugis-unstable && apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 314DF160 && apt-get update && apt-get install -y libproj-dev libgdal-dev
RUN apt-get update && apt-get install -y libproj-dev libgdal-dev

# add key for R repository
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
# Install devtools package
RUN R -e "install.packages('devtools')"

# add R repository
RUN add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu jammy-cran40/'

# install R
RUN apt update -q && DEBIAN_FRONTEND=noninteractive apt install -q -y r-base

# install devtools package
RUN Rscript -e "install.packages('devtools')"

# install gdalcubes package
RUN Rscript -e "install.packages('gdalcubes')"
# Install gdalcubes package
RUN R -e "install.packages('gdalcubes')"

# install other necessary packages
RUN apt-get install -y libsodium-dev libudunits2-dev
RUN Rscript -e "install.packages(c('plumber', 'useful', 'ids', 'R6', 'sf', 'rstac','bfast', 'caret', 'randomForest' ,'xgboost', 'torch' , 'sits'))"
RUN Rscript -e "install.packages(c('plumber', 'useful', 'ids', 'R6', 'sf', 'rstac','bfast'))"

# create directories
RUN mkdir -p /opt/dockerfiles/ && mkdir -p /var/openeo/workspace/ && mkdir -p /var/openeo/workspace/data/
Expand Down

0 comments on commit b74fbc2

Please sign in to comment.