changeset 360:2efa246a65e7

move reasoning into docker Ignore-this: 3a9f51b99650a2b39f5e9e71cf0daf04
author drewp@bigasterisk.com
date Sun, 09 Sep 2018 04:01:44 -0700
parents b3959142d7d8
children 01817264cc3d
files service/reasoning/Dockerfile service/reasoning/input/startup.n3 service/reasoning/makefile
diffstat 3 files changed, 23 insertions(+), 18 deletions(-) [+]
line wrap: on
line diff
--- a/service/reasoning/Dockerfile	Sun Sep 09 04:00:09 2018 -0700
+++ b/service/reasoning/Dockerfile	Sun Sep 09 04:01:44 2018 -0700
@@ -6,7 +6,7 @@
 RUN pip install -r requirements.txt
 
 COPY twisted_sse_demo ./twisted_sse_demo
-COPY *.n3 *.py req* ./
+COPY *.n3 *.py *.html req* ./
 COPY input ./input
 
 EXPOSE 9071
--- a/service/reasoning/input/startup.n3	Sun Sep 09 04:00:09 2018 -0700
+++ b/service/reasoning/input/startup.n3	Sun Sep 09 04:01:44 2018 -0700
@@ -6,24 +6,29 @@
 # oneshot was just a sequence of updates and not a reverse-direction
 # request).
 
-<http://bang:9059/graph>     is :source of :reasoning; rdfs:label "bang arduino" .
-<http://kitchen:9059/graph>  is :source of :reasoning; rdfs:label "kitchen pi" .
-<http://living:9059/graph>   is :source of :reasoning; rdfs:label "living room pi" .
-<http://slash:9059/graph>    is :source of :reasoning; rdfs:label "slash arduino" .
-<http://bed:9059/graph>      is :source of :reasoning; rdfs:label "bed pi" .
-<http://brace6:9059/graph>   is :source of :reasoning; rdfs:label "brace arduino" .
-<http://changing:9059/graph> is :source of :reasoning; rdfs:label "changing pi" .
-<http://bang:9075/graph>     is :source of :reasoning; rdfs:label "env" .
+# UNUSED- see sse_collector
+<http://bang:9059/graph>       is :source of :reasoning; rdfs:label "bang arduino" .
+<http://garage:9059/graph>     is :source of :reasoning; rdfs:label "garage pi" .
+<http://kitchen:9059/graph>    is :source of :reasoning; rdfs:label "kitchen pi" .
+<http://living:9059/graph>     is :source of :reasoning; rdfs:label "living room pi" .
+<http://slash:9059/graph>      is :source of :reasoning; rdfs:label "slash arduino" .
+<http://bed:9059/graph>        is :source of :reasoning; rdfs:label "bed pi" .
+<http://brace6:9059/graph>     is :source of :reasoning; rdfs:label "brace arduino" .
+<http://changing:9059/graph>   is :source of :reasoning; rdfs:label "changing pi" .
+<http://frontdoor6:9059/graph> is :source of :reasoning; rdfs:label "frontdoor pi" .
+<http://bang:9075/graph>       is :source of :reasoning; rdfs:label "env" .
 
-<http://bang:9070/graph>     is :source of :reasoning; rdfs:label "wifi usage" .
-<http://bang:9099/graph>     is :source of :reasoning; rdfs:label "trails" .
+<http://bang:9070/graph>       is :source of :reasoning; rdfs:label "wifi usage" .
+<http://bang:9099/graph>       is :source of :reasoning; rdfs:label "trails" .
 
-<http://dash:9095/graph>     is :source of :reasoning; rdfs:label "dash monitor" .
-<http://dash:9107/graph>     is :source of :reasoning; rdfs:label "dash x idle" .
-<http://brace6:9095/graph>   is :source of :reasoning; rdfs:label "brace monitor" .
-<http://brace6:9107/graph>   is :source of :reasoning; rdfs:label "brace x idle" .
-<http://slash:9095/graph>    is :source of :reasoning; rdfs:label "slash monitor" .
-<http://slash:9107/graph>    is :source of :reasoning; rdfs:label "slash x idle" .#
+<http://dash:9095/graph>       is :source of :reasoning; rdfs:label "dash monitor" .
+<http://dash:9107/graph>       is :source of :reasoning; rdfs:label "dash x idle" .
+<http://brace6:9095/graph>     is :source of :reasoning; rdfs:label "brace monitor" .
+<http://brace6:9107/graph>     is :source of :reasoning; rdfs:label "brace x idle" .
+<http://slash:9095/graph>      is :source of :reasoning; rdfs:label "slash monitor" .
+<http://slash:9107/graph>      is :source of :reasoning; rdfs:label "slash x idle" .#
+<http://frontdoor6:9095/graph> is :source of :reasoning; rdfs:label "frontdoor monitor" .
+<http://frontdoor6:9107/graph> is :source of :reasoning; rdfs:label "frontdoor x idle" .
 
 
 # not built yet
--- a/service/reasoning/makefile	Sun Sep 09 04:00:09 2018 -0700
+++ b/service/reasoning/makefile	Sun Sep 09 04:01:44 2018 -0700
@@ -6,7 +6,7 @@
 build_image:
 	rm -rf tmp_ctx
 	mkdir -p tmp_ctx
-	cp -a Dockerfile ../../lib/*.py ../../lib/twisted_sse_demo *.py *.n3 input req* tmp_ctx
+	cp -a Dockerfile ../../lib/*.py ../../lib/twisted_sse_demo *.py *.n3 *.html input req* tmp_ctx
 	rsync -a input tmp_ctx/
 	docker build --network=host -t ${TAG} tmp_ctx
 	docker push ${TAG}