Crate cockroach_deploy

Source
Expand description

§cockroach_deploy

Basic library for deploying a simple local cockroach cluster with an optional CLI included.

crates.io Docs

§About

The main purpose for this library is quickly deploying a basic cockroachdb cluster locally. You will need a local Kubernetes cluster running for this to work. I have only tested this with minikube, but others may work as well. Additionally, you will need a local config file for setting cockroachdb variables.

§Installation & Usage

if using the CLI:

cargo install cockroach_deploy

usage:

cockroach_deploy_cli --help

if using the library:

cargo add cockroach_deploy

§Basic Usage

let config = CockroachConfig::new_from_config("cockroach_config.toml")?;
config.init_cockroach()?;
config.delete_cockroach()?;

§Additional Note

This is pretty niche, and adapated for my use-case so your mileage may vary. If you are interested and struggling to get it to work, open an issue and I’ll do what I can to help adapt it.

Modules§

config