Mercurial > code > home > repos > homeauto
comparison service/tinyScreen/makefile @ 393:5fc79536885a
fix screen timing corruption, hopefully. add py client
Ignore-this: 53f42a30bbc5d9047658fef6ff79637c
author | drewp@bigasterisk.com |
---|---|
date | Sat, 19 Jan 2019 12:12:06 -0800 |
parents | c146fa2bc7d4 |
children | a471688fb7b7 |
comparison
equal
deleted
inserted
replaced
392:79d041273e26 | 393:5fc79536885a |
---|---|
2 PORT=10013 | 2 PORT=10013 |
3 | 3 |
4 TAG=bang6:5000/${JOB}_x86:latest | 4 TAG=bang6:5000/${JOB}_x86:latest |
5 TAG_PI=bang6:5000/${JOB}_pi:latest | 5 TAG_PI=bang6:5000/${JOB}_pi:latest |
6 | 6 |
7 push: | 7 push_x86: |
8 docker push ${TAG} | 8 docker push ${TAG} |
9 push_pi: | |
10 docker push ${TAG_PI} | |
9 | 11 |
10 build_x86: | 12 build_x86: |
11 rm -rf tmp_ctx | 13 rm -rf tmp_ctx |
12 mkdir -p tmp_ctx | 14 mkdir -p tmp_ctx |
13 cp -a Dockerfile ../../lib/*.py *.py *.txt *.html anim font tmp_ctx | 15 cp -a Dockerfile ../../lib/*.py *.py *.txt *.html anim font tmp_ctx |
14 docker build --network=host -t ${TAG} tmp_ctx | 16 docker build --network=host -t ${TAG} tmp_ctx |
15 rm -rf tmp_ctx | 17 rm -rf tmp_ctx |
16 | 18 |
17 build_image: build_x86 push | 19 build_image: build_x86 push_x86 |
18 | 20 |
19 build_pi: | 21 build_pi: |
20 rm -rf tmp_ctx | 22 rm -rf tmp_ctx |
21 mkdir -p tmp_ctx | 23 mkdir -p tmp_ctx |
22 cp -a Dockerfile.pi ../../lib/*.py *.py *.txt *.html anim font tmp_ctx | 24 cp -a Dockerfile.pi ../../lib/*.py *.py *.txt *.html anim font tmp_ctx |
23 docker build -f Dockerfile.pi --network=host -t ${TAG_PI} tmp_ctx | 25 docker build -f Dockerfile.pi --network=host -t ${TAG_PI} tmp_ctx |
24 rm -rf tmp_ctx | 26 rm -rf tmp_ctx |
25 | 27 |
26 build_image_pi: build_pi push | 28 build_image_pi: build_pi push_pi |
27 | 29 |
28 shell: | 30 shell: |
29 docker run --rm -it --cap-add SYS_PTRACE --net=host $(TAG) /bin/sh | 31 docker run --rm -it --cap-add SYS_PTRACE --net=host $(TAG) /bin/sh |
30 | 32 |
31 local_run: build_x86 | 33 local_run: build_x86 |
32 docker run --rm -it --net=host -e DISPLAY=$(DISPLAY) -e HOME=$(HOME) -v $(HOME):$(HOME) -v /tmp/.X11-unix:/tmp/.X11-unix -v `pwd`/index.html:/opt/index.html bang6:5000/tiny_screen_x86:latest python ./tiny_screen.py -v -x | 34 docker run --rm -it --net=host -e DISPLAY=$(DISPLAY) -e HOME=$(HOME) -v $(HOME):$(HOME) -v /tmp/.X11-unix:/tmp/.X11-unix -v `pwd`/index.html:/opt/index.html bang6:5000/tiny_screen_x86:latest python ./tiny_screen.py -v -x |
35 | |
36 # try pi kernel 20181112-1 |