Closed Chris-Schnaufer closed 3 years ago
A few thoughts:
FROM rocker/rstudio:3.6.3
MAINTAINER="Chris Schnaufer <schnaufer@email.arizona.edu>"
RUN apt-get update && apt-get install -y --no-install-recommends \
libxml2-dev
zlib1g-dev
libfftw3-dev
gdal-bin
libgdal-dev
libxt-dev
RUN install2.r --error \
sp
raster
rgdal
scales
xml2
git2r
usethis
fftwtools
devtools
RUN installGithub.r filipematias23/FIELDimageR
In addition, If you start from rocker/geospatial you get a lot of these dependencies already built in (including tidyverse and a lot of geospatial utilities - not just those required by FieldImageR but some that could be useful for running downstream analyses, as well as a lot of bloat!!)
Thank you for sharing ..!!!
I have updated the Dockerfile to take advantage of suggested installation changes.
I am putting the suggested additions for downstream analysis into another issue: #9
this can be closed since #10 has been merged and suggestions for improvement are in #9
Hi @Chris-Schnaufer and @dlebauer, Thank you a lot for helping with this project. I am wondering what is the next step? How can I integrate your suggestions (#9 and #10) to the tutorial?
All the best, Filipe
I am wondering what is the next step? How can I integrate your suggestions (#9 and #10) to the tutorial?
I think the next step as described in #9 would be to determine if those are changes that are desired and, if so, update the Dockerfile to use the new base image. I don't know who would be best suited to determine if those changes are desired
Building Docker images with the base requirements met would allow others to use FIELDimageR with less startup overhead.
I created a
Dockerfile
at https://github.com/Chris-Schnaufer/FIELDimageR/blob/add_dockerfile/Dockerfile that can be merged (if desired) and used to build and distribute a Docker image.