Commit e2033ceb authored by MartinFIT's avatar MartinFIT

ProducerDemo run script

parent 66410996
......@@ -10,11 +10,14 @@ KAFKA_PORT=9092
SPRING_KAFKA_BOOTSTRAP_SERVERS=$VM_IP:$KAFKA_PORT
SPRING_KAFKA_PRODUCER_BOOTSTRAP_SERVERS=$VM_IP:$KAFKA_PORT
DATA_DIR=$PWD/../../PCAP_Input
docker run \
-it \
--rm \
--name producer-demo \
-v "$PWD":/usr/src/app \
-v "$DATA_DIR":/usr/src/app/data \
-v "$HOME/.m2":/root/.m2 \
-w "/usr/src/app/" \
martinfit/maven:3.5.2-jdk-9-slim \
......@@ -23,4 +26,4 @@ docker run \
-Dspring.kafka.bootstrap-servers=$SPRING_KAFKA_BOOTSTRAP_SERVERS \
-Dspring.kafka.producer.bootstrap-servers=$SPRING_KAFKA_PRODUCER_BOOTSTRAP_SERVERS \
-cp producer-demo-1.0-SNAPSHOT.jar \
-jar target/producer-demo-1.0.jar ../../PCAP_Input
\ No newline at end of file
-jar target/producer-demo-1.0.jar data
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment