ion icon indicating copy to clipboard operation
ion copied to clipboard

Docker Mainnet or Testnet

Open KarouBlou opened this issue 3 years ago • 7 comments

Is there a way to run the Docker version of ION on testnet?

KarouBlou avatar Jun 10 '21 10:06 KarouBlou

Right now the scripts are setup to only run on mainnet, this is more of a resourcing issue than a technical issue. PRs are welcome!

thehenrytsai avatar Jun 17 '21 21:06 thehenrytsai

+1 would be nice so that it's easier to deploy.

marek5050 avatar Jun 10 '22 14:06 marek5050

Thanks for the up-vote, I will mark this as a high priority to work on next!

thehenrytsai avatar Jun 10 '22 18:06 thehenrytsai

Hello @thehenrytsai , thank you for reconsidering this item. One of our engineers has been trying to get ION working for over a week and it's been a battle. Their machine doesn't have enough space to download the whole bitcoin ledger and it hasn't been simple to get it deployed on an kubernetes cluster either.

I'm thinking if there was a less resource intensive way of deploying locally it'll help others with testing and development before committing to mainnet.

I found the tl/update-docker-support branch (https://github.com/decentralized-identity/ion/tree/tl/update-docker-support) which tried to do something similar, however it seems a bit out of date.

Appreciate you looking into this.

marek5050 avatar Jun 10 '22 18:06 marek5050

I would be happy to work with your engineers on getting an ION node setup on either docker or kubernetes, and making the outcome available for the community to benefit from. Feel free to open issues/discussions as needed.

Unfortunately the full bitcoin ledger is ~400GB (as of June 2022), and needs to be downloaded independently if you are aiming for a trustless setup, I'd imagine that's the most time consuming part of the setup. I believe you can prune 95%+ of the ledger data once you've downloaded them, but the cost of download is still there. I am all ears to suggestions on improving this part (and other parts) of the setup.

Beyond the storage requirement, I'd imagine installing directly on the local machine is probably the easier than running a node in a kubernetes cluster.

Testnet is less than 1/10th of the mainnet size, so having docker support there would certainly help with experimentation. I will focus on improving the docker setup support first.

thehenrytsai avatar Jun 10 '22 19:06 thehenrytsai

#278 revamped the docker-compose file to make things much simpler and now supports testnet, would love for someone to test it out to validate the setup!

thehenrytsai avatar Jun 24 '22 21:06 thehenrytsai

I believe you can prune 95%+ of the ledger data once you've downloaded them, but the cost of download is still there. I am all ears to suggestions on improving this part (and other parts) of the setup.

I am still wondering whether there is any update on local machine efficient storage solution for local Testnet. Downloading of bitcoin history transaction is time-consuming, and kill my storage..

xushijie avatar Jun 18 '23 09:06 xushijie