Repository navigation
test: Fix remaining Docker references and validate LXC migration - #66
Merged
Merged
Conversation
Updated comments and documentation to reflect LXC-based architecture: - Changed default sandbox type from BACKEND_TYPES.DOCKER to BACKEND_TYPES.INCUS in orchestrator - Updated ProjectInitializer default sandbox to 'incus' with 'ai-army-base' image - Replaced "Docker container" references with "container" in bot-manager, tool-executor, bash-tool, file-tools, tool-registry - Updated "Docker image" to "container image" in API routers and CLI commands - Fixed fallback messaging from "Docker management" to "container management" All tests pass: - Lint: ✓ - Unit tests: 5599/5599 passing - Integration tests: 618/618 passing - E2E tests: 0 (skipped - no PostgreSQL) - Config validation: ✓ Remaining Docker references are legitimate: - docker-compose.yml for master setup - dockerAccess config field for Docker-in-LXC support - Comparison comments explaining LXC vs Docker - docker-internal hostname checks for local DB Co-Authored-By: Claude <noreply@anthropic.com>
- The SandboxConfigSchema expects `incusImage` not `image` - The IncusBackend reads `botConfig.sandbox?.incusImage` - Fixes field name mismatch in init template config Co-Authored-By: Claude <noreply@anthropic.com>
- Capitalize "container" to "Container" in options.image JSDoc on line 369 to match the style used on line 259 Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR completes the LXC migration by fixing all remaining Docker references in comments and documentation, and validates that the full test suite passes.
Changes Made
Configuration Updates
BACKEND_TYPES.DOCKERtoBACKEND_TYPES.INCUSin orchestrator'incus'with'ai-army-base'image instead of'docker'with'node:22-slim'Documentation Updates
bot-manager.js- lifecycle management commentstool-executor.js- tool execution commentsbash-tool.js- JSDoc parametersfile-tools.js- JSDoc parameterstool-registry.js- JSDoc parametersbot-router.js- config update documentationworker-router.js- API endpoint documentationWorkerCommand.js- CLI command documentationArchitecture Notes
Test Results
✅ All tests pass:
npx ai-army validatepassesValidation Checklist
✅ No dangling imports of deleted modules (DockerManager, DockerBackend)
✅ No
dockerodein package-lock.json✅
grep -r "docker" src/shows only legitimate references:docker-compose.ymlfor master setupdockerAccessconfig field for Docker-in-LXC supportdocker-internalhostname checks for local DBBackwards Compatibility
Related Issues
Completes task #19 from
.claude-task-master/plan.md- Run full test suite and fix any broken tests.🤖 Generated with Claude Task Master
Greptile Overview
Greptile Summary
This PR completes the Docker-to-LXC (Incus) migration by updating remaining Docker references in comments and documentation across 10 files, and fixes two substantive code issues:
orchestrator.js: The default sandbox type fallback previously referencedBACKEND_TYPES.DOCKER, which resolved toundefinedsince the Docker backend was already removed. Now correctly falls back toBACKEND_TYPES.INCUS.ProjectInitializer.js: Updated the init template to usetype: 'incus'withincusImage: 'ai-army-base'instead of the removedtype: 'docker'withimage: 'node:22-slim'.Confidence Score: 5/5
Important Files Changed
Flowchart
flowchart TD A[Project Init / Config Load] -->|sandbox.type| B{Sandbox Type?} B -->|"'incus' (default)"| C[BACKEND_TYPES.INCUS] B -->|"'just-bash'"| D[BACKEND_TYPES.JUST_BASH] C --> E[IncusBackend] E -->|reads incusImage| F[Create LXC Container] D --> G[JustBashBackend] style C fill:#90EE90 style E fill:#90EE90 style F fill:#90EE90Last reviewed commit: 6d3d3fd