annotate service/tinyScreen/makefile @ 388:c146fa2bc7d4

tinyscreen can flip images and render news Ignore-this: 72c89530e71d4c6f2550bb4deeccd807
author drewp@bigasterisk.com
date Wed, 02 Jan 2019 18:40:16 -0800
parents
children 5fc79536885a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
c146fa2bc7d4 tinyscreen can flip images and render news
drewp@bigasterisk.com
parents:
diff changeset
7 push:
c146fa2bc7d4 tinyscreen can flip images and render news
drewp@bigasterisk.com
parents:
diff changeset
8 docker push ${TAG}
c146fa2bc7d4 tinyscreen can flip images and render news
drewp@bigasterisk.com
parents:
diff changeset
9
c146fa2bc7d4 tinyscreen can flip images and render news
drewp@bigasterisk.com
parents:
diff changeset
10 build_x86:
c146fa2bc7d4 tinyscreen can flip images and render news
drewp@bigasterisk.com
parents:
diff changeset
11 rm -rf tmp_ctx
c146fa2bc7d4 tinyscreen can flip images and render news
drewp@bigasterisk.com
parents:
diff changeset
12 mkdir -p tmp_ctx
c146fa2bc7d4 tinyscreen can flip images and render news
drewp@bigasterisk.com
parents:
diff changeset
13 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
14 docker build --network=host -t ${TAG} tmp_ctx
c146fa2bc7d4 tinyscreen can flip images and render news
drewp@bigasterisk.com
parents:
diff changeset
15 rm -rf tmp_ctx
c146fa2bc7d4 tinyscreen can flip images and render news
drewp@bigasterisk.com
parents:
diff changeset
16
c146fa2bc7d4 tinyscreen can flip images and render news
drewp@bigasterisk.com
parents:
diff changeset
17 build_image: build_x86 push
c146fa2bc7d4 tinyscreen can flip images and render news
drewp@bigasterisk.com
parents:
diff changeset
18
c146fa2bc7d4 tinyscreen can flip images and render news
drewp@bigasterisk.com
parents:
diff changeset
19 build_pi:
c146fa2bc7d4 tinyscreen can flip images and render news
drewp@bigasterisk.com
parents:
diff changeset
20 rm -rf tmp_ctx
c146fa2bc7d4 tinyscreen can flip images and render news
drewp@bigasterisk.com
parents:
diff changeset
21 mkdir -p tmp_ctx
c146fa2bc7d4 tinyscreen can flip images and render news
drewp@bigasterisk.com
parents:
diff changeset
22 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
23 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
24 rm -rf tmp_ctx
c146fa2bc7d4 tinyscreen can flip images and render news
drewp@bigasterisk.com
parents:
diff changeset
25
c146fa2bc7d4 tinyscreen can flip images and render news
drewp@bigasterisk.com
parents:
diff changeset
26 build_image_pi: build_pi push
c146fa2bc7d4 tinyscreen can flip images and render news
drewp@bigasterisk.com
parents:
diff changeset
27
c146fa2bc7d4 tinyscreen can flip images and render news
drewp@bigasterisk.com
parents:
diff changeset
28 shell:
c146fa2bc7d4 tinyscreen can flip images and render news
drewp@bigasterisk.com
parents:
diff changeset
29 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
30
c146fa2bc7d4 tinyscreen can flip images and render news
drewp@bigasterisk.com
parents:
diff changeset
31 local_run: build_x86
c146fa2bc7d4 tinyscreen can flip images and render news
drewp@bigasterisk.com
parents:
diff changeset
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