-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
ac48744
commit 2c0e029
Showing
2 changed files
with
28 additions
and
28 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,30 @@ | ||
# Load R image | ||
FROM rocker/r-ver:4.3.0 | ||
|
||
# DeGAUSS container metadata | ||
ENV degauss_name="daymet" | ||
ENV degauss_version="0.1.0" | ||
ENV degauss_description="daymet climate variables" | ||
ENV degauss_argument="short description of optional argument [default: 'insert_default_value_here']" | ||
|
||
# add OCI labels based on environment variables too | ||
LABEL "org.degauss.name"="${degauss_name}" | ||
LABEL "org.degauss.version"="${degauss_version}" | ||
LABEL "org.degauss.description"="${degauss_description}" | ||
LABEL "org.degauss.argument"="${degauss_argument}" | ||
|
||
# Load R image | ||
FROM rocker/r-ver:4.3.0 | ||
|
||
# DeGAUSS container metadata | ||
ENV degauss_name="daymet" | ||
ENV degauss_version="0.1.1" | ||
ENV degauss_description="daymet climate variables" | ||
ENV degauss_argument="short description of optional argument [default: 'insert_default_value_here']" | ||
|
||
# add OCI labels based on environment variables too | ||
LABEL "org.degauss.name"="${degauss_name}" | ||
LABEL "org.degauss.version"="${degauss_version}" | ||
LABEL "org.degauss.description"="${degauss_description}" | ||
LABEL "org.degauss.argument"="${degauss_argument}" | ||
|
||
WORKDIR /app | ||
|
||
RUN apt-get update -y | ||
RUN apt-get install libxml2-dev zlib1g-dev libfontconfig1-dev libssl-dev libcurl4-openssl-dev libharfbuzz-dev libfribidi-dev libfreetype6-dev libpng-dev libtiff5-dev libjpeg-dev libudunits2-dev cmake libnetcdf-dev libgdal-dev libgeos-dev libproj-dev libsqlite0-dev -y | ||
|
||
# Install R dependencies | ||
RUN R -e "install.packages(c('daymetr', 'tidyverse', 'terra', 'gtools', 'data.table', 'remotes', 'withr'))" | ||
RUN R --quiet -e "remotes::install_github('degauss-org/dht')" | ||
|
||
COPY entrypoint.R . | ||
|
||
RUN apt-get install libxml2-dev zlib1g-dev libfontconfig1-dev libssl-dev libcurl4-openssl-dev libharfbuzz-dev libfribidi-dev libfreetype6-dev libpng-dev libtiff5-dev libjpeg-dev libudunits2-dev cmake libnetcdf-dev libgdal-dev libgeos-dev libproj-dev libsqlite0-dev -y | ||
|
||
# Install R dependencies | ||
RUN R -e "install.packages(c('daymetr', 'tidyverse', 'terra', 'gtools', 'data.table', 'remotes', 'withr'))" | ||
RUN R --quiet -e "remotes::install_github('degauss-org/dht')" | ||
|
||
COPY entrypoint.R . | ||
|
||
WORKDIR /tmp | ||
|
||
ENTRYPOINT ["/usr/local/bin/Rscript", "/app/entrypoint.R"] | ||
ENTRYPOINT ["/usr/local/bin/Rscript", "/app/entrypoint.R"] | ||
|
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