Skip to content

Commit

Permalink
Merge pull request #117 from hoprnet/robertkiel/fix-url
Browse files Browse the repository at this point in the history
Various enhancements
  • Loading branch information
NumberFour8 authored Feb 26, 2024
2 parents 9d598e6 + 130cb17 commit 5e73f32
Show file tree
Hide file tree
Showing 9 changed files with 52 additions and 5,145 deletions.
13 changes: 5 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
# DAppNodeSDK release directories
/build_*/
/build/
/.direnv/
/node_modules/

# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*
# Nix OS
/.direnv

# Node.js
/node_modules/
893 changes: 0 additions & 893 deletions .yarn/releases/yarn-4.1.0.cjs

This file was deleted.

3 changes: 0 additions & 3 deletions .yarnrc.yml

This file was deleted.

45 changes: 44 additions & 1 deletion DEVELOPING.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Repository structure


There are two repositories:

- official: https://github.com/dappnode/DAppNodePackage-Hopr
Expand All @@ -16,5 +15,49 @@ Tha development happens on the internal repository and it has two branches:

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

```sh
git clone [email protected]:hoprnet/DAppNodePackage-Hopr.git
```

Build a package with (requires Node.js)

```sh
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
```

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](bypass_signature_check.png)

# Useful links

- [Official documentation](https://docs.dappnode.io/docs/dev)
- [http://my.dappnode/public-packages](http://my.dappnode/public-packages) lists installed public packages
- [http://my.dappnode/package-manifest/hopr.public.dappnode.eth](http://my.dappnode/package-manifest/hopr.public.dappnode.eth) gets the internal view of the package metadata

When running with the [DMS package](http://my.dappnode/installer/dnp/dms.dnp.dappnode.eth) (Grafana, Loki, Prometheus):

- [http://prometheus.dms.dappnode:9090/targets](http://prometheus.dms.dappnode:9090/targets) lists Prometheus targets. Make sure the package's target is available

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](http://my.dappnode/package-manifest/hopr.public.dappnode.eth)
Binary file added bypass_signature_check.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions dappnode_package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
],
"links": {
"homepage": "https://hoprnet.org/",
"ui": "http://admin.hopr.public.dappnode/?apiEndpoint=http://node.hopr.public.dappnode:3001",
"api": "http://node.hopr.public.dappnode:3001",
"ui": "http://admin.hopr.public.dappnode/?apiEndpoint=http://hopr.public.dappnode:3001",
"api": "http://hopr.public.dappnode:3001/swagger-ui/index.html",
"docs": "https://docs.hoprnet.org"
},
"repository": {
Expand Down
9 changes: 0 additions & 9 deletions package.json

This file was deleted.

2 changes: 1 addition & 1 deletion prometheus-targets.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"__metrics_path__": "/api/v3/node/metrics"
},
"targets": [
"node.hopr.public.dappnode:3001"
"hopr.public.dappnode:3001"
]
}
]
Loading

0 comments on commit 5e73f32

Please sign in to comment.