-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathDockerfile
78 lines (64 loc) · 2.07 KB
/
Dockerfile
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
76
77
78
FROM library/ubuntu:16.04
MAINTAINER Dmitry Kiselev <[email protected]>
RUN \
apt-get update && \
apt-get install -y \
software-properties-common \
build-essential \
curl \
wget \
git \
unzip \
tar \
ant \
vim \
nano \
parallel \
osmctools && \
rm -rf /var/lib/apt/lists/*
# Java for OSM2World
RUN \
echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | debconf-set-selections && \
add-apt-repository -y ppa:webupd8team/java && \
apt-get update && \
apt-get install -y oracle-java8-installer && \
rm -rf /var/lib/apt/lists/* && \
rm -rf /var/cache/oracle-jdk8-installer
# Define commonly used JAVA_HOME variable
ENV JAVA_HOME /usr/lib/jvm/java-8-oracle
# Install Node js
RUN curl -sL https://deb.nodesource.com/setup_6.x | bash - ;\
apt-get install -y nodejs
WORKDIR /opt
RUN wget https://github.com/AnalyticalGraphicsInc/3d-tiles-tools/archive/master.zip && \
unzip master.zip && \
mv 3d-tiles-tools-master 3d-tiles-tools && \
cd 3d-tiles-tools/tools && \
npm install && \
rm /opt/master.zip && \
cd /opt
RUN wget https://github.com/AnalyticalGraphicsInc/obj2gltf/archive/master.zip && \
unzip master.zip && \
mv obj2gltf-master obj2gltf && \
cd obj2gltf && \
npm install && \
rm /opt/master.zip && \
cd /opt
# Install OSM2World
RUN mkdir /opt/OSM2World && mkdir /opt/OSM2World-release && \
wget https://github.com/kiselev-dv/OSM2World/archive/tiled_out.zip && \
unzip tiled_out.zip && \
mv OSM2World-tiled_out/* OSM2World/ && \
rm tiled_out.zip && \
cd /opt/OSM2World && \
ant release && \
unzip /opt/OSM2World/build/OSM2World-noversion-bin.zip -d /opt/OSM2World-release && \
cd /opt && \
rm -rf /opt/OSM2World/ && \
rm -rf OSM2World-tiled_out && \
mv /opt/OSM2World-release /opt/OSM2World
RUN mkdir /opt/gazetteer && \
wget https://github.com/kiselev-dv/gazetteer/releases/download/Gazetteer-1.9rc4/gazetteer.jar -O /opt/gazetteer/gazetteer.jar
COPY scripts /opt/scripts
WORKDIR /opt/OSM2World
CMD [/bin/bash]