diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e1bb8c9..b9fafa3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,6 +7,7 @@ on: paths: - 'conda-linux-64.lock' - 'environment.yml' + - 'install.R' - 'Dockerfile' # Trigger rebuilds if the build process changes - '.github/workflows/build.yaml' diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b624a34..e45e3bb 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -4,6 +4,7 @@ on: pull_request: paths: - 'environment.yml' + - 'install.R' # Trigger rebuilds if the test process changes - '.github/workflows/test.yaml' diff --git a/Dockerfile b/Dockerfile index 3d2703d..c496de1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -66,6 +66,9 @@ RUN echo "Checking for 'conda-linux-64.lock' or 'environment.yml'..." \ find ${NB_PYTHON_PREFIX}/lib/python*/site-packages/bokeh/server/static -follow -type f -name '*.js' ! -name '*.min.js' -delete \ ; fi +## Run an install.R script, if it exists. +RUN if [ -f install.R ]; then R --quiet -f install.R; fi + RUN pip install jupyter-rsession-proxy WORKDIR ${HOME} diff --git a/install.R b/install.R new file mode 100644 index 0000000..a9c0990 --- /dev/null +++ b/install.R @@ -0,0 +1,2 @@ +install.packages("spatialEco") +install.packages("lidR")