Created
August 29, 2014 14:46
-
-
Save ImreSamu/5447252a4e750fd8c61e to your computer and use it in GitHub Desktop.
Docker file - for install osmium tool
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
# | |
# Docker file - for install osmium tool. | |
# | |
FROM ubuntu:14.04 | |
MAINTAINER Imre Samu https://github.com/ImreSamu/ | |
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 | |
RUN apt-get -y update && apt-get -y upgrade | |
#-------------Application Specific Stuff ---------------------------------------------------- | |
RUN apt-get -y install git nano mc wget sudo | |
RUN apt-get -y install make cmake build-essential | |
RUN apt-get -y install libboost-dev libboost-program-options-dev libprotobuf-dev protobuf-compiler | |
RUN apt-get -y install libexpat1-dev zlib1g-dev libbz2-dev libsparsehash-dev libgdal1-dev | |
RUN apt-get -y install libgeos++-dev libproj-dev doxygen graphviz xmlstarlet | |
RUN apt-get -y install libcrypto++-dev | |
RUN apt-get -y install cppcheck astyle pandoc | |
#-------------- latest libosmpbf | |
RUN apt-get -y install devscripts debhelper libprotobuf-java ant default-jdk maven-repo-helper | |
RUN mkdir -p /osm/libosmpbf | |
RUN cd /osm/libosmpbf && git clone https://github.com/scrosby/OSM-binary.git | |
RUN cd /osm/libosmpbf/OSM-binary && debuild -I -us -uc | |
RUN cd /osm/libosmpbf && dpkg --install libosmpbf-dev_*.deb | |
#-------------- libosmium from source | |
RUN cd /osm && git clone https://github.com/osmcode/libosmium.git | |
# RUN cd /osm/libosmium && git checkout master | |
RUN mkdir -p /osm/libosmium/build && cd /osm/libosmium/build && cmake .. | |
RUN cd /osm/libosmium/build && make && make install | |
##-------------- osmium-tool from source | |
RUN cd /osm && git clone https://github.com/osmcode/osmium-tool.git | |
RUN mkdir -p /osm/osmium-tool/build && cd /osm/osmium-tool/build && cmake .. | |
RUN cd /osm/osmium-tool/build && make && make install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
osmium-tool is now part of Ubuntu 16.04: