Skip to content

Add a docker command runner helper#685

Draft
alxdca wants to merge 1 commit intomainfrom
feat/docker-command-runner
Draft

Add a docker command runner helper#685
alxdca wants to merge 1 commit intomainfrom
feat/docker-command-runner

Conversation

@alxdca
Copy link
Copy Markdown
Contributor

@alxdca alxdca commented Apr 2, 2026

This PR is part of a stack created with Aviator.

Summary

  • add a runDockerCommand helper that wraps docker run --rm
  • support passing command args, an optional entrypoint, and environment variables
  • return structured execution metadata including argv, stdout, stderr, and exit code

Why / Context

  • upcoming SDK flows need a reusable way to invoke Docker-based tooling
  • environment values should be passed to the child process without leaking secret contents into logged argv or error metadata
  • centralizing the Docker invocation logic makes higher-level Docker-backed features easier to implement and test

Test Plan

  • Run the unit test suite covering src/runDockerCommand.unit.test.ts
  • Verify the helper correctly passes env var names without exposing env var values in argv or error metadata
  • Smoke test one Docker-backed call path that uses this helper

Validation evidence

  • No test, lint, or build results were gathered for this draft
  • Evidence used for the summary: current branch diff/commit metadata only

@alxdca alxdca force-pushed the feat/docker-command-runner branch from e567549 to 0c9dbc3 Compare April 2, 2026 12:45
@alxdca alxdca mentioned this pull request Apr 8, 2026
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant