From ec17ca4363659757f0645edde9dccd040ed5d617 Mon Sep 17 00:00:00 2001 From: Andrey Ivanov Date: Wed, 30 Mar 2016 18:28:16 +0400 Subject: [PATCH] Debian Dockerfile --- docs/INSTALL.md | 7 +++++++ docs/debian/Dockerfile | 46 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 docs/debian/Dockerfile diff --git a/docs/INSTALL.md b/docs/INSTALL.md index 19b5625348..4da8455f5a 100644 --- a/docs/INSTALL.md +++ b/docs/INSTALL.md @@ -96,6 +96,13 @@ Then do a git clone, run `configure.sh` and compile with linux-clang spec: SPEC=linux-clang tools/unix/build_omim.sh -r +### Debian Jessie + +Example [Dockerfile](debian/Dockerfile). In instruction have been compiled Generator Tool and, for routing indices, OSRM backend. I used this command: + + CONFIG=gtool omim/tools/unix/build_omim.sh -cro + + ### Windows We haven't compiled MAPS.ME on Windows in a long time, though it is possible. It is likely diff --git a/docs/debian/Dockerfile b/docs/debian/Dockerfile new file mode 100644 index 0000000000..12eb543407 --- /dev/null +++ b/docs/debian/Dockerfile @@ -0,0 +1,46 @@ +FROM debian:jessie +MAINTAINER Andrey Ivanov stayhardordie@gmail.com + +ENV REPOSITORY=https://github.com/mapsme/omim.git \ + DIR=/srv + +RUN apt-get update && \ + DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ + build-essential \ + ca-certificates \ + wget \ + git \ + libssl-dev \ + clang \ + libc++-dev \ + libglu1-mesa-dev \ + libstdc++-4.8-dev \ + qt5-default \ + cmake \ + libboost-all-dev \ + mesa-utils \ + libtbb2 \ + libtbb-dev \ + libluabind-dev \ + libluabind0.9.1 \ + lua5.1 \ + osmpbf-bin \ + libprotobuf-dev \ + libstxxl-dev \ + libxml2-dev \ + libsparsehash-dev \ + libbz2-dev \ + zlib1g-dev \ + libzip-dev \ + liblua5.1-0-dev \ + pkg-config \ + libgdal-dev \ + libexpat1-dev \ + libosmpbf-dev +WORKDIR $DIR +RUN git clone --depth=1 --recursive $REPOSITORY +RUN cd omim && \ + echo | ./configure.sh && \ + cd ../ +RUN CONFIG=gtool omim/tools/unix/build_omim.sh -cro +CMD ["/bin/bash"]