-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
30 lines (28 loc) · 1016 Bytes
/
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
FROM maven:latest
MAINTAINER Olivier Barais <barais@irisa.fr>
RUN apt-get update \
&& apt-get upgrade -y\
&& apt-get install -y apt-utils git python-plumbum zip\
&& cd /opt \
&& git clone https://github.com/DIVERSIFY-project/SMART-GH.git \
&& cd /opt/SMART-GH/ \
&& git checkout undertow_cached \
&& python generate_config.py --city dublin --sensors GoogleTraffic,NoiseTube,OzoneDetect --modes car,bike,walk,scooter,motorcycle \
&& wget http://thingml.org/dist/diversify/dublin-gh.zip \
&& unzip dublin-gh.zip -d dublin-gh \
&& cd /opt/SMART-GH/ \
&& mvn clean \
&& mvn -DskipTests install \
&& cd daemon-wservice \
&& mvn package \
&& cp -r ../maps /tmp \
&& cp -r ../*.properties /tmp \
&& cp -r ../sensors-config-files/*.config /tmp \
&& cp -r target/*.jar /tmp \
&& cp -r target/*.war /tmp \
&& apt-get --purge autoremove -y maven git\
&& rm -rf /opt/SMART-GH/ \
&& cd / \
&& echo "cd tmp; java -jar restful-graphhopper-1.0-swarm.jar" > run.sh \
&& chmod a+x /run.sh
CMD /run.sh