Skip to content

Latest commit

 

History

History
72 lines (47 loc) · 2.67 KB

DEVELOPING.md

File metadata and controls

72 lines (47 loc) · 2.67 KB

Repository structure

There are three repositories:

The internal is a fork of the official one. The testnet repo is configured specifically to use our rotsee testnet

The development happens on the internal repository and it has two branches:

  • develop which contains the edge version, not meant for publishing
  • main which is supposed to be in-sync with the main branch on the official repo

PRs are only meant to be made from the internal repo's main branch to the official repo's main branch.

Development process

Clone the repo

git clone git@github.com:hoprnet/DAppNodePackage-Hopr.git

Build a package with (requires Node.js)

npx @dappnode/dappnodesdk build

This should create output similar to

  ✔ Verify connection
  ✔ Verify connection
  ✔ Create release dir
  ✔ Validate files
  ✔ Copy files
  ✔ Build architecture linux/amd64
  ✔ Upload release to IPFS node
  ✔ Save upload results

  DNP (DAppNode Package) built and uploaded 
  Release hash : /ipfs/QmdZHJPrTJQZRr9gJKhQKXVSVSRf3jdBj6LqbZuZ8MNSWF
  http://my.dappnode/installer/public/%2Fipfs%2FQmdZHJPrTJQZRr9gJKhQKXVSVSRf3jdBj6LqbZuZ8MNSWF

Grafana dashboard upgrades

When upgrading the Grafana dashboards, make sure:

  • the file is called hopr-public-grafana-dashboard.json
  • the uid property is non-empty and starts with hopr-public-

Debugging

When connected to a DAppnode system, follow the link and install the package. If it is a development build, make sure to disable signature verification before installing the package.

howto

Useful links

When running with the DMS package (Grafana, Loki, Prometheus):

Automatic import of Prometheus targets is only available if prometheusTargets and automatic import of Grafana dashboards is only available if grafanaDashboards is present in the observed package manifest.