Skip to content

lekkodev/sidecar

Repository files navigation

Lekko Sidecar

Development

Start with the rust section of Getting Started

We have a rust-specific Makefile. Run make to run all cargo based steps.

Regenerating protos

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

Building docker files

Run:

make dockerbuild

Or if you want an image for amd64 run:

make dockerbuild amd64

Deploying

Running the dockerfile for now:

docker run -d -t --rm --name sidecar -p 50051:50051 -e RUST_BACKTRACE=1 docker.io/lekko/sidecar:latest

Command-line args

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages