Skip to content
This repository has been archived by the owner on Feb 21, 2022. It is now read-only.

Commit

Permalink
new version
Browse files Browse the repository at this point in the history
  • Loading branch information
cboettig committed Dec 21, 2018
1 parent 235289c commit 9489a38
Showing 1 changed file with 56 additions and 17 deletions.
73 changes: 56 additions & 17 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,53 +1,92 @@
FROM rocker/verse:3.5.2
FROM rocker/verse:3.3.1
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 \
libgdal-dev \
libgeos-dev \
libfreexl-dev \
# libgeos-dev \ # Need 3.5, this is 3.3
libgsl0-dev \
libgl1-mesa-dev \
libglu1-mesa-dev \
libhdf4-alt-dev \
libhdf5-dev \
libjq-dev \
liblwgeom-dev \
libproj-dev \
libprotobuf-dev \
libkml-dev \
libnetcdf-dev \
libproj-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 \
hdf5r \
lidR \
mapdata \
maptools \
mapview \
ncdf4 \
proj4 \
raster \
rgdal \
rgeos \
rlas \
sf \
sp \
spacetime \
spatstat \
spdep \
splancs \
geoR \
geosphere \
## from bioconductor
&& R -e "BiocManager::install('rhdf5')"
&& R -e "BiocInstaller::biocLite('rhdf5')"

0 comments on commit 9489a38

Please sign in to comment.