Skip to content

heeckhau/AVADO-DNP-Zcash

Repository files navigation

AVADO ZCash node

Use: see wiki

Development

Prerequisites

  • A WiFi or VPN connection to your AVADO box
  • IPFS client installed (optional)

Installation

AVADO uses the AVADO SDK to build packages.

npm i -g https://github.com/AvadoDServer/AVADOSDK.git

Testing locally

you can modify the Dockerfile in the build folder and test it locally using docker-compose build and docker-compose up until it works as expected.

Building

avadosdk build will build the package and upload to your AVADO box's IPFS server.

it will output the IPFS hash that you can use in your package

Manifest hash : /ipfs/QmNf8sEHdzD5EbBDxd3HBFpq5zBW2PziJ4vqfa8G7xgVJm

Installing and testing

Go to your avado DappStore page at http://my.avado/#/installer

enter the above hash in the input field and press enter.

You will see the package detail screen - where you can install the package on your box and test it out.

Renaming your package

You want to change the package name you need to change the package name in the following locations dappnode_package.json --> modify the name field. docker-compose.yml --> modify the service name and the image field accordingly.

Publishing

You can distribute the IPFS hash of your package to other AVADO users without requiring anyone's permission - or if you want to have your package added to the DappStore - contact the AVADO team in the Telegram chat.

Some random tips

  • the docker-compose file creates a mount point /data where you can store data that has to be saved on a seperate volume to be retained after a package restart.
  • you can bump the package version number using avadosdk patch
  • upon installing - the AVADO will create a DNS entry called my.<packagename> that resolvves to the docker container's IP address. This is convenient if you want to open a web UI from the package. If you install this package - the hostname my.avado-dnp-template.public.dappnode.eth will resolve to its IP address.
  • in the AVADO repo - there are several packages published that you can take a look at to get inspired on how to fiddle with parameters.
  • The installer currently requires that there is only one docker image per package. So you need to put all your stuff in one container.
  • If you change the avatar.png image (needs to be 300x300 pixels) - you need to first upload it to IPFS using the command ipfs add avatar.png --api /ip4/80.208.229.228/tcp/5001 and put the resulting IPFS hash in the field avatar in dappnode_package.json.
  • If you want to publish for others to use - feel free to use our IPFS node to upload your package to: avadosdk build --provider http://80.208.229.228:5001

update flow & tagging your repo

This is a suggested flow to upgrade your package when you want to release a new version:

avadosdk increase patch
avadosdk build --provider http://80.208.229.228:5001
git add dappnode_package.json docker-compose.yml releases.json
git commit -m"new release"
git push
npx release-it

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published