Giter Club home page Giter Club logo

lva-gateway's Introduction

Azure IoT Central live video analytics gateway module

This is an IoT Central gateway module for Azure Media Services LVA edge. The full documentation which shows you how to modify the IoT Edge module code for the live video analytics (LVA) modules can be found at UPDATE_LINK

Prerequisites

To complete the steps in this tutorial, you need:

Clone the repository

If you haven't already cloned the repository, use the following command to clone it to a suitable location on your local machine:

git clone https://github.com/UPDATE_LINK/lva-gateway

Open the cloned lva-gateway repository folder with VS Code.

Edit the deployment.amd64.json file

  1. If you haven't already done so, create a folder called storage in the local copy of the lva-gateway repository. This folder is ignored by Git so as to prevent you accidentally checking in any confidential information.
  2. Copy the file deployment.amd64.json from the setup folder to the storage folder.
  3. In VS Code, open the the storage/deployment.amd64.json file.
  4. Edit the registryCredentials section to add your Azure Container Registry credentials.
  5. Edit the LvaEdgeGatewayModule module section to add the name of your image and your AMS account name in the env:amsAccountName:value.
  6. See the Create a live video analytics application in Azure IoT Central UPDATE_LINK for more information about how to complete the configuration.

Build the code

  1. Before you try to build the code for the first time, run the install command. This command installs the required packages and runs the setup scripts.

    npm install
    
  2. Edit the ./setup/imageConfig.json file to update the image named based on your container registry name:

    {
        "arch": "amd64",
        "imageName": "[Server].azurecr.io/lva-edge-gateway",
        "versionTag": "latest"
    }
    
  3. Use the VS Code terminal to run the docker login command. Use the same credentials that you provided in the deployment manifest for the modules.

    docker login [your server].azurecr.io
    
  4. Use the VS Code terminal to run the commands to build the image and push it to your docker container registry. The build scripts deploy the image to your container registry. The output in the VS Code terminal window shows you if the build is successful.

    npm run dockerbuild
    npm run dockerpush
    

lva-gateway's People

Contributors

sseiber avatar uriel-kluk avatar dependabot[bot] avatar dominicbetts avatar kishoriot avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.