How kaushal1014/docksmith-mktp works
Docksmith is a small container-image builder and runner. The primary workflow parses a Docksmithfile, executes its build instructions against a local base image and build context, stores content-addressed layers and a manifest, then assembles those layers and runs a command in an isolated chroot. It also supports image listing/removal and build-layer caching. The README is empty; the graph reflects the sampled source, so it does not assume an external registry or base-image import workflow.
Main entry points: main.go Command dispatch · builder.go Build orchestrator · image.go Image manifests · fs.go Root filesystem assembly
Components 15
CLI
- Command dispatch
main.go
Image building
- Instruction parser
parser.go - Build orchestrator
builder.go - Build context
- Context and layer filesystem
fs.go - Filesystem snapshots
snapshot.go
Image storage
- Layer creation
layer.go - Build cache
cache.go - Image manifests
image.go - Local state directories
state.go - Local base-image tar
fs.go
Container runtime
- Root filesystem assembly
fs.go - Runtime environment
builder.go - Isolated command runner
run.go
Other components
- CLI user
Connections 21
- CLI user → Command dispatch: issues commands
main.go - Command dispatch → Local state directories: initializes state
main.go - Command dispatch → Instruction parser: parses build file
main.go - Command dispatch → Build orchestrator: executes build
main.go - Build context → Instruction parser: provides instructions
- Build context → Build orchestrator: provides build files
builder.go - Build orchestrator → Local base-image tar: loads base image
builder.go - Build orchestrator → Context and layer filesystem: resolves and copies
builder.go - Build orchestrator → Build cache: checks and stores keys
builder.go - Build orchestrator → Filesystem snapshots: compares RUN changes
builder.go - Build orchestrator → Layer creation: creates instruction layers
builder.go - Build orchestrator → Image manifests: loads build metadata
builder.go - Command dispatch → Image manifests: saves built image
main.go - Command dispatch → Image manifests: lists or removes images
main.go - Command dispatch → Image manifests: loads image for run
main.go - Command dispatch → Root filesystem assembly: assembles root filesystem
main.go - Image manifests → Root filesystem assembly: provides layer list
- Root filesystem assembly → Context and layer filesystem: extracts each layer
fs.go - Command dispatch → Runtime environment: builds runtime environment
main.go - Command dispatch → Isolated command runner: runs selected command
main.go - Runtime environment → Isolated command runner: supplies environment