How cypt71/platform-factory works
Platform Factory packages existing executables into deterministic OCI images, adds verifiable supply-chain evidence, and runs or distributes the result. The primary workflow is CLI-driven: build/package, verify, then publish or execute as a hardened container or microVM. Separate capabilities include project lifecycle and pipeline execution, plugins and marketplace, and a remote worker/control-plane path. README statements support the broad capability relationships; sampled excerpts clarify pipeline orchestration, OCI building, worker execution, and runtime behavior. Other source implementations were not sampled, so their internal links are limited to documented relationships.
Main entry points: platform-factory/main.go Platform Factory CLI · platform-factory-runtime/main.go OCI runtime facade · pipeline/pipeline.go Pipeline service · platform-factory/pipeline.go Pipeline commands
Components 22
Build and projects
- Platform Factory CLI
cmd/platform-factory/main.go - Project lifecycle
internal/app/project - OCI image builder
oci/builder.go - Pipeline commands
cmd/platform-factory/pipeline.go - Pipeline service
internal/app/pipeline/pipeline.go - Binary installer
cmd/platform-factory-installer/main.go
Supply-chain evidence
- Image and release verification
internal/app/verify/verify.go - SBOM generation
internal/app/sbom/sbom.go - Provenance and signing
internal/provenance/provenance.go - Policy evaluation
internal/policy/policy.go
Workload execution
- Hardened container runtime
internal/ociruntime/runtime.go - Native microVM
internal/hypervisor/kvm/kvm_linux.go - OCI runtime facade
cmd/platform-factory-runtime/main.go
Distribution and extensions
- OCI registry client
internal/registry/client.go - Deployment and rollback
internal/app/deploy/deploy.go - Plugin marketplace
internal/marketplace/manager.go - Verified plugin runtime
internal/plugin/client.go
Remote coordination
- Control-plane API
cmd/platform-factory-control-plane/server.go - Pipeline worker
internal/app/workerpipeline/workerpipeline.go
Other components
- Platform engineer
- Plugin consumer
- Kubernetes or containerd
Connections 22
- Platform engineer → Platform Factory CLI: invokes
README.md - Platform Factory CLI → OCI image builder: builds image
README.md - Platform Factory CLI → Project lifecycle: manages project
README.md - Platform Factory CLI → Image and release verification: verifies image
README.md - Platform Factory CLI → SBOM generation: generates SBOM
README.md - Platform Factory CLI → Provenance and signing: creates evidence
README.md - Platform Factory CLI → Policy evaluation: evaluates policy
README.md - Platform Factory CLI → Pipeline commands: runs pipelines
README.md - Pipeline commands → Pipeline service: calls service
cmd/platform-factory/pipeline.go - Pipeline service → Image and release verification: validates inputs
- Platform Factory CLI → OCI registry client: publishes image
README.md - Platform Factory CLI → Deployment and rollback: deploys workload
README.md - Platform Factory CLI → OCI runtime facade: launches workload
README.md - OCI runtime facade → Hardened container runtime: manages state
cmd/platform-factory-runtime/main.go - OCI runtime facade → Native microVM: launches guest
- Kubernetes or containerd → OCI runtime facade: selects runtime
README.md - Platform Factory CLI → Plugin marketplace: manages plugins
README.md - Plugin consumer → Plugin marketplace: installs plugins
README.md - Platform Factory CLI → Verified plugin runtime: activates plugins
README.md - Platform Factory CLI → Binary installer: installs binaries
- Control-plane API → Pipeline worker: leases pipelines
- Pipeline worker → Pipeline service: runs stages