File tree Expand file tree Collapse file tree 5 files changed +23
-68
lines changed
Expand file tree Collapse file tree 5 files changed +23
-68
lines changed Original file line number Diff line number Diff line change 99 pull_request :
1010 branches : [main, master]
1111env :
12- tag : 1.4.1
12+ tag : 1.4.2
1313
1414jobs :
1515
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ LABEL org.opencontainers.image.title="mapme-spatial-dev" \
77 org.opencontainers.image.description="A build of spatial libraries for use within MAPME" \
88 org.opencontainers.image.authors="Darius Görgen <info@dariusgoergen.com>"
99
10- COPY scripts/install_rspatial_dev .sh /rocker_scripts/install_rspatial_dev .sh
11- RUN chmod +x /rocker_scripts/install_rspatial_dev .sh
10+ COPY scripts/install_rspatial .sh /rocker_scripts/install_rspatial .sh
11+ RUN chmod +x /rocker_scripts/install_rspatial .sh
1212ARG NCPUS=-1
13- RUN bash /rocker_scripts/install_rspatial_dev .sh -ncpus $NCPUS
13+ RUN bash /rocker_scripts/install_rspatial .sh -n $NCPUS -d
Original file line number Diff line number Diff line change @@ -10,4 +10,4 @@ LABEL org.opencontainers.image.title="mapme-spatial" \
1010COPY scripts/install_rspatial.sh /rocker_scripts/install_rspatial.sh
1111RUN chmod +x /rocker_scripts/install_rspatial.sh
1212ARG NCPUS=-1
13- RUN bash /rocker_scripts/install_rspatial.sh -ncpus $NCPUS
13+ RUN bash /rocker_scripts/install_rspatial.sh -n $NCPUS
Original file line number Diff line number Diff line change 11#! /bin/bash
22set -e
33
4- while getopts ncpus: flag
4+ DEV=0
5+
6+ while getopts " dn:" flag
57do
68 case " ${flag} " in
7- ncpus) NCPUS=${OPTARG} ;;
9+ n) NCPUS=${OPTARG} ;;
10+ d) DEV=1;;
811 esac
912done
1013
@@ -16,11 +19,20 @@ install2.r --deps TRUE --ncpus $NCPUS --type source --repos https://cloud.r-proj
1619 sf \
1720 stars \
1821 terra \
19- gdalcubes \
20- mapme.biodiversity
22+ gdalcubes
2123
22- # install mapme packages
23- Rscript -e ' remotes::install_github("mapme-initiative/mapme.pipelines", dependencies = TRUE)'
24+ # install mapme.biodiversity dev or cran version
25+ if [ $DEV -eq 1 ]; then
26+ echo " Installing dev version of mapme.biodiversity"
27+ Rscript -e ' remotes::install_github("mapme-initiative/mapme.biodiversity", dependencies = TRUE)'
28+ else
29+ echo " Installing CRAN version of mapme.biodiversity"
30+ install2.r --deps TRUE --ncpus $NCPUS --type source --repos https://cloud.r-project.org \
31+ mapme.biodiversity
32+ fi
33+
34+ # install other mapme packages from github
35+ Rscript -e ' remotes::install_github("mapme-initiative/mapme.pipelines", dependencies = TRUE)'
2436
2537# install additional r packages
2638install2.r --error --skipmissing --skipinstalled --ncpus $NCPUS \
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments