forked from luigiselmi/flink-kafka-consumer
-
Notifications
You must be signed in to change notification settings - Fork 4
/
sc4-monitor.dockerfile
26 lines (22 loc) · 1.22 KB
/
sc4-monitor.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
# Docker file for the FCD traffic Monitoring. The application is part of the BDE SC4 Pilot.
# It connects to a Kafka topic, sends the data to an R server to map match the coordinates
# of vehicles to the road segments and then aggregates the vehicles speed to calculate the
# average speed in each road segment. Finally the data is sent to Elasticsearch (Flink sink).
# 1) Build an image using this docker file. Run the following docker command
#
# $ docker build -t bde2020/pilot-sc4-monitoring:v0.10.0 .
#
# 2) Run a container and submit the application to the Flink Job Manager.
#
# docker run --rm --name fcd-flink-app --link flink-master:flink-master -it bde2020/pilot-sc4-monitoring:v0.1.0 /bin/bash
# Pull the base image
FROM bde2020/flink-maven-template:1.4.0-hadoop2.7
MAINTAINER Luigi Selmi <[email protected]>
# Install network tools (ifconfig, netstat, ping, ip)
RUN apt-get update && \
apt-get install -y net-tools && \
apt-get install -y iputils-ping && \
apt-get install -y iproute2
ENV FLINK_APPLICATION_JAR_NAME pilot-sc4-monitoring-0.10.0-SNAPSHOT-jar-with-dependencies
ENV FLINK_APPLICATION_MAIN_CLASS eu.bde.sc4pilot.flink.FlinkFcdConsumerElasticsearch
ENV FLINK_APPLICATION_ARGS "--topic taxi --window 5"