Start with the rust section of Getting Started
We have a rust-specific Makefile. Run make
to run all cargo
based steps.
You need a few external dependencies to re-build the proto & grpc stubs.
cargo install protoc-gen-prost
cargo install protoc-gen-prost-crate
cargo install protoc-gen-tonic
To regenerate protos, run
make generate
Run:
make dockerbuild
Or if you want an image for amd64 run:
make dockerbuild amd64
Running the dockerfile for now:
docker run -d -t --rm --name sidecar -p 50051:50051 -e RUST_BACKTRACE=1 docker.io/lekko/sidecar:latest
The binary runs with the following args:
Lekko sidecar that provides the host application with config updates from Lekko and performs local evaluation
Usage: sidecar [OPTIONS]
Options:
-l, --lekko-addr <LEKKO_ADDR> Address to communicate with lekko backend.. [default: https://grpc.lekko.dev]
-b, --bind-addr <BIND_ADDR> Address to communicate with lekko backend.. [default: 0.0.0.0:50051]
-p, --proxy-mode Enabling proxy mode will run server-side evaluation instead of local evaluation
-r, --repo-path <REPO_PATH> Absolute path to the directory on disk that contains the .git folder. Provide this flag to turn on bootstrap behavior
-h, --help Print help information
-V, --version Print version information