GithubHelp home page GithubHelp logo

isabella232 / az-iot-edge-tick Goto Github PK

View Code? Open in Web Editor NEW

This project forked from azure-samples/az-iot-edge-tick

0.0 0.0 0.0 17 KB

This is the TICK stack sandbox, converted for Azure IoT Edge

License: MIT License

Dockerfile 100.00%

az-iot-edge-tick's Introduction

page_type languages products description urlFragment
sample
docker
docker-compose
azure
azure-iot-hub
azure-iot-edge
This is the TICK stack sandbox, converted for Azure IoT Edge
az-iot-edge-tick

TICK on the Azure IoT Edge

This is the TICK stack sandbox, converted for Azure IoT Edge.

Contents

File/folder Description
docker-compose.yml The docker-compose file that builds and runs this solution.
deployment.template.json The IoT Edge deployment manifest template that generates the solution manifest.
.env The solution .env file that holds all the solution environment variable values
modules The modules that this solution contains.
config The configuration that the solution modules will use during the container image build step.
.gitignore Define what to ignore at commit time.
CONTRIBUTING.md Guidelines for contributing to the sample.
README.md This README file.
LICENSE The license for the sample.

Prerequisites

This is an Azure IoT Edge application that you can build and publish using VS Code with the IoT Edge extensions. For more information on how to use Visual Studio Code to develop and debug modules for Azure IoT Edge you can read here.

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

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.

When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

az-iot-edge-tick's People

Contributors

microsoft-github-operations[bot] avatar microsoftopensource avatar paloukari 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.