ChainSafe / fvm-toolkit

FVM Development Toolkit
2 stars 1 forks source link

Network Management - Local #23

Open boorich opened 1 year ago

boorich commented 1 year ago

It uses containerised node + miner to serve a local devnet. No prerequisites are needed to install.

Technical scope Implement the following commands for the local devnet:

stonecharioteer commented 1 year ago

It would be great if we could also configure a non-local containerd daemon for this, should someone want to use their laptop to work but use a remote machine for the docker stuff.

LesnyRumcajs commented 1 year ago

@stonecharioteer I believe this should always be possible with socket forwarding via SSH. Would we need some additional steps for that?

morrigan commented 1 year ago

@stonecharioteer I believe this should always be possible with socket forwarding via SSH. Would we need some additional steps for that?

Good question. @stonecharioteer ?

stonecharioteer commented 1 year ago

We wouldn't need to really do an ssh tunnel. The server-side would just need to enable remote daemon connections, which is what stuff like portainer does.

If we need to open ssh tunnels, one idea I was that the "types of connections" we configure for our CLI would live in a config file, perhaps living in the ~/.config/fvm-toolkit folder, which could then store stuff like a pre-connect command, that would ensure the ssh tunnel is opened. Again, this is only if really necessary.

The reason I wanted this is because I was looking at the Lotus system requirements. and not everyone would have a laptop like that, especially not with disk sizes. I also noticed a comment in our slack about having to resize a Droplet for something related to this just yesterday.