Mercurial > code > home > repos > homeauto
annotate service/rfid_pn532_py/makefile @ 1462:2b29f14eb6bd
try new graph+view widget
Ignore-this: d5f9c5dc52f04324368716ba2f604fdb
darcs-hash:44e85a5c075ef73c34a58deaa3a3c1e8390dae52
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Sun, 24 Nov 2019 00:01:00 -0800 |
parents | 6900a284724e |
children |
rev | line source |
---|---|
1215
b48f1ecbc078
copy rest of rfid service from the first try. fix some crashes in tags.py
drewp <drewp@bigasterisk.com>
parents:
1207
diff
changeset
|
1 SERVICE=rfid_pn532_py |
b48f1ecbc078
copy rest of rfid service from the first try. fix some crashes in tags.py
drewp <drewp@bigasterisk.com>
parents:
1207
diff
changeset
|
2 JOB=rfid |
b48f1ecbc078
copy rest of rfid service from the first try. fix some crashes in tags.py
drewp <drewp@bigasterisk.com>
parents:
1207
diff
changeset
|
3 PORT=10012 |
b48f1ecbc078
copy rest of rfid service from the first try. fix some crashes in tags.py
drewp <drewp@bigasterisk.com>
parents:
1207
diff
changeset
|
4 RUNHOST=frontdoor |
b48f1ecbc078
copy rest of rfid service from the first try. fix some crashes in tags.py
drewp <drewp@bigasterisk.com>
parents:
1207
diff
changeset
|
5 |
1207 | 6 pyfreefare-build-x86/nfc.py: Dockerfile.pyfreefare.x86 pyfreefare/nfc.h pyfreefare/freefare.h build_ctypes_modules.sh |
1206 | 7 docker build --file Dockerfile.pyfreefare.x86 -t pyfreefare_build_x86:latest . |
8 docker run --rm --net=host \ | |
9 -v `pwd`/pyfreefare:/opt/pyfreefare \ | |
10 -v `pwd`/pyfreefare-build-x86:/opt/pyfreefare-build \ | |
11 --name pyfreefare_build pyfreefare_build_x86:latest | |
1204
c4aed42cfaa3
tags module and pynfc build steps
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
12 |
1207 | 13 pyfreefare-build-pi/nfc.py: Dockerfile.pyfreefare.pi pyfreefare/nfc.h pyfreefare/freefare.h build_ctypes_modules.sh |
14 docker build --file Dockerfile.pyfreefare.pi -t pyfreefare_build_pi:latest . | |
15 docker run --rm --net=host \ | |
16 -v `pwd`/pyfreefare:/opt/pyfreefare \ | |
17 -v `pwd`/pyfreefare-build-pi:/opt/pyfreefare-build \ | |
18 --name pyfreefare_build pyfreefare_build_pi:latest | |
19 | |
1204
c4aed42cfaa3
tags module and pynfc build steps
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
20 #pyfreefare/nfc.py pyfreefare/freefare.py |
c4aed42cfaa3
tags module and pynfc build steps
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
21 test_tags: tags.py tags_test.py |
1207 | 22 PYTHONPATH=pyfreefare-build-x86 nose2-3 tags_test |
23 | |
24 | |
1215
b48f1ecbc078
copy rest of rfid service from the first try. fix some crashes in tags.py
drewp <drewp@bigasterisk.com>
parents:
1207
diff
changeset
|
25 build_image_x86: pyfreefare-build-x86/nfc.py pyfreefare-build-x86/freefare.py Dockerfile.x86 |
b48f1ecbc078
copy rest of rfid service from the first try. fix some crashes in tags.py
drewp <drewp@bigasterisk.com>
parents:
1207
diff
changeset
|
26 rm -rf tmp_ctx |
b48f1ecbc078
copy rest of rfid service from the first try. fix some crashes in tags.py
drewp <drewp@bigasterisk.com>
parents:
1207
diff
changeset
|
27 mkdir -p tmp_ctx |
b48f1ecbc078
copy rest of rfid service from the first try. fix some crashes in tags.py
drewp <drewp@bigasterisk.com>
parents:
1207
diff
changeset
|
28 cp -a Dockerfile.x86 ../../lib/*.py *.py *.txt *.html pyfreefare-build-x86 tmp_ctx |
b48f1ecbc078
copy rest of rfid service from the first try. fix some crashes in tags.py
drewp <drewp@bigasterisk.com>
parents:
1207
diff
changeset
|
29 docker build --network=host --file Dockerfile.x86 -t bang6:5000/$(SERVICE)_x86:latest tmp_ctx |
b48f1ecbc078
copy rest of rfid service from the first try. fix some crashes in tags.py
drewp <drewp@bigasterisk.com>
parents:
1207
diff
changeset
|
30 docker push bang6:5000/$(SERVICE)_x86:latest |
b48f1ecbc078
copy rest of rfid service from the first try. fix some crashes in tags.py
drewp <drewp@bigasterisk.com>
parents:
1207
diff
changeset
|
31 |
b48f1ecbc078
copy rest of rfid service from the first try. fix some crashes in tags.py
drewp <drewp@bigasterisk.com>
parents:
1207
diff
changeset
|
32 build_image_pi: pyfreefare-build-pi/nfc.py pyfreefare-build-pi/freefare.py Dockerfile.pi |
b48f1ecbc078
copy rest of rfid service from the first try. fix some crashes in tags.py
drewp <drewp@bigasterisk.com>
parents:
1207
diff
changeset
|
33 rm -rf tmp_ctx |
b48f1ecbc078
copy rest of rfid service from the first try. fix some crashes in tags.py
drewp <drewp@bigasterisk.com>
parents:
1207
diff
changeset
|
34 mkdir -p tmp_ctx |
b48f1ecbc078
copy rest of rfid service from the first try. fix some crashes in tags.py
drewp <drewp@bigasterisk.com>
parents:
1207
diff
changeset
|
35 cp -a Dockerfile.pi ../../lib/*.py *.py *.txt *.html pyfreefare-build-pi tmp_ctx |
b48f1ecbc078
copy rest of rfid service from the first try. fix some crashes in tags.py
drewp <drewp@bigasterisk.com>
parents:
1207
diff
changeset
|
36 docker build --network=host --file Dockerfile.pi -t bang6:5000/$(SERVICE)_pi:latest tmp_ctx |
b48f1ecbc078
copy rest of rfid service from the first try. fix some crashes in tags.py
drewp <drewp@bigasterisk.com>
parents:
1207
diff
changeset
|
37 docker push bang6:5000/$(SERVICE)_pi:latest |
b48f1ecbc078
copy rest of rfid service from the first try. fix some crashes in tags.py
drewp <drewp@bigasterisk.com>
parents:
1207
diff
changeset
|
38 |
b48f1ecbc078
copy rest of rfid service from the first try. fix some crashes in tags.py
drewp <drewp@bigasterisk.com>
parents:
1207
diff
changeset
|
39 run_local_x86: build_image_x86 |
1235 | 40 docker run -it --rm --privileged --net=host --hostname=testhost --cap-add=SYS_PTRACE --name $(JOB)_run bang6:5000/$(SERVICE)_x86:latest python3 rfid.py -v |
1215
b48f1ecbc078
copy rest of rfid service from the first try. fix some crashes in tags.py
drewp <drewp@bigasterisk.com>
parents:
1207
diff
changeset
|
41 |
1207 | 42 |
43 # test on pi: | |
44 # docker pull bang6:5000/rfid_pn532_py_pi:latest && docker run -it --rm --privileged --name rfid_shell bang6:5000/rfid_pn532_py_pi:latest nose2-3 tags_test | |
1215
b48f1ecbc078
copy rest of rfid service from the first try. fix some crashes in tags.py
drewp <drewp@bigasterisk.com>
parents:
1207
diff
changeset
|
45 |
1235 | 46 fresh_sudo: |
47 sudo -v | |
48 redeploy: fresh_sudo build_image_pi | |
1215
b48f1ecbc078
copy rest of rfid service from the first try. fix some crashes in tags.py
drewp <drewp@bigasterisk.com>
parents:
1207
diff
changeset
|
49 sudo /my/proj/ansible/playbook -l $(RUNHOST) -t rfid |
b48f1ecbc078
copy rest of rfid service from the first try. fix some crashes in tags.py
drewp <drewp@bigasterisk.com>
parents:
1207
diff
changeset
|
50 supervisorctl -s http://$(RUNHOST):9001/ restart $(JOB)_$(PORT) |
1241
6900a284724e
start dev mode nginx config. not working yet
drewp <drewp@bigasterisk.com>
parents:
1235
diff
changeset
|
51 |
6900a284724e
start dev mode nginx config. not working yet
drewp <drewp@bigasterisk.com>
parents:
1235
diff
changeset
|
52 nginx_local: |
6900a284724e
start dev mode nginx config. not working yet
drewp <drewp@bigasterisk.com>
parents:
1235
diff
changeset
|
53 nginx -c `pwd`/local.conf |
6900a284724e
start dev mode nginx config. not working yet
drewp <drewp@bigasterisk.com>
parents:
1235
diff
changeset
|
54 |