Skip to content

Latest commit

 

History

History
47 lines (40 loc) · 1.51 KB

README.md

File metadata and controls

47 lines (40 loc) · 1.51 KB

Smart Shopping Navigator

Smart Shopping Navigator is the demonstration application where it combines Cloud IoT Core and Cloud Machine Learning Engine.

Requirements

  • Google Cloud Platform billing enabled project
    • Enable the following APIs
      • Google Cloud Storage JSON API
      • Cloud IoT API
      • BigQuery API
      • Cloud Machine Learning Engine
      • Kubernetes Engine API
  • Raspberry Pi, Camera module and touch display

Setup

1. Name device ID for a new device and register it to Cloud IoT Core registory

2. Assemble Raspberry Pi device (see Setup Raspberry Pi for more details)

3. Built and push Docker container

$ export PROJCT_ID="REPLACE WITH YOUR GCP PROJECT ID HERE"
$ cd gke
$ docker build -t gcr.io/${PROJECT_ID}/iost-worker . && docker push gcr.io/${PROJECT_ID}/iost-worker

4. Create GKE cluster

$ gcloud container clusters create [CLUSTER_NAME] --zone [COMPUTE_ZONE]
$ gcloud container clusters get-credentials [CLUSTER_NAME] --zone [COMPUTE_ZONE]

See Creating cluster for more details.

5. Deploy workload

$ cd gke
$ cp deployment.yml.example deployment.yml
  Edit depoyment.yml
$ kubectl create -f deployment.yml

6. Deploy dashboard App Engine application

$ cd dashboard
$ gcloud app deploy --version v1 app.yaml