Skip to content

Latest commit

 

History

History
114 lines (92 loc) · 4.69 KB

README.md

File metadata and controls

114 lines (92 loc) · 4.69 KB

📯 herald - Announce discoveries from other heralds

This container may be run locally using Docker, pushed to a Docker registry, and published to any Open Horizon exchange. The core Python in this service is from https://github.com/MegaMosquito/discovery

Status

Supports amd64 Architecture Docker Pulls

Supports arm Architecture Docker Pulls

Supports arm64 Architecture Docker Pulls

Service discovery

Service variables

  • HERALD_PERIOD - seconds between updates; defaults to 30
  • LOG_LEVEL - specify level of logging; default info; options include (debug and none)
  • DEBUG - force debug settings; boolean; default false

How To Use

Copy this repository, change to the herald directory, then use the make command; see below:

% mkdir ~/gitdir
% cd ~/gitdir
% git clone http://github.com/dcmartin/open-horizon
% cd open-horizon/herald
% make
...
{
  "herald": {
    "date": 1554314848,
    "pid": 30
  },
  "date": 1554314847,
  "hzn": {
    "agreementid": "",
    "arch": "",
    "cpus": 0,
    "device_id": "",
    "exchange_url": "",
    "host_ips": [
      ""
    ],
    "organization": "",
    "ram": 0,
    "pattern": null
  },
  "config": {
    "log_level": "info",
    "debug": false,
    "period": "30",
    "port": 5960,
    "services": null
  },
  "service": {
    "label": "herald",
    "version": "0.0.3"
  }
}

Changelog & Releases

Releases are based on Semantic Versioning, and use the format of MAJOR.MINOR.PATCH. In a nutshell, the version will be incremented based on the following:

  • MAJOR: Incompatible or major changes.
  • MINOR: Backwards-compatible new features and enhancements.
  • PATCH: Backwards-compatible bugfixes and package updates.

Authors & contributors

David C Martin ([email protected])