Skip to content

refactor(sandboxer): redesign container bootstrapping - #152

Merged
dungdm93 merged 14 commits into
mainfrom
job-container
Sep 16, 2026
Merged

dungdm93 merged 14 commits into
mainfrom
job-container

Conversation

@dungdm93

@dungdm93 dungdm93 commented Sep 15, 2026 •

Copy link
Copy Markdown
Member

Objective

Enable job and service container execution across sandboxer engines (docker, host, and incus) with a unified, resilient bootstrapping lifecycle.

High-Level Design

  • Unified Bootstrapping (container.Bootstrap): Replaces the stateful bootstrapper interface with a functional pipeline handling network coordination, parallel service provisioning, and automatic rollback on failure.
  • Engine Ownership & Lazy Initialization:
    • Docker Engine: Directly manages its job container lifecycle while delegating auxiliary services to the shared bootstrapper.
    • Host & Incus Engines: Lazily initialize container runtimes only when container workloads are requested, keeping containerless sandboxes lightweight.
  • Lifecycle Integration: Registers cleanup hooks on the sandbox lifecycle to guarantee reliable teardown of networks and containers upon termination.

@dungdm93
dungdm93 force-pushed the job-container branch 4 times, most recently from 6766f90 to 072aeb4 Compare September 15, 2026 04:54
@dungdm93
dungdm93 force-pushed the job-container branch 3 times, most recently from d83d7ad to 28d2bc2 Compare September 15, 2026 07:07
@dungdm93
dungdm93 force-pushed the job-container branch 4 times, most recently from 70c2a33 to adec076 Compare September 16, 2026 10:31
@dungdm93 dungdm93 changed the title refactor(sandboxer): redesign container bootstrap and decouple engine lifecycle refactor(sandboxer): redesign container bootstrapping Sep 16, 2026
@dungdm93
dungdm93 force-pushed the job-container branch 2 times, most recently from b0ab756 to 3201bc1 Compare September 16, 2026 10:47
@dungdm93
dungdm93 merged commit a344bdc into main Sep 16, 2026
@dungdm93
dungdm93 deleted the job-container branch September 16, 2026 10:49
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