-
Notifications
You must be signed in to change notification settings - Fork 1
/
DockerfileSeamapRenderer
75 lines (65 loc) · 1.6 KB
/
DockerfileSeamapRenderer
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
FROM ubuntu:22.04
# Set user
ARG OSM_USER=renderaccount
RUN cd /
RUN apt-get update
# Set the locale
RUN apt-get -y install locales
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
locale-gen
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
RUN apt-get -y install ant \
libbatik-java \
gcc \
openjdk-8-jre \
g++ \
make \
expat \
libexpat1-dev \
zlib1g-dev \
git \
autoconf \
libtool \
automake1.11 \
openjdk-8-jdk \
bzip2 \
wget
RUN useradd -m $OSM_USER
USER $OSM_USER
RUN mkdir ~/src && \
mkdir /home/$OSM_USER/opt && \
cd ~/src && \
git clone https://github.com/drolbr/Overpass-API.git
RUN cd ~/src/Overpass-API/src; \
libtoolize; \
automake --add-missing;\
autoreconf;\
automake --add-missing && \
autoreconf && \
cd ../build && \
../src/configure CXXFLAGS="-Wall -O2" --prefix=/home/$OSM_USER/opt/overpass && \
make install -j4
RUN cd ~/src && \
git clone https://github.com/KastB/renderer.git && \
cd renderer && \
cd jharbour && \
ant && \
cd ../jsearch && \
ant && \
cd ../jtile && \
ant && \
cd ../searender && \
mv Makefile.linux Makefile && \
make all
USER root
RUN mkdir -p /home/renderaccount/overpass_db/ && cd /home/renderaccount/overpass_db/ && \
wget http://dev.overpass-api.de/releases/osm-3s_v0.7.56.7.tar.gz && \
tar -zxvf osm-3s_v*.tar.gz && \
cd osm-3s_v* && \
./configure CXXFLAGS="-O2" --prefix=$EXEC_DIR && \
make install
COPY scripts/init_seamap.sh /bin/init.sh
RUN chmod a+x /bin/init.sh
CMD /bin/init.sh