This repository has been archived by the owner on Feb 21, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 38
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
Showing
1 changed file
with
13 additions
and
55 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,82 +1,40 @@ | ||
FROM rocker/verse:3.3.3 | ||
FROM rocker/verse:3.4.0 | ||
MAINTAINER "Carl Boettiger" [email protected] | ||
|
||
ENV GDAL_VERSION 2.1.3 | ||
ENV GEOS_VERSION 3.5.1 | ||
ENV LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH | ||
|
||
|
||
RUN apt-get update \ | ||
## && apt-get build-dep -y -o APT::Get::Build-Dep-Automatic=true libgdal-dev \ | ||
&& apt-get install -y --no-install-recommends \ | ||
lbzip2 \ | ||
## dev packages | ||
libdap-dev \ | ||
libexpat1-dev \ | ||
libfftw3-dev \ | ||
libfreexl-dev \ | ||
# libgeos-dev \ # Need 3.5, this is 3.3 | ||
libgdal-dev \ | ||
libgeos-dev \ | ||
libgsl0-dev \ | ||
libgl1-mesa-dev \ | ||
libglu1-mesa-dev \ | ||
libhdf4-alt-dev \ | ||
libhdf5-dev \ | ||
libjq-dev \ | ||
liblwgeom-dev \ | ||
libkml-dev \ | ||
libnetcdf-dev \ | ||
libproj-dev \ | ||
libprotobuf-dev \ | ||
libnetcdf-dev \ | ||
libsqlite3-dev \ | ||
libssl-dev \ | ||
libtcl8.5 \ | ||
libtk8.5 \ | ||
libtiff5-dev \ | ||
libudunits2-dev \ | ||
libxerces-c-dev \ | ||
## runtime packages | ||
netcdf-bin \ | ||
protobuf-compiler \ | ||
tk-dev \ | ||
unixodbc-dev \ | ||
&& wget http://download.osgeo.org/gdal/${GDAL_VERSION}/gdal-${GDAL_VERSION}.tar.gz \ | ||
&& tar -xf gdal-${GDAL_VERSION}.tar.gz \ | ||
&& wget http://download.osgeo.org/geos/geos-${GEOS_VERSION}.tar.bz2 \ | ||
&& tar -xf geos-${GEOS_VERSION}.tar.bz2 \ | ||
## Install dependencies of gdal-$GDAL_VERSION | ||
## && echo "deb-src http://deb.debian.org/debian jessie main" >> /etc/apt/sources.list \ | ||
## Install libgeos \ | ||
&& cd /geos* \ | ||
&& ./configure \ | ||
&& make \ | ||
&& make install \ | ||
## Configure options loosely based on homebrew gdal2 https://github.com/OSGeo/homebrew-osgeo4mac/blob/master/Formula/gdal2.rb | ||
&& cd /gdal* \ | ||
&& ./configure \ | ||
--with-curl \ | ||
--with-dods-root=/usr \ | ||
--with-freexl \ | ||
--with-geos \ | ||
--with-geotiff \ | ||
--with-hdf4 \ | ||
--with-hdf5=/usr/lib/x86_64-linux-gnu/hdf5/serial \ | ||
--with-libjson-c \ | ||
--with-netcdf \ | ||
--with-odbc \ | ||
## | ||
--without-grass \ | ||
--without-libgrass \ | ||
&& make \ | ||
&& make install \ | ||
&& cd .. \ | ||
## Cleanup gdal & geos installation | ||
&& rm -rf gdal-* geos-* \ | ||
## Install R packages labeled "core" in Spatial taskview | ||
&& install2.r --error \ | ||
## from CRAN | ||
DCluster \ | ||
RColorBrewer \ | ||
RandomFields \ | ||
RNetCDF \ | ||
classInt \ | ||
deldir \ | ||
gstat \ | ||
lidR \ | ||
mapdata \ | ||
maptools \ | ||
mapview \ | ||
ncdf4 \ | ||
proj4 \ | ||
raster \ | ||
|
@@ -88,7 +46,7 @@ RUN apt-get update \ | |
spacetime \ | ||
spatstat \ | ||
spdep \ | ||
splancs \ | ||
geoR \ | ||
geosphere \ | ||
## from bioconductor | ||
&& R -e "BiocInstaller::biocLite('rhdf5')" |