dakl / particle-relay-hub-handler

Handler of commands for the relay hub

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Development

Run locally

python run.py

Deployment

Build & push

docker build -t dakl/particle-relay-hub-handler .
docker push dakl/particle-relay-hub-handler

Run Container

docker run \
-e RELAY_HUB_DEVICE_ID=(echo $RELAY_HUB_DEVICE_ID) \
-e LEGO_HOUSE_DEVICE_ID=(echo $LEGO_HOUSE_DEVICE_ID) \
-e PARTICLE_ACCESS_TOKEN=(echo $PARTICLE_ACCESS_TOKEN) \
dakl/particle-relay-hub-handler

Run in swarm

docker service create \
--replicas 1 \
--name particle-relay-hub-api \
-e RELAY_HUB_DEVICE_ID=(echo $RELAY_HUB_DEVICE_ID) \
-e LEGO_HOUSE_DEVICE_ID=(echo $LEGO_HOUSE_DEVICE_ID) \
-e PARTICLE_ACCESS_TOKEN=(echo $PARTICLE_ACCESS_TOKEN) \
dakl/particle-relay-hub-handler

CI

Builds and pushes the image. Webhook for continuous deployment is TBD.

About

Handler of commands for the relay hub


Languages

Language:Python 95.7%Language:Makefile 2.6%Language:Dockerfile 1.7%