blob: d90c9a47455034b6d0904ec5235d656894bebd26 [file] [log] [blame]
Matteo Scandolofc4b37b2017-02-02 12:18:47 -08001CONTAINER_NAME = xos-sample-gui-extension
2CONTAINER_IMAGE_NAME = xosproject/$(CONTAINER_NAME)
3REDIS_HOST = xos.dev
4
5run_container: build_container
6 docker run -p 4001:4000 --name $(CONTAINER_NAME) -d $(CONTAINER_IMAGE_NAME)
7
8build_container:
9 docker build -t $(CONTAINER_IMAGE_NAME) .
10
11onboard:
12 redis-cli -h $(REDIS_HOST) PUBLISH XOSComponent ''
13
14#onboard:
15# redis-cli -h $(REDIS_HOST) PUBLISH Onboard '{"app": "$(CONTAINER_NAME)", "files": ["http://xos.dev:4001/spa/vendor.js", "http://xos.dev:4001/spa/app.js"]}'
16rm:
17 docker stop $(CONTAINER_NAME)
18 docker rm $(CONTAINER_NAME)
19
20rmi:
21 docker rmi $(CONTAINER_IMAGE_NAME)
22
23enter:
24 docker exec -it $(CONTAINER_NAME) bash