Matteo Scandolo | fc4b37b | 2017-02-02 12:18:47 -0800 | [diff] [blame] | 1 | CONTAINER_NAME = xos-sample-gui-extension |
| 2 | CONTAINER_IMAGE_NAME = xosproject/$(CONTAINER_NAME) |
| 3 | REDIS_HOST = xos.dev |
| 4 | |
| 5 | run_container: build_container |
| 6 | docker run -p 4001:4000 --name $(CONTAINER_NAME) -d $(CONTAINER_IMAGE_NAME) |
| 7 | |
| 8 | build_container: |
| 9 | docker build -t $(CONTAINER_IMAGE_NAME) . |
| 10 | |
| 11 | onboard: |
| 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"]}' |
| 16 | rm: |
| 17 | docker stop $(CONTAINER_NAME) |
| 18 | docker rm $(CONTAINER_NAME) |
| 19 | |
| 20 | rmi: |
| 21 | docker rmi $(CONTAINER_IMAGE_NAME) |
| 22 | |
| 23 | enter: |
| 24 | docker exec -it $(CONTAINER_NAME) bash |