Skip to content

Latest commit

 

History

History
94 lines (53 loc) · 1.84 KB

README.md

File metadata and controls

94 lines (53 loc) · 1.84 KB

Using just to start local deployment

Local CA needs to be provisioned. Just installed.

To list all available commands:

just RUN_ENV=multi

There are two local environments available:

  • multi_ne - no entitlements
  • multi - entitlements are enabled

Environment name always needs to be provided through RUN_ENV variable.

Config, build and start in background:

just RUN_ENV=multi config-and-start

Stop:

just RUN_ENV=multi stop

See colored logs in realtime (Ctrl-C to exit):

just RUN_ENV=multi tail-logs

Just build:

just RUN_ENV=multi build

Just start with existing config and binary:

just RUN_ENV=multi start

There are run version of commands that wait for Ctrl-C and stop nodes on exit:

just RUN_ENV=multi config-and-run
just RUN_ENV=multi config-run-tail
just RUN_ENV=multi run
just RUN_ENV=multi run-and-tail

Installing just

brew install just

Installing protoc and Buf

brew install protobuf@3
brew link --overwrite protobuf@3
go install github.com/bufbuild/buf/cmd/buf@latest

There are addition install steps for go tools in ./node/README.md

Building protobufs

Protobufs are generated for go and typescript

cd proto
yarn buf:generate

cd node
go generate -v -x protocol/gen.go

Setting up local CA for TLS

First create the CA and register it with Mac OS:

scripts/register-ca.sh

Then generate the TLS certificates for the node:

scripts/generate-ca.sh

Running River Tests

Run client tests:

yarn csb:turbo

Run node tests:

cd node
go test -v ./...

Clean Build after Yarn Install or Branch Switching

Build is incremental, as such it may get confused when packages are updated or branches are switched.

Clean build artificats and rebuild:

yarn csb:clean
yarn csb:build