mkdir build
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF ..
cmake --build .
docker build -f Dockerfile.server -t michaelkuc6/chainlinkmesh-server .
docker run --network=host --cap-add=NET_ADMIN -it michaelkuc6/chainlink-server
git config core.hooksPath .githooks
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