Mercurial > code > home > repos > homeauto
annotate 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 |
rev | line source |
---|---|
388
c146fa2bc7d4
tinyscreen can flip images and render news
drewp@bigasterisk.com
parents:
diff
changeset
|
1 JOB=tiny_screen |
c146fa2bc7d4
tinyscreen can flip images and render news
drewp@bigasterisk.com
parents:
diff
changeset
|
2 PORT=10013 |
c146fa2bc7d4
tinyscreen can flip images and render news
drewp@bigasterisk.com
parents:
diff
changeset
|
3 |
c146fa2bc7d4
tinyscreen can flip images and render news
drewp@bigasterisk.com
parents:
diff
changeset
|
4 TAG=bang6:5000/${JOB}_x86:latest |
c146fa2bc7d4
tinyscreen can flip images and render news
drewp@bigasterisk.com
parents:
diff
changeset
|
5 TAG_PI=bang6:5000/${JOB}_pi:latest |
c146fa2bc7d4
tinyscreen can flip images and render news
drewp@bigasterisk.com
parents:
diff
changeset
|
6 |
393
5fc79536885a
fix screen timing corruption, hopefully. add py client
drewp@bigasterisk.com
parents:
388
diff
changeset
|
7 push_x86: |
388
c146fa2bc7d4
tinyscreen can flip images and render news
drewp@bigasterisk.com
parents:
diff
changeset
|
8 docker push ${TAG} |
393
5fc79536885a
fix screen timing corruption, hopefully. add py client
drewp@bigasterisk.com
parents:
388
diff
changeset
|
9 push_pi: |
5fc79536885a
fix screen timing corruption, hopefully. add py client
drewp@bigasterisk.com
parents:
388
diff
changeset
|
10 docker push ${TAG_PI} |
388
c146fa2bc7d4
tinyscreen can flip images and render news
drewp@bigasterisk.com
parents:
diff
changeset
|
11 |
c146fa2bc7d4
tinyscreen can flip images and render news
drewp@bigasterisk.com
parents:
diff
changeset
|
12 build_x86: |
c146fa2bc7d4
tinyscreen can flip images and render news
drewp@bigasterisk.com
parents:
diff
changeset
|
13 rm -rf tmp_ctx |
c146fa2bc7d4
tinyscreen can flip images and render news
drewp@bigasterisk.com
parents:
diff
changeset
|
14 mkdir -p tmp_ctx |
c146fa2bc7d4
tinyscreen can flip images and render news
drewp@bigasterisk.com
parents:
diff
changeset
|
15 cp -a Dockerfile ../../lib/*.py *.py *.txt *.html anim font tmp_ctx |
c146fa2bc7d4
tinyscreen can flip images and render news
drewp@bigasterisk.com
parents:
diff
changeset
|
16 docker build --network=host -t ${TAG} tmp_ctx |
c146fa2bc7d4
tinyscreen can flip images and render news
drewp@bigasterisk.com
parents:
diff
changeset
|
17 rm -rf tmp_ctx |
c146fa2bc7d4
tinyscreen can flip images and render news
drewp@bigasterisk.com
parents:
diff
changeset
|
18 |
393
5fc79536885a
fix screen timing corruption, hopefully. add py client
drewp@bigasterisk.com
parents:
388
diff
changeset
|
19 build_image: build_x86 push_x86 |
388
c146fa2bc7d4
tinyscreen can flip images and render news
drewp@bigasterisk.com
parents:
diff
changeset
|
20 |
c146fa2bc7d4
tinyscreen can flip images and render news
drewp@bigasterisk.com
parents:
diff
changeset
|
21 build_pi: |
c146fa2bc7d4
tinyscreen can flip images and render news
drewp@bigasterisk.com
parents:
diff
changeset
|
22 rm -rf tmp_ctx |
c146fa2bc7d4
tinyscreen can flip images and render news
drewp@bigasterisk.com
parents:
diff
changeset
|
23 mkdir -p tmp_ctx |
c146fa2bc7d4
tinyscreen can flip images and render news
drewp@bigasterisk.com
parents:
diff
changeset
|
24 cp -a Dockerfile.pi ../../lib/*.py *.py *.txt *.html anim font tmp_ctx |
c146fa2bc7d4
tinyscreen can flip images and render news
drewp@bigasterisk.com
parents:
diff
changeset
|
25 docker build -f Dockerfile.pi --network=host -t ${TAG_PI} tmp_ctx |
c146fa2bc7d4
tinyscreen can flip images and render news
drewp@bigasterisk.com
parents:
diff
changeset
|
26 rm -rf tmp_ctx |
c146fa2bc7d4
tinyscreen can flip images and render news
drewp@bigasterisk.com
parents:
diff
changeset
|
27 |
393
5fc79536885a
fix screen timing corruption, hopefully. add py client
drewp@bigasterisk.com
parents:
388
diff
changeset
|
28 build_image_pi: build_pi push_pi |
388
c146fa2bc7d4
tinyscreen can flip images and render news
drewp@bigasterisk.com
parents:
diff
changeset
|
29 |
c146fa2bc7d4
tinyscreen can flip images and render news
drewp@bigasterisk.com
parents:
diff
changeset
|
30 shell: |
c146fa2bc7d4
tinyscreen can flip images and render news
drewp@bigasterisk.com
parents:
diff
changeset
|
31 docker run --rm -it --cap-add SYS_PTRACE --net=host $(TAG) /bin/sh |
c146fa2bc7d4
tinyscreen can flip images and render news
drewp@bigasterisk.com
parents:
diff
changeset
|
32 |
c146fa2bc7d4
tinyscreen can flip images and render news
drewp@bigasterisk.com
parents:
diff
changeset
|
33 local_run: build_x86 |
c146fa2bc7d4
tinyscreen can flip images and render news
drewp@bigasterisk.com
parents:
diff
changeset
|
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 |
393
5fc79536885a
fix screen timing corruption, hopefully. add py client
drewp@bigasterisk.com
parents:
388
diff
changeset
|
35 |
5fc79536885a
fix screen timing corruption, hopefully. add py client
drewp@bigasterisk.com
parents:
388
diff
changeset
|
36 # try pi kernel 20181112-1 |