view 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
line wrap: on
line source

JOB=tiny_screen
PORT=10013

TAG=bang6:5000/${JOB}_x86:latest
TAG_PI=bang6:5000/${JOB}_pi:latest

push_x86:
	docker push ${TAG}
push_pi:
	docker push ${TAG_PI}

build_x86:
	rm -rf tmp_ctx
	mkdir -p tmp_ctx
	cp -a Dockerfile ../../lib/*.py *.py *.txt *.html anim font tmp_ctx
	docker build --network=host -t ${TAG} tmp_ctx
	rm -rf tmp_ctx

build_image: build_x86 push_x86

build_pi:
	rm -rf tmp_ctx
	mkdir -p tmp_ctx
	cp -a Dockerfile.pi ../../lib/*.py *.py *.txt *.html anim font tmp_ctx
	docker build -f Dockerfile.pi --network=host -t ${TAG_PI} tmp_ctx
	rm -rf tmp_ctx

build_image_pi: build_pi push_pi

shell:
	docker run --rm -it --cap-add SYS_PTRACE --net=host $(TAG) /bin/sh

local_run: build_x86
	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

# try pi kernel 20181112-1