Skip to content

Commit 6e6b3c8

Browse files
authored
refactor(cli): remove local Dockerfile image builds (#3214)
Signed-off-by: Evie Howard <evhoward@redhat.com>
1 parent e87d2f6 commit 6e6b3c8

28 files changed

Lines changed: 450 additions & 1073 deletions

File tree

‎.agents/skills/launch-openshell-gator/SKILL.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ For gator's PR/issue validation policy, load `gator-gate` inside the launched sa
2626
|---|---|
2727
| `scripts/agents/run.sh` | Manifest-driven OpenShell agent launcher. |
2828
| `scripts/agents/gator/agent.yaml` | Gator manifest: immutable payload version, default gateway, harness, providers, runtime, skills, and subagents. |
29-
| `scripts/agents/gator/Dockerfile` | Gator sandbox image source. Local launches build this image through OpenShell. |
29+
| `scripts/agents/gator/Dockerfile` | Gator sandbox image source. Local launches build it in gateway's Docker or Podman image store. |
3030
| `scripts/agents/gator/policy.yaml` | Sandbox policy for the gator agent. |
3131
| `scripts/agents/gator/bin/gh` | Gator-specific `gh` wrapper and same-SHA duplicate-post guard. |
3232
| `scripts/agents/gator/bin/review-feedback-ledger` | Builds tree-aware review scope, durable findings, convergence telemetry, and review-budget state. |
@@ -160,7 +160,7 @@ sandbox_name="gator-pr-${pr_number}-supervised"
160160
"Review and monitor PR #${pr_number} through the gator-gate workflow. Scope this invocation only to PR #${pr_number}."
161161
```
162162

163-
The launcher builds the gator sandbox image when needed, stages the immutable payload, imports provider profiles, configures provider credentials and refresh, creates and uploads the sandbox payload, then starts the agent supervisor with `sandbox exec`. It writes a background log under `scripts/agents/gator/logs/`.
163+
The launcher queries gateway's selected compute driver, builds gator image in matching Docker or Podman image store, stages immutable payload, imports provider profiles, configures provider credentials and refresh, creates and uploads sandbox payload, then starts agent supervisor with `sandbox exec`. It writes a background log under `scripts/agents/gator/logs/`. `CONTAINER_ENGINE`, when set, must match gateway driver.
164164

165165
### Launch An Issue Or Issue/PR Pair
166166

‎Cargo.lock‎

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎README.md‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,14 +196,20 @@ The TUI gives you a live, keyboard-driven view of your gateway and sandboxes. Na
196196

197197
## Community Sandboxes and BYOC
198198

199-
Use `--from` to create sandboxes from the [OpenShell Community](https://github.com/NVIDIA/OpenShell-Community) catalog, a local directory, or a container image:
199+
Use `--from` to create sandboxes from the [OpenShell Community](https://github.com/NVIDIA/OpenShell-Community) catalog or a container image:
200200

201201
```bash
202202
openshell sandbox create --from gemini # community catalog
203-
openshell sandbox create --from ./my-sandbox-dir # local Dockerfile
203+
docker build -t my-sandbox:latest ./my-sandbox-dir # Docker gateway
204+
openshell sandbox create --from my-sandbox:latest # Docker built image
205+
podman build -t localhost/my-sandbox:latest ./my-sandbox-dir # Podman gateway
206+
openshell sandbox create --from localhost/my-sandbox:latest # Podman built image
204207
openshell sandbox create --from registry.io/img:v1 # container image
205208
```
206209

210+
Build with the container engine used by your local gateway. For a remote
211+
gateway, push the image to a registry that the gateway can pull from.
212+
207213
See the [OpenShell Community](https://github.com/NVIDIA/OpenShell-Community) catalog and the [BYOC example](https://github.com/NVIDIA/OpenShell/tree/main/examples/bring-your-own-container) for details.
208214

209215
## Use OpenShell with Your Agent

‎crates/openshell-bootstrap/Cargo.toml‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,15 @@ rust-version.workspace = true
1212
[dependencies]
1313
openshell-core = { path = "../openshell-core", default-features = false }
1414
bytes = { workspace = true }
15-
futures = { workspace = true }
1615
miette = { workspace = true }
1716
rcgen = { workspace = true }
1817
sha2 = { workspace = true }
1918
serde = { workspace = true }
2019
serde_json = { workspace = true }
21-
tar = "0.4"
2220
tempfile = "3"
2321
tokio = { workspace = true }
2422
tracing = { workspace = true }
2523

26-
[target.'cfg(not(target_os = "windows"))'.dependencies]
27-
bollard = "0.20"
28-
2924
[dev-dependencies]
3025

3126
[lints]

0 commit comments

Comments
 (0)