Deploying prplMesh on PC (dummy)
Raphaël Mélotte edited this page 2021-04-20 15:24:40 +00:00

Build prplmesh using Docker

  1. Download sources and go to prplMesh directory
git clone https://gitlab.com/prpl-foundation/prplmesh/prplMesh.git
cd prplMesh
  1. Build prplMesh using Docker
./docker-builder.sh

prplMesh will be compiled under ./build. You can then use it by running it in Docker.

  1. Run the containers
./docker-runner.sh
  1. Run tests
./tests/test_gw_repeater.sh -f -u user -g gateway-$USER -r repeater1-$USER -r repeater2-$USER -d 7

Debugging

If you want to debug, you can't easily use the test_gw_repeater.sh script because it will run everything without attaching a debugger, and attaching it afterwards may be too late. You need to start the processes one by one:

./build/install/bin/beerocks_transport &
./build/install/bin/beerocks_agent &
gdb ./build/install/bin/beerocks_controller