GithubHelp home page GithubHelp logo

az-iot-edge-tick's Introduction

TICK on the Azure IoT Edge

To deploy the TICK stack on the Azure IoT Edge, you need to build and push the module containers, and push the deployment manifest provided in this repo.

This repo is based on the official TICK sandbox repo and has been lightly modified to make it compatible with the VS Code development extension structure for Azure IoT Edge.

To build and push and deploy

There are two different ways to build push and deploy this stack on the edge:

1. Using docker-compose and az cli

You can use the provided docker-compose.yml file to build and push the module containers:

Clone this repo:

git clone https://github.com/paloukari/az-iot-edge-tick
cd az-iot-edge-tick

Edit .env file to set your container registry:

vim .env

Build and push the containers:

docker-compose build
docker-compose push

Edit the generated deployment manifest to match the pushed container names, registry and registry credentials:

vim config/deployment.amd64.json

Push the manifest:

az iot edge set-modules --device-id [device id] --hub-name [hub name] --content ./config/deployment.amd64.json

2. Using VS Code

This repo is compatible with the VS Code Azure IoT Edge extension structure.

  1. Clone this repo and open the project:
git clone https://github.com/paloukari/az-iot-edge-tick
cd az-iot-edge-tick
code .

Make sure you have the Azure IoT Edge extension installed.

  1. Edit .env file and set your container registry and credentials.

  2. Hit F1 and type Azure IoT Edge: Generate IoT Edge deployment manifest

  3. Hit F1 and type Azure IoT Edge: Build and push IoT Edge Solution

  4. In the Azure IoT Hub VS Code pane, right click on a device and select Create deployment for single device

Fire up the IoT Edge Device on your local environment and test the TICK stack

Get a device connection string and run

docker run -it -d --privileged -p 8888:8888 -e connectionString='YOUR DEVICE CONNECTION STRING' toolboc/azure-iot-edge-device-container

This command will deploy and start the TICK stack inside a single container

Launch Chronograf at: http://localhost:8888

To see real time docker diagnostics, navigate to the hosts list and open the telegraf-getting-started

az-iot-edge-tick's People

Contributors

paloukari avatar

Stargazers

 avatar  avatar

Watchers

 avatar  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.