oomplay

CICD license crates.io release

Playground manager for oomstore.

Usage

``` $ oomplay --help Playground manager for oomstore

USAGE: oomplay

OPTIONS: -h, --help Print help information -V, --version Print version information

SUBCOMMANDS: init Initialize playgrounds stop Stop playgrounds completion Output shell completion code ```

Example

$ oomplay init redis [*] 🎮 Initializing playground 'redis' ... [*] ♻️ Reseting store ... [*] 🛠️ Creating container 'oomplay-redis' ... [*] 🕹️ Starting container 'oomplay-redis' ... [*] ❇️ Store is ready [*] ✨ All playgrounds initialized successfully!

$ oomplay init -f config.yaml [*] 🎮 Initializing playground 'offline-store' ... [*] ♻️ Reseting store ... [*] 🛠️ Creating container 'oomplay-postgres' ... [*] 🕹️ Starting container 'oomplay-postgres' ... [*] ⏳ Wait for the store to be ready ... [*] ❇️ Store is ready [*] 🎮 Initializing playground 'online-store' ... [*] ♻️ Reseting store ... [*] 📦 Pulling image 'redis:alpine' ... [*] 🛠️ Creating container 'oomplay-redis' ... [*] 🕹️ Starting container 'oomplay-redis' ... [*] ❇️ Store is ready [*] 🎮 Initializing playground 'metadata-store' ... [*] ♻️ Reseting store ... [*] 🛠️ Creating container 'oomplay-mysql' ... [*] 🕹️ Starting container 'oomplay-mysql' ... [*] ⏳ Wait for the store to be ready ... [*] ⏳ Wait for the store to be ready ... [*] ⏳ Wait for the store to be ready ... [*] ⏳ Wait for the store to be ready ... [*] ⏳ Wait for the store to be ready ... [*] ⏳ Wait for the store to be ready ... [*] ❇️ Store is ready [*] ✨ All playgrounds initialized successfully!

The config.yaml used above: ```yaml online-store: redis: host: 127.0.0.1 port: 6379 password: redis database: 0

offline-store: postgres: host: 127.0.0.1 port: 5432 user: postgres password: postgres database: oomstore

metadata-store: mysql: host: 127.0.0.1 port: 3306 user: mysql password: mysql database: oomstore ```

Run oomplay --help to get detailed usage.

Installation

On macOS

You can install oomplay with Homebrew:

brew tap oom-ai/oomplay brew install oomplay

From binaries

Pre-built versions of oomplay for various architectures are available at Github release page.

From source

oomplay is also published on crates.io. If you have Rust toolchains (nightly) installed you can use cargo to install it from source:

cargo install --locked oomplay

If you want the latest version, clone this repository and run cargo install --path ..