GithubHelp home page GithubHelp logo

diwise

Main repository for diwise

How to run

docker compose

The docker compose environment assumes that you have modified your hosts file to add local DNS entries for diwise.local and iam.diwise.local. See Preparations below for instructions on how to do this.

Start a composed environment using docker compose with the following command.

docker compose -f deployments/docker/docker-compose.yaml up

Data packets can be ingested using curl or another tool of your choice by posting data to https://diwise.local:8443/api/v0/messages.

To cleanup your environment after testing, run

docker compose -f deployments/docker/docker-compose.yaml down -v --remove-orphans

Observability (o11y)

The composed environment can be run with log, metric and trace aggregation enabled using tools like fluent-bit, loki, otel-collector and tempo. For performance reasons these tools are configured in a separate compose config and must be included explicitly when the environment is started.

docker compose -f deployments/docker/docker-compose.yaml -f deployments/docker/docker-compose.o11y.yaml up

Once started the data collected by these tools will be accessible via https://diwise.local:8443/grafana/

Configuration

On docker compose up, the services will start with MQTT disabled. The recommended way to add configuration parameters is to create a docker-compose.override.yaml file containing user or project specific settings/secrets that should not be pushed to the repo. For extra protection, this file name is added to the .gitignore file to reduce the likelihood that settings are pushed to GitHub.

An example configuration looks like this:

version: '3'
services:

  iot-agent:
    environment:
      MQTT_DISABLED: 'false'
      MQTT_HOST: 'your.mqtt.server'
      MQTT_USER: '<mqtt-user>'
      MQTT_PASSWORD: '<mqtt-password>'
      MQTT_TOPIC_0: '<mqtt-topic>'

And is merged with the default configuration by adding a -f argument to compose like so:

docker compose -f deployments/docker/docker-compose.yaml -f deployments/docker/docker-compose.override.yaml up

Preparations

MacOSX:

Edit your /private/etc/hosts file to include the two lines:

127.0.0.1 diwise.local
127.0.0.1 iam.diwise.local

Then invoke the following command to allow the mappings to take effect:

sudo killall -HUP mDNSResponder

Windows:

Edit your C:\Windows\System32\drivers\etc\hosts file to include the two lines:

127.0.0.1 diwise.local
127.0.0.1 iam.diwise.local

Code Ready Containers

TODO

Kubernetes

TODO

diwise's Projects

diwise doesnโ€™t have any public repositories yet.

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.