This is a work in progress, so code is :lava:
Nodejs LTS (I tested it on v8.11.3 and v10.14.1) I recommend nvm
That's alotta dependencies, I know. technically you don't need
if you're not going to run the test harness locally. so there is that :)
$ git clone https://github.com/livepeer/test-harness.git $ cd test-harness $ npm install
examples/local.js, note that in the
true. note that this will use
docker-compose upto run instead of docker-swarm. this is easier to debug for smallish setups locally.
important edit the
livepeerBinaryPathvalue to the livepeer binary you'd like to test. this has to be built for linux
node examples/local.jsto fire up the test-harness.
thats it. now you got a running setup. note that in the
distfolder there will be a folder for this experiment, which will contain the docker-compose generated. this will have the port forwarding for each node and should be accessible at your dev machine's
GCP integrated Test-harness
docker-machineGoogle driver uses Application Default Credentials to get authorization credentials for use in calling Google APIs. follow https://cloud.google.com/sdk/docs/#deb to
gcloud auth login
now you should have
gcloudand ready to spin up instances, if you're having issues , let me know (open an issue or buzz me at discord @Yahya#0606 )
there is a ready made example in
/examples/index.js, Change the test
nameand run in
node examples/index.jswhich will spin up a docker cluster of 2 hosts, with livepeer containers and
geth with protocolready to go
this isn't complete yet. but it's functioning . checkout this example along with the comments in the code to get an idea of how to use it.