annotate service/collector/makefile @ 354:818b7b410575

patch rdflib_jsonld for new rdflib Ignore-this: feb5ca55efddb57a76162794e1a452a0
author drewp@bigasterisk.com
date Mon, 03 Sep 2018 01:32:48 -0700
parents 7716b1810d6c
children ee74dc3b58fb
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
351
7716b1810d6c reasoning & collector move into docker images
drewp@bigasterisk.com
parents:
diff changeset
1 JOB=collector
7716b1810d6c reasoning & collector move into docker images
drewp@bigasterisk.com
parents:
diff changeset
2 PORT=9072
7716b1810d6c reasoning & collector move into docker images
drewp@bigasterisk.com
parents:
diff changeset
3
7716b1810d6c reasoning & collector move into docker images
drewp@bigasterisk.com
parents:
diff changeset
4 TAG=bang6:5000/${JOB}_x86:latest
7716b1810d6c reasoning & collector move into docker images
drewp@bigasterisk.com
parents:
diff changeset
5
7716b1810d6c reasoning & collector move into docker images
drewp@bigasterisk.com
parents:
diff changeset
6 build_image:
7716b1810d6c reasoning & collector move into docker images
drewp@bigasterisk.com
parents:
diff changeset
7 rm -rf tmp_ctx
7716b1810d6c reasoning & collector move into docker images
drewp@bigasterisk.com
parents:
diff changeset
8 mkdir -p tmp_ctx
7716b1810d6c reasoning & collector move into docker images
drewp@bigasterisk.com
parents:
diff changeset
9 cp -a Dockerfile ../../lib/*.py ../../lib/twisted_sse_demo *.py req* tmp_ctx
7716b1810d6c reasoning & collector move into docker images
drewp@bigasterisk.com
parents:
diff changeset
10 docker build --network=host -t ${TAG} tmp_ctx
7716b1810d6c reasoning & collector move into docker images
drewp@bigasterisk.com
parents:
diff changeset
11 docker push ${TAG}
7716b1810d6c reasoning & collector move into docker images
drewp@bigasterisk.com
parents:
diff changeset
12 rm -r tmp_ctx
7716b1810d6c reasoning & collector move into docker images
drewp@bigasterisk.com
parents:
diff changeset
13
7716b1810d6c reasoning & collector move into docker images
drewp@bigasterisk.com
parents:
diff changeset
14 shell:
7716b1810d6c reasoning & collector move into docker images
drewp@bigasterisk.com
parents:
diff changeset
15 docker run --rm -it --cap-add SYS_PTRACE --net=host ${TAG} /bin/bash
7716b1810d6c reasoning & collector move into docker images
drewp@bigasterisk.com
parents:
diff changeset
16
7716b1810d6c reasoning & collector move into docker images
drewp@bigasterisk.com
parents:
diff changeset
17 local_run:
7716b1810d6c reasoning & collector move into docker images
drewp@bigasterisk.com
parents:
diff changeset
18 docker run --rm -it -p ${PORT}:${PORT} \
7716b1810d6c reasoning & collector move into docker images
drewp@bigasterisk.com
parents:
diff changeset
19 -v `pwd`:/mnt \
7716b1810d6c reasoning & collector move into docker images
drewp@bigasterisk.com
parents:
diff changeset
20 --net=host \
7716b1810d6c reasoning & collector move into docker images
drewp@bigasterisk.com
parents:
diff changeset
21 ${TAG} \
7716b1810d6c reasoning & collector move into docker images
drewp@bigasterisk.com
parents:
diff changeset
22 python /mnt/sse_collector.py -v
354
818b7b410575 patch rdflib_jsonld for new rdflib
drewp@bigasterisk.com
parents: 351
diff changeset
23
818b7b410575 patch rdflib_jsonld for new rdflib
drewp@bigasterisk.com
parents: 351
diff changeset
24 local_run_strace:
818b7b410575 patch rdflib_jsonld for new rdflib
drewp@bigasterisk.com
parents: 351
diff changeset
25 docker run --rm -it -p ${PORT}:${PORT} \
818b7b410575 patch rdflib_jsonld for new rdflib
drewp@bigasterisk.com
parents: 351
diff changeset
26 -v `pwd`:/mnt \
818b7b410575 patch rdflib_jsonld for new rdflib
drewp@bigasterisk.com
parents: 351
diff changeset
27 --net=host \
818b7b410575 patch rdflib_jsonld for new rdflib
drewp@bigasterisk.com
parents: 351
diff changeset
28 --cap-add SYS_PTRACE \
818b7b410575 patch rdflib_jsonld for new rdflib
drewp@bigasterisk.com
parents: 351
diff changeset
29 ${TAG} \
818b7b410575 patch rdflib_jsonld for new rdflib
drewp@bigasterisk.com
parents: 351
diff changeset
30 strace -f -tts 200 python /mnt/sse_collector.py -v