-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpipeline_image_gdal39.def
48 lines (40 loc) · 2.04 KB
/
pipeline_image_gdal39.def
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
BootStrap: docker
From: ghcr.io/osgeo/gdal:ubuntu-full-3.9.0
%post
mkdir /pipeline
mkdir /pipeline/input
mkdir /opt/_targets
apt-get -y update
apt-get -y install gfortran libudunits2-dev libnode-dev libarchive-dev build-essential apt-file
apt update -qq
# install two helper packages we need
apt-get -y install --no-install-recommends software-properties-common dirmngr
# add the signing key (by Michael Rutter) for these repos
# To verify key, run gpg --show-keys /etc/apt/trusted.gpg.d/cran_ubuntu_key.asc
# Fingerprint: E298A3A825C0D65DFD57CBB651716619E084DAB9
wget -qO- https://cloud.r-project.org/bin/linux/ubuntu/marutter_pubkey.asc | tee -a /etc/apt/trusted.gpg.d/cran_ubuntu_key.asc
# add the R 4.0 repo from CRAN -- adjust 'focal' to 'groovy' or 'bionic' as needed
add-apt-repository -y "deb https://cloud.r-project.org/bin/linux/ubuntu $(lsb_release -cs)-cran40/"
apt-get -y install r-base
R -e "install.packages('rspm')"
echo "rspm::enable()" > ~/.Rprofile
Rscript -e "install.packages(c('pacman', 'future', 'future.apply', 'terra'))"
Rscript -e "install.packages(c('exactextractr', 'targets', 'tarchetypes', 'crew', 'crew.cluster', 'nanonext'))"
Rscript -e "install.packages(c('tidytable', 'furrr', 'purrr', 'tidyr', 'dtplyr', 'data.table', 'collapse', 'stringr', 'stringi'))"
Rscript -e "install.packages(c('nngeo', 'remotes', 'pak', 'stars', 'furrr', 'broom', 'ggridges', 'rsample', 'skimr', 'fastDummies', 'scales', 'parsnip', 'skimr'))"
Rscript -e "install.packages(c('tidyverse', 'spatialsample', 'tidymodels', 'tune'))"
Rscript -e "pak::pak('qs')"
Rscript -e "pak::pak('njtierney/geotargets')"
Rscript -e "install.packages(c('map'), repos = 'https://cloud.r-project.org')"
Rscript -e "pak::pak('NIEHS/PrestoGP')"
Rscript -e "pak::pak('NIEHS/beethoven')"
Rscript -e "pak::pak('NIEHS/amadeus')"
Rscript -e "pak::pak('NIEHS/chopin')"
%environment
export LC_ALL=C
export DDN_SET=/ddn/gs1/group/SET/
export DDN_IS=/ddn/gs1/home/songi2/
%files
%runscript
%labels
Insang Song