See here for general docker files building R with a significant number of spatial extension packages and external dependencies, based on rocker and debian.
To allows building sf
in alternative environments with all
external system requirements (udunits, proj, gdal, geos, lwgeom),
this directory has subdirectories with Docker files:
sf
, Except for the cran image, all images are built on ubuntu:16.04 (xenial). They use ubuntugis-unstable for GIS package system dependencies.
In directory base
, type
docker build . -t sf
this will build a docker image of approx. 3.8 Gb size, called sf
. It will also install package sf
with its dependencies from CRAN, and run a check on the github sources.
Run a container from this image interactively with
docker run -ti sf
If you want to run it while mounting the current working directory (pwd
) to /pkg
inside the container, and want to remove the container after you exit, use:
docker run -v `pwd`:/pkg --rm -ti sf
After you built docker image sf
above, on top of that you can install r-devel; it counts up to 4 Gb. Build it by executing the following command in the devel
directory:
docker build . -t sf_devel
Run a container from this image interactively with
docker run -ti sf_devel
to start R-devel in the container, use the Rdevel
command. Building the image checks sf from github.
If you want to run R with gdb
in a container, use e.g.
docker run --cap-add=SYS_PTRACE --security-opt seccomp=unconfined -ti gdal3
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.