Skip to content

ChAINLINK-Mesh/chainlinkmesh-network

Repository files navigation

CMake Build Status

Building

Native Toolchain

mkdir build
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF .. 
cmake --build .

Docker

docker build -f Dockerfile.server -t michaelkuc6/chainlinkmesh-server .

How to Run

Server

docker run --network=host --cap-add=NET_ADMIN -it michaelkuc6/chainlink-server

Development

GitHooks

git config core.hooksPath .githooks

Tests

Can either be run as user, in which case, will fail to fully setup network in server/public-protocol test:

cd build
ctest --output-on-failure

Alternatively, the command can be given the CAP_NET_ADMIN and CAP_NET_BIND_SERVICE capability. This allows the test to correctly set up and tear down the WireGuard interface:

sudo -E capsh --caps='cap_setpcap,cap_setuid,cap_setgid+ep cap_net_admin,cap_net_bind_service+eip' --keep=1 --user="$USER" --addamb="cap_net_admin,cap_net_bind_service" --shell=/usr/bin/ctest -- --output-on-failure

About

A mesh networking auto-configuration layer built on top of Wireguard

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published