- A WiFi or VPN connection to your AVADO box
- IPFS client installed (optional)
AVADO uses the AVADO SDK to build packages.
npm i -g https://github.com/AvadoDServer/AVADOSDK.git
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.
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
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.
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.
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.
- 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 increase 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 hostnamemy.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 fieldavatar
indappnode_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
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