Giter Site home page Giter Site logo

heeckhau / avado-dnp-prysm-validator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from avadodserver/avado-dnp-prysm-validator

0.0 1.0 0.0 44.61 MB

Prysm ETH2 package for AVADO

Dockerfile 3.84% Shell 12.82% HTML 8.05% CSS 4.10% JavaScript 62.83% Sass 8.36%

avado-dnp-prysm-validator's Introduction

AVADO Prysm ETH2 validator package

Build

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 increase patch
  • upon installing - the AVADO will create a DNS entry called my.<packagename> that resolves 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

avado-dnp-prysm-validator's People

Contributors

sponnet avatar heeckhau avatar github-actions[bot] avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.