diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..6a0b3ae --- /dev/null +++ b/Dockerfile @@ -0,0 +1,27 @@ +FROM java:7u65 +MAINTAINER Bikash Agrawal + +ADD nifi-0.0.1-SNAPSHOT-bin.tar.gz . + +ADD logback.xml . +RUN mv -f logback.xml ./nifi-0.0.1-SNAPSHOT/conf + + +VOLUME ["/output", "/flowconf", "/flowrepo", "/contentrepo", "/databaserepo", "/provenancerepo"] + +RUN sed -i 's/\.\/flowfile_repository/\/flowrepo/g' ./nifi-0.0.1-SNAPSHOT/conf/nifi.properties +RUN sed -i 's/\.\/content_repository/\/contentrepo/g' ./nifi-0.0.1-SNAPSHOT/conf/nifi.properties +RUN sed -i 's/\.\/conf\/flow\.xml\.gz/\/flowconf\/flow.xml.gz/' ./nifi-0.0.1-SNAPSHOT/conf/nifi.properties +RUN sed -i 's/\.\/conf\/archive/\/flowconf\/archive/' ./nifi-0.0.1-SNAPSHOT/conf/nifi.properties +RUN sed -i 's/\.\/database_repository/\/databaserepo/g' ./nifi-0.0.1-SNAPSHOT/conf/nifi.properties +RUN sed -i 's/\.\/provenance_repository/\/provenancerepo/g' ./nifi-0.0.1-SNAPSHOT/conf/nifi.properties + + +# web port +EXPOSE 8080 + +# listen port for web listening processor +EXPOSE 8081 + +WORKDIR nifi-0.0.1-SNAPSHOT +ENTRYPOINT ["bin/nifi.sh"] \ No newline at end of file diff --git a/data/stock.json b/data/stock.json new file mode 100644 index 0000000..4c7367a --- /dev/null +++ b/data/stock.json @@ -0,0 +1,94 @@ +{ + "data": [ + { + "id": "304466804484872", + "t": "GOOG", + "e": "NASDAQ", + "l": "694.45", + "l_fix": "694.45", + "l_cur": "694.45", + "s": "0", + "ltt": "4:00PM EST", + "lt": "Jan 15, 4:00PM EST", + "lt_dts": "2016-01-15T16:00:02Z", + "c": "-20.27", + "c_fix": "-20.27", + "cp": "-2.84", + "cp_fix": "-2.84", + "ccol": "chr", + "pcls_fix": "714.72" + }, + { + "id": "22144", + "t": "AAPL", + "e": "NASDAQ", + "l": "97.05", + "l_fix": "97.05", + "l_cur": "97.05", + "s": "0", + "ltt": "4:00PM EST", + "lt": "Jan 15, 4:00PM EST", + "lt_dts": "2016-01-15T16:00:01Z", + "c": "-2.47", + "c_fix": "-2.47", + "cp": "-2.48", + "cp_fix": "-2.48", + "ccol": "chr", + "pcls_fix": "99.52" + }, + { + "id": "663137", + "t": "GS", + "e": "NYSE", + "l": "155.64", + "l_fix": "155.64", + "l_cur": "155.64", + "s": "0", + "ltt": "7:53PM EST", + "lt": "Jan 15, 7:53PM EST", + "lt_dts": "2016-01-15T19:53:40Z", + "c": "-5.75", + "c_fix": "-5.75", + "cp": "-3.56", + "cp_fix": "-3.56", + "ccol": "chr", + "pcls_fix": "161.39" + }, + { + "id": "542031669134556", + "t": "HDP", + "e": "NASDAQ", + "l": "16.57", + "l_fix": "16.57", + "l_cur": "16.57", + "s": "0", + "ltt": "4:00PM EST", + "lt": "Jan 15, 4:00PM EST", + "lt_dts": "2016-01-15T16:00:01Z", + "c": "-0.64", + "c_fix": "-0.64", + "cp": "-3.72", + "cp_fix": "-3.72", + "ccol": "chr", + "pcls_fix": "17.21" + }, + { + "id": "655693", + "t": "SBUX", + "e": "NASDAQ", + "l": "58.00", + "l_fix": "58.00", + "l_cur": "58.00", + "s": "0", + "ltt": "4:00PM EST", + "lt": "Jan 15, 4:00PM EST", + "lt_dts": "2016-01-15T16:00:01Z", + "c": "-0.98", + "c_fix": "-0.98", + "cp": "-1.66", + "cp_fix": "-1.66", + "ccol": "chr", + "pcls_fix": "58.98" + } + ] +} \ No newline at end of file