Autonomous container optimization, AST dependency segregation, and GoA Sentinel verification Docker
1.7K
Rover-Slim is an intelligent, source-first container optimization engine, official GitHub Marketplace Actionโ , and community Container Desktop Extension (compatible with Docker Desktop & Rancher Desktop) that analyzes application Abstract Syntax Trees (AST), automatically segregates development bloat from minimal production dependencies, synthesizes hardened multi-stage Dockerfiles, and guarantees zero runtime breakage via Green-on-Arrival (GoA) Sentinel health checks.

PackageReference pruning), Node.js (devDependencies stripping), and Python (AST-driven import mapping).rover-slim decouple): Synthesizes Kubernetes Init Container (emptyDir) manifests and ORAS scripts to hydrate static web templates, ML models, and heavy localization assets dynamically via OCI registries without baking bloat into application images.spring-boot-starter-test, xunit, jest, pytest).appuser, UID 10001)..dockerignore): Automatically detects and shields build contexts from heavy test caches, .git, node_modules, and local state./health, /actuator/health, /healthz), and verify static asset graphs before final deployment.| Metric | Fat / Baseline Container | Rover-Slim Optimized | Total Savings / Delta |
|---|---|---|---|
| Uncompressed Image Size | 1,232.7 MB | 214.6 MB | -1,018.1 MB (-82.6%) |
| Registry Transfer (Compressed) | 443.8 MB | 68.7 MB | -375.1 MB (-84.5%) |
| Build Context Size | 10.2 MB | 2.4 MB | -7.8 MB (-76.5%) |
| OCI Image Layers | 18 layers | 8 layers | -10 layers |
| Installed Packages | 40 packages | 12 packages | -28 packages |
| Runtime GoA Sentinel | Untested / Breakage Risk | 100% Verified Green | Zero Breaking Changes |
Rover-Slim provides an interactive visual GUI extension compatible with both Docker Desktop and Rancher Desktop.
Note
**Community Extension**: Rover-Slim is an independent, community-developed extension. It is **not** an official extension, and is not affiliated with, sponsored by, or endorsed by SUSE / Rancher Desktop or Docker, Inc., nor is it listed in the official Docker Desktop Extensions Marketplace or Rancher Desktop Extension Catalog. You can install and use it directly via the standard CLI commands below using the published OCI image on Docker Hub (`bsankarganesh/rover-slim-extension:latest`).
Install directly via the Docker CLI:
docker extension install bsankarganesh/rover-slim-extension:latest
To update or remove:
# Update to latest version
docker extension update bsankarganesh/rover-slim-extension:latest
# Uninstall extension
docker extension uninstall bsankarganesh/rover-slim-extension:latest
Install directly via the Rancher Desktop CLI (rdctl):
rdctl extension install bsankarganesh/rover-slim-extension:latest
(Ensure Rancher Desktop is running with the dockerd (Moby) container runtime selected under Preferences > Container Engine).
To update or remove:
# Update to latest version
rdctl extension update bsankarganesh/rover-slim-extension:latest
# Uninstall extension
rdctl extension uninstall bsankarganesh/rover-slim-extension:latest
Open Docker Desktop or Rancher Desktop and click Rover Slim in the left navigation sidebar!
Rover-Slim is officially published on the GitHub Marketplaceโ . Integrate autonomous container optimization directly into your CI/CD pipeline to shrink containers, eliminate layer waste, and enforce container size governance on every Pull Request.
.github/workflows/rover-slim.yml)name: "Rover-Slim Optimization & Governance"
on:
pull_request:
branches: [ main ]
push:
branches: [ main ]
jobs:
optimize:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Run Rover-Slim Container Optimization
uses: SankarGaneshb/rover-slim@v1
with:
project_path: "."
max_image_size_mb: "350"
max_wasted_percent: "10"
verify_goa: "true"
auto_commit: "false"
| Input | Description | Default |
|---|---|---|
project_path | Path to project root | . |
max_image_size_mb | Maximum allowable uncompressed image size in MB | 350 |
max_wasted_percent | Maximum allowable layer waste percentage | 10 |
verify_goa | Run Green-on-Arrival sentinel verification probes | true |
auto_commit | Automatically commit and push segregated requirements and multi-stage Dockerfile | false |
github_token | GitHub token for posting PR summary comments | ${{ github.token }} |
| Output | Description |
|---|---|
size_reduction_pct | Percentage container size reduction achieved |
optimized_size_mb | Final optimized image size in MB |
report_json | Structured JSON metrics summary |
pip install -e .
# Audit current directory or existing Docker image
rover-slim audit .
rover-slim audit . --image my-app:latest
# Auto-detects runtime (Java/Spring Boot, .NET Core, Node.js, Python)
# Runs dependency segregation, multi-stage synthesis, and GoA verification
rover-slim optimize . --verify-goa
# Interactive wizard mode (customize package classifications)
rover-slim optimize . --interactive
# Multi-Architecture build output (amd64 + arm64)
rover-slim optimize . --multi-arch
rover-slim decouple)# Decouple heavy static UI bundles, templates, or ML models from the container
# Generates Kubernetes emptyDir Init Container patches and ORAS OCI artifact scripts
rover-slim decouple ./assets/templates \
--mount /app/static \
--ref registry.enterprise.local/assets/auth:v1 \
--output ./k8s
rover-slim diff .
# Generates SPDX 2.3 and CycloneDX 1.5 SBOMs with polyglot purls (Maven, NuGet, npm, PyPI)
rover-slim sbom . --output .rover-slim
# Automatically synchronizes dependency boundaries upon source code edits
rover-slim watch .
# Restores files from previous snapshot backup
rover-slim rollback .
Rover-Slim is an officially listed and verified server on the M8ven MCP Registry & Trust Indexโ under Verified Publisher status (@SankarGaneshb), continuously monitored for security, stability, and MCP schema compliance.
It includes a native Model Context Protocol (MCP) server for seamless integration with agentic coding environments (Antigravity, Cursor, Claude Desktop, Windsurf):
{
"mcpServers": {
"rover-slim": {
"command": "rover-slim",
"args": ["mcp"]
}
}
}
Rover-Slim adheres to the official MCP specification risk vocabulary and OpenAI MCP directory standards. Every exposed tool declares explicit boolean hints (readOnlyHint, destructiveHint, idempotentHint, and openWorldHint):
| Tool | Description | readOnlyHint | destructiveHint | idempotentHint | openWorldHint |
|---|---|---|---|---|---|
audit_container | Audits directory or image for bloat, wasted layers, context leaks, and CVEs | true | false | true | false |
get_markdown_report | Generates GitHub PR markdown diff summary report | true | false | true | false |
verify_goa | Runs Green-on-Arrival Sentinel runtime boot integrity & health probes | true | false | true | false |
optimize_project | Runs end-to-end container optimization & writes multi-stage Dockerfile | false | true | true | false |
๐ก๏ธ Autonomous Safety: Read-only inspection tools execute frictionlessly in agentic IDEs without confirmation prompts, while
optimize_projectsignalsdestructiveHint: trueso hosts warn users before modifying files.
.rover-slim.yaml)version: "1.0"
project_name: "my-service"
thresholds:
max_image_size_mb: 350.0
max_wasted_percent: 10.0
max_cold_start_seconds: 2.5
fail_on_cve_severity: ["CRITICAL"]
build:
target_base_image: "python:3.13-slim"
enable_multistage: true
strip_node_runtime: true
frontend_dist_path: "static/"
verification:
auto_discover: true
startup_command: "python -c 'import server; print(\"[OK] Startup Integrity verified\")'"
probes:
- name: "HTTP Root Health"
type: "http"
path: "/health"
port: 8080
expected_status: 200
timeout_seconds: 10
# Run full polyglot test suite (181 passed across Python, Java, .NET, decoupling, and API suites)
pytest -v
# Run Extension React UI component test suite (6 suites, 100% green)
cd extension/ui && npm test
This project is licensed under the MIT Licenseโ .
Content type
Image
Digest
sha256:e4097cefcโฆ
Size
83.5 MB
Last updated
14 days ago
docker pull bsankarganesh/rover-slim-extension