-
Notifications
You must be signed in to change notification settings - Fork 272
fix(docker): run container as non-root user #516
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
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 |
|---|---|---|
|
|
@@ -103,6 +103,51 @@ By right-sizing your containers with KRR, you can save an average of 69% on clou | |
|
|
||
| Read more about [how KRR works](#how-krr-works) | ||
|
|
||
| <!-- QUICK START --> | ||
|
|
||
| ## Quick Start Guide | ||
|
|
||
| Get up and running with KRR in under 5 minutes: | ||
|
|
||
| ### 1. Install KRR | ||
|
|
||
| ```bash | ||
| pip install robusta-krr | ||
| ``` | ||
|
|
||
| ### 2. Verify Installation | ||
|
|
||
| ```bash | ||
| krr --help | ||
| ``` | ||
|
|
||
| ### 3. Run Your First Scan | ||
|
|
||
| ```bash | ||
| krr simple --prometheus-url=http://localhost:9090 | ||
| ``` | ||
|
|
||
| That's it! You now have recommendations for optimizing your Kubernetes resources. | ||
|
|
||
| For more details, see the full [Installation](#installation) and [Usage](#usage) sections below. | ||
|
|
||
|
|
||
| ## Quick Start Guide | ||
|
|
||
| Get started with KRR in under 5 minutes: | ||
|
|
||
| ```bash | ||
| # Install with Homebrew | ||
| brew tap robusta-dev/homebrew-krr | ||
| brew install krr | ||
|
|
||
| # Verify installation | ||
| krr version | ||
|
|
||
| # Run your first scan | ||
| krr simple | ||
| ``` | ||
|
Comment on lines
+106
to
+149
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. Consolidate the duplicate Quick Start sections. Line 135 duplicates the π Proposed docs cleanup <!-- QUICK START -->
## Quick Start Guide
Get up and running with KRR in under 5 minutes:
-### 1. Install KRR
+### Option A: Install with pip
```bash
pip install robusta-krr-### 2. Verify Installation -krr --help
+brew tap robusta-dev/homebrew-krr
+brew install krr-### 3. Run Your First Scan -krr simple --prometheus-url=http://localhost:9090
+krr --help-That's it! You now have recommendations for optimizing your Kubernetes resources.-For more details, see the full Installation and Usage sections below.-## Quick Start Guide-Get started with KRR in under 5 minutes: -# Install with Homebrew
-brew tap robusta-dev/homebrew-krr
-brew install krr
-
-# Verify installation
-krr version
-
-# Run your first scan
krr simple+If Prometheus is not auto-discovered, see Giving an Explicit Prometheus URL. Verify each finding against the current code and only fix it if needed. In |
||
|
|
||
| ## Difference with Kubernetes VPA | ||
|
|
||
| | Feature π οΈ | Robusta KRR π | Kubernetes VPA π | | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
π§© Analysis chain
π Web query:
Official Python documentation PYTHONDONTWRITEBYTECODE environment variableπ‘ Result:
The official Python documentation for the PYTHONDONTWRITEBYTECODE environment variable is found in the "Command line and environment" section of the Python documentation (e.g., for Python 3.14 at https://docs.python.org/3/using/cmdline.html). It states: If this is set to a non-empty string, Python won't try to write .pyc files on the import of source modules. This is equivalent to specifying the -B option. Note: As of late 2025, there is an open issue (python/cpython#143134) claiming the documentation is incorrect because the variable is parsed as a flag using _Py_get_env_flag, which treats any non-empty value (including non-numeric strings or "0") as true (1), enabling the no-write-bytecode behavior. Numeric "0" is false. A PR to update the docs is linked but status unclear as of 2026-04-18. Usage examples from sources confirm setting it to 1 or any non-empty value disables .pyc generation.
Citations:
Fix the Python bytecode environment variable typo.
PYTHONDONTWRYTEBYTECODEis not recognized by Python due to the misspelling ("WRYTE" instead of "WRITE"), so bytecode suppression will not be applied. The correct variable name isPYTHONDONTWRITEBYTECODE.π Proposed fix
π Committable suggestion
π€ Prompt for AI Agents