Skip to content

DAppNode Package Development

Álex edited this page Nov 30, 2018 · 5 revisions

DAppNode Package Development

  1. Upload the avatar to IPFS

A square aspect ratio is recommended, with transparent background and 640px of width.

/ipfs/QmTC6dQATsoy2X9We5x7bVEZnUnYs3XLnbfeF62QkeUXTw
  1. Create a docker-compose.yml
version: '3.4'
services:
    ipfsconsortium.dnp.dappnode.eth:
        build: .
        image: 'ipfsconsortium.dnp.dappnode.eth:0.0.1'

You can also do the build of the image without the docker-compose.yml and do it manually with docker build.

Dockerfile

  1. Build the image:
docker-compose -f docker-compose.yml build
  1. Save the docker image
docker save ipfsconsortium.dnp.dappnode.eth:0.0.1 | xz -e9vT0 > ipfsconsortium.dnp.dappnode.eth_0.0.1.tar.xz
  1. Upload the docker image to IPFS
/ipfs/QmZ6JNTxBFjT28aBtmnbj5BHjmsbXWRn7hjAZ2zncxKE4p
  1. Generate the manifest (dappnode_package.json)
{
  "name": "ipfsconsortium.dnp.dappnode.eth",
  "version": "0.0.1",
  "description": "IPFSConsortium version for DAppNode. IPFS consortium deamon scripts wrapped as an npm module",
  "avatar": "/ipfs/QmTC6dQATsoy2X9We5x7bVEZnUnYs3XLnbfeF62QkeUXTw",
  "type": "service",
  "image": {
    "path": "ipfsconsortium.dnp.dappnode.eth_0.0.1.tar.xz",
    "hash": "/ipfs/QmZ6JNTxBFjT28aBtmnbj5BHjmsbXWRn7hjAZ2zncxKE4p",
    "size": 23743208
  },
  "author": "Stefaan Ponnet",
  "contributors": [
    "Eduardo Antuña <eduadiez@gmail.com> (https://github.com/eduadiez)"
  ],
  "keywords": [
    "Consortium",
    "IPFS",
    "ENS"
  ],
  "homepage": {
    "homepage": "https://github.com/ipfsconsortium/IPFSConsortiumProxy#readme"
  },
  "repository": {
    "type": "git",
    "url": "git+https://sponnet@github.com/ipfsconsortium/IPFSConsortiumProxy.git"
  },
  "bugs": {
    "url": "https://github.com/ipfsconsortium/IPFSConsortiumProxy/issues"
  },
  "license": "GPL-3.0"
}

Please take in account that the package version is not the internal version of the package you want to upload. We use Aragon package manager, and it only lets starting with version 1 and increment one by one. Valid initial versions are 1.0.0, 0.1.0 or 0.0.1

  1. Upload the manifest to IPFS
/ipfs/QmYJsfqGFeKSMz3584yEKoidTkvMiC4CTxwAa4kMVyqgsm
  1. Now you can use /ipfs/QmYJsfqGFeKSMz3584yEKoidTkvMiC4CTxwAa4kMVyqgsm to install your package, you only need to write on the package instarller and click install
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.