Skip to content

valer-cara/meshsim-node-p2pd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Testing the current code locally

The flow was kept similar to the current matrix-org/meshsim instructions.

# Step 1: Get all pieces together

mkdir /tmp/meshsim
cd /tmp/meshsim

git clone https://github.com/valer-cara/meshsim-node-p2pd
git clone https://github.com/valer-cara/meshsim
git clone https://github.com/valer-cara/go-libp2p-daemon

docker build -t p2pd-meshsim -f ./meshsim-node-p2pd/Dockerfile .

docker network create --driver bridge mesh
HOST_IP=$(docker network inspect mesh -f "{{(index .IPAM.Config 0).Gateway}}")

# Step 2: Run

cd meshsim
pip install -r requirements.txt
./meshsim.py --node-provider libp2p $HOST_IP

Now meshsim is running on http://localhost:3000

Gotchas:

Add your nodes, wait for them to connect. Click Bootstrap before being able to send messages to ensure all nodes are properly instructed to peer according to the visible topology.

About

Docker build for meshsim-node for p2pd

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published