diff options
| author | Howard Butler <howard@hobu.co> | 2016-03-02 10:19:47 -0600 |
|---|---|---|
| committer | Howard Butler <howard@hobu.co> | 2016-03-02 10:19:47 -0600 |
| commit | 4f27264df4c6c42f16bd81e6d5b765d60ae2748b (patch) | |
| tree | 22c9e8843db8f32566f4570f7c9a9db86d533b69 /Dockerfile | |
| parent | ff2d7b983788b91b46a4ca15a12dc3192fc181af (diff) | |
| download | PROJ-4f27264df4c6c42f16bd81e6d5b765d60ae2748b.tar.gz PROJ-4f27264df4c6c42f16bd81e6d5b765d60ae2748b.zip | |
Add a Dockerfile that demonstrates building proj.4 and friends
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..b84e312b --- /dev/null +++ b/Dockerfile @@ -0,0 +1,40 @@ +## +# osgeo/proj.4 + +FROM ubuntu:vivid + +MAINTAINER Howard Butler <howard@hobu.co> + + +# Setup build env +RUN mkdir /build +RUN apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 16126D3A3E5C1192 \ + && apt-get update && apt-get install -y --fix-missing --no-install-recommends software-properties-common build-essential ca-certificates git make cmake wget unzip libtool automake python-pip libpython-dev libjpeg-dev zlib1g-dev \ + && apt-get remove --purge -y $BUILD_PACKAGES && rm -rf /var/lib/apt/lists/* + + +RUN mkdir /vdatum \ + && cd /vdatum \ + && wget http://download.osgeo.org/proj/vdatum/usa_geoid2012.zip && unzip -j -u usa_geoid2012.zip -d /usr/share/proj \ + && wget http://download.osgeo.org/proj/vdatum/usa_geoid2009.zip && unzip -j -u usa_geoid2009.zip -d /usr/share/proj \ + && wget http://download.osgeo.org/proj/vdatum/usa_geoid2003.zip && unzip -j -u usa_geoid2003.zip -d /usr/share/proj \ + && wget http://download.osgeo.org/proj/vdatum/usa_geoid1999.zip && unzip -j -u usa_geoid1999.zip -d /usr/share/proj \ + && wget http://download.osgeo.org/proj/vdatum/vertcon/vertconc.gtx && mv vertconc.gtx /usr/share/proj \ + && wget http://download.osgeo.org/proj/vdatum/vertcon/vertcone.gtx && mv vertcone.gtx /usr/share/proj \ + && wget http://download.osgeo.org/proj/vdatum/vertcon/vertconw.gtx && mv vertconw.gtx /usr/share/proj \ + && wget http://download.osgeo.org/proj/vdatum/egm96_15/egm96_15.gtx && mv egm96_15.gtx /usr/share/proj \ + && wget http://download.osgeo.org/proj/vdatum/egm08_25/egm08_25.gtx && mv egm08_25.gtx /usr/share/proj \ + && rm -rf /vdatum + +RUN pip install Sphinx sphinx_bootstrap_theme rst2pdf --upgrade + +RUN git clone https://github.com/OSGeo/proj.4.git \ + && cd proj.4 \ + && ./autogen.sh \ + && ./configure --prefix=/usr \ + && make \ + && make install \ + && cd /proj.4/docs \ + && make html \ + && rm -rf /proj.4 + |
