feat: introduce recipes for development environments - #5
Merged
pigmej merged 5 commits intoSep 17, 2026
Merged
Conversation
Merge current main while preserving global create defaults, --fresh, Atlas, and Nim-only verification. Guard pinned identities and both rebind endpoints, give reservation cleanup one owner, close registry files once, and reject special or oversized inputs. Add fake-backend regressions and port the incoming create-config tests to Nim.
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
Introduce recipes to ocdev so users can define how a development environment is created from an existing snapshot, configured, and cleaned up.
Recipes contain reusable tasks and lifecycle hooks. Project files select a recipe and provide local configuration files and task defaults.
What was added
.env, into an environment.--jsonsupport across noninteractive management commands, preserving the existinglist --jsonbehavior.Behavior and safety
Each environment keeps the recipe version it was created with. Instance UUID checks, environment locks, and atomic port reservations protect lifecycle operations.
Failed setup leaves the container available for debugging. Cleanup hooks run before deletion and block it if they fail. Dry-run checks do not modify environments, but still require Incus.
Recipes execute trusted commands and require prepared snapshots. This PR does not add a build engine or manage the source snapshots.
Testing