docs(examples): add tutorial-style Dalec examples (inline, config+systemd, patching, kitchen-sink)#911
Merged
cpuguy83 merged 1 commit intoproject-dalec:mainfrom Jan 7, 2026
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds four comprehensive tutorial-style example specifications to help new Dalec users understand how to create package and container build definitions. The examples progress from simple to complex, demonstrating key Dalec features with extensive inline documentation.
- Adds minimal inline source example (hello.inline.yml)
- Adds daemon packaging example with config and systemd (config-and-systemd.yml)
- Adds patch application workflow example (patch-during-build.yml)
- Adds comprehensive "kitchen sink" example showing all major Dalec features (my-daemon.kitchensink.yml)
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| docs/examples/hello.inline.yml | Minimal example showing inline C source, gcc build, binary installation, and basic tests |
| docs/examples/config-and-systemd.yml | Demonstrates daemon package layout with config files, createDirectories, and systemd unit packaging |
| docs/examples/patch-during-build.yml | Shows how to apply patches during build phase with inline patch source |
| docs/examples/my-daemon.kitchensink.yml | Comprehensive example demonstrating all major Dalec features including args, multiple source types, all artifact types, and extensive testing |
e1309b2 to
7d510cf
Compare
7d510cf to
71b78bb
Compare
Collaborator
|
@kartikjoshi21 Can you make sure to add the examples to Line 211 in 2cb25ae |
…temd, patching, kitchen-sink) This PR adds several tutorial-style example specs under docs/examples/ to help new users understand how Dalec specs map to packages + images. Fixes: project-dalec#828 Signed-off-by: Kartik Joshi <karikjoshi21@gmail.com>
71b78bb to
cbabfb1
Compare
Member
Author
@cpuguy83 added a patch for the same, Thanks |
cpuguy83
approved these changes
Jan 7, 2026
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.
This PR adds several tutorial-style example specs under docs/examples/ to help new users understand how Dalec specs map to packages + images.
Fixes: #828