-
Notifications
You must be signed in to change notification settings - Fork 6
Creating a new section for installing mirrord in docs #94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
b4aca28
3d6364a
dd9f7ee
984a2ab
11d22eb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,9 @@ | ||
| root: ./docs/ | ||
|
|
||
| structure: | ||
| summary: ./SUMMARY.md | ||
| summary: ./SUMMARY.md | ||
|
|
||
| redirects: | ||
| using-mirrord/vscode-extension: installing-mirrord/vscode | ||
| using-mirrord/intellij-plugin: installing-mirrord/intellij | ||
| using-mirrord/wsl: installing-mirrord/wsl | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| --- | ||
| title: Installing mirrord | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Isn't this section duplicative with Quick Start? Why do we need both?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There is duplicated content, but its relevant to both the quickstart and this section too. If someone is looking for more complete instructions than what you would typically find in a quick start, I would expect to find it here. |
||
| description: How to install mirrord on your local machine | ||
| --- | ||
|
|
||
| # Installing mirrord | ||
|
|
||
| mirrord can be installed and used in several ways depending on your development workflow: | ||
|
|
||
| - **[CLI](cli.md)** - Install the mirrord command-line tool directly | ||
| - **[VS Code](vscode.md)** - Install the mirrord extension for Visual Studio Code and compatible editors (Cursor, Windsurf, etc.) | ||
| - **[JetBrains IDEs](intellij.md)** - Install the mirrord plugin for JetBrains IDEs (IntelliJ, PyCharm, GoLand, etc.) | ||
| - **[WSL](wsl.md)** - Set up mirrord on Windows using the Windows Subsystem for Linux | ||
|
|
||
| ## Local Requirements | ||
|
|
||
| For your local machine, you may use any of: | ||
| - MacOS (Intel, Apple Silicon) | ||
| - Linux (x86_64) | ||
| - Windows (x86_64), WSL (x86_64) | ||
| - IDE plugins support for native mirrord for Windows is currently not supported | ||
|
|
||
| kubectl needs to be configured on the local machine. | ||
|
|
||
| ## mirrord for Teams | ||
|
|
||
| If you're planning to use [mirrord for Teams](https://app.metalbear.com), you'll also need to install the mirrord Operator. See the [mirrord for Teams](../overview/teams.md) page for installation instructions. | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,93 @@ | ||
| --- | ||
| title: CLI | ||
| description: Installing and using the mirrord CLI | ||
| --- | ||
|
|
||
| # CLI | ||
|
|
||
| The mirrord CLI is the core tool for running mirrord from the command line. | ||
|
|
||
| ## Installation | ||
|
|
||
| {% tabs %} | ||
| {% tab title="MacOS/Linux" %} | ||
|
|
||
| To install the CLI, run: | ||
|
|
||
| ```bash | ||
| brew install metalbear-co/mirrord/mirrord | ||
| ``` | ||
|
|
||
| or | ||
|
|
||
| ```bash | ||
| curl -fsSL https://raw.githubusercontent.com/metalbear-co/mirrord/main/scripts/install.sh | bash | ||
| ``` | ||
| {% endtab %} | ||
|
|
||
| {% tab title="Windows" %} | ||
| To install the CLI, run: | ||
|
|
||
| ```powershell | ||
| choco install --pre mirrord | ||
| ``` | ||
| {% endtab %} | ||
| {% endtabs %} | ||
|
|
||
| ## Usage | ||
|
|
||
| To use mirrord to plug a local process into a pod/deployment in the cluster configured with kubectl, run: | ||
|
|
||
| ```bash | ||
| mirrord exec --target <target-path> <command used to run the local process> | ||
| ``` | ||
|
|
||
| For example: | ||
|
|
||
| ```bash | ||
| mirrord exec --target pod/app-pod-01 python main.py | ||
| ``` | ||
|
|
||
| Use `mirrord --help` to see all available commands. | ||
|
|
||
| ## Configuration | ||
|
|
||
| mirrord is configured using a JSON or YAML configuration file. The CLI reads its configuration from this file — by default, it looks for `.mirrord/mirrord.json` in the current directory. You can specify a different configuration file with the `-f` flag: | ||
|
|
||
| ```bash | ||
| mirrord exec -f my-config.json --target pod/app-pod python main.py | ||
| ``` | ||
|
|
||
| Configuration options are documented in the [configuration reference](https://metalbear.com/mirrord/docs/config/options). | ||
|
|
||
| ## Interactive Setup | ||
|
|
||
| You can use `mirrord wizard` to generate a `mirrord.json` configuration file interactively. This walks you through common use cases and helps you create a configuration tailored to your needs. See the [Onboarding Wizard](../overview/onboarding-wizard.md) for more information. | ||
|
|
||
| ## Listing Targets | ||
|
|
||
| To see available targets in your cluster: | ||
|
|
||
| ```bash | ||
| mirrord ls | ||
| ``` | ||
|
|
||
| This will list all pods, deployments, and other resources that mirrord can target. | ||
|
|
||
| ## Verifying Installation | ||
|
|
||
| To verify mirrord is installed correctly: | ||
|
|
||
| ```bash | ||
| mirrord --version | ||
| ``` | ||
|
|
||
| To check connectivity to your cluster and the mirrord Operator (if using [mirrord for Teams](../overview/teams.md)): | ||
|
|
||
| ```bash | ||
| mirrord operator status | ||
| ``` | ||
|
|
||
| {% hint style="info" %} | ||
| **Got it working? Stuck?** Either way, [come say hi in Slack](https://metalbear.com/slack) | ||
| {% endhint %} |
Uh oh!
There was an error while loading. Please reload this page.