Skip to content

Instantly share code, notes, and snippets.

@ImreSamu
Created July 3, 2016 21:01
Show Gist options
  • Select an option

  • Save ImreSamu/e89f7287078fefcc94b6fd5ad12d322f to your computer and use it in GitHub Desktop.

Select an option

Save ImreSamu/e89f7287078fefcc94b6fd5ad12d322f to your computer and use it in GitHub Desktop.
Dockerfile for osm-history-splitter
##
## Docker file for osm-history-splitter
##
FROM ubuntu:16.04
RUN export DEBIAN_FRONTEND=noninteractive
ENV DEBIAN_FRONTEND noninteractive
#### -- Set the locale
RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
#### -- install build env
RUN apt-get -y update \
&& apt-get -y install git make cmake build-essential
##### -- libosmium req--
RUN apt-get -y install g++-5 \
libboost-all-dev \
libgdal-dev \
libgeos++-dev \
libbz2-dev \
libproj-dev \
libsparsehash-dev \
spatialite-bin
##### -- libosmium from source
RUN mkdir -p /osm \
&& cd /osm \
&& git clone --quiet --depth 1 https://github.com/osmcode/libosmium.git \
&& mkdir -p /osm/libosmium/build \
&& cd /osm/libosmium/build \
&& cmake .. \
&& make
##### -- osm-history-splitter from source
RUN cd /osm && git clone --quiet --depth 1 https://github.com/joto/osm-history-splitter.git \
&& mkdir -p /osm/osm-history-splitter/build \
&& cd /osm/osm-history-splitter/build \
&& cmake .. \
&& make \
&& make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment