Skip to content

Conversation

@djeebus
Copy link
Contributor

@djeebus djeebus commented Nov 6, 2025

  • Move a bunch of environment variables to our config model
  • All env vars that represent paths are turned into absolute paths, in order to avoid firecracker issues, and directories are created
  • Move a bunch of path configuration out of packages/shared/pkg/storage and into packages/orchestrator/internal/paths

Note

Enables local template creation by moving path logic into orchestrator, making env paths absolute with auto dir creation, and plumbing config/paths through build, sandbox, and server layers.

  • Config & bootstrapping
    • Extend BuilderConfig with path fields (e.g., DefaultCachePath, TemplateCacheDir, TemplatesDir, etc.), absolutize them, and ensure directories are created on startup.
    • Pass cfg.BuilderConfig through builders, servers, sandbox, and cache.
  • Paths refactor
    • Introduce packages/orchestrator/internal/paths (TemplateFiles, TemplateCacheFiles, SandboxFiles) replacing usages from packages/shared/pkg/storage.
    • Update metadata, template cache, snapshot, and FC code to use new path helpers and constants.
  • Template build/usage
    • Wire paths/config into build pipeline (build.Builder, phases, cache/index, rootfs/envd), and snapshotting (tmp memfile acquisition moved into orchestrator).
    • Improve OCI layer extraction logging and concurrency limits; minor error messages clarified.
  • Server & CLI
    • Orchestrator and template-manager servers now accept/configure BuilderConfig; pause/create flows build paths.TemplateFiles via paths.NewWithVersions.
    • Add cmd/* utilities (build/inspect/simulate) to new paths/config APIs.
  • Local dev support
    • Add .env.local for orchestrator with local dirs; make run-local builds and runs with sudo and prepares dirs.
    • Add download-public-kernels make target and ignore /packages/fc-kernels.
    • Update DEV-LOCAL.md with new steps; add packages/shared/scripts make target to build base template.
  • API
    • Minor auth middleware cleanup; API .env.local adds local cluster settings.

Written by Cursor Bugbot for commit 75af051. This will update automatically on new commits. Configure here.

This reverts commit 1a173bb.
return fmt.Errorf("%s %w", a.errorMessage, err)
}

telemetry.ReportEvent(ctx, "api key extracted")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was spamming me locally, and seemed useless. Happy to bring it back if it's useful though.

@@ -0,0 +1,66 @@
package sandbox
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was moved out of the shared package and into orchestrator, without changes

@djeebus
Copy link
Contributor Author

djeebus commented Nov 6, 2025

Superseded by #1449

@djeebus djeebus closed this Nov 6, 2025
@ValentaTomas ValentaTomas deleted the more-local-dev branch November 15, 2025 04:04
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.

3 participants