The comfyui candy of the OpenCharly candy library, as a standalone repo (the
candy de-submodule cutover, kind-prefixed naming). It ships a GPU
image-generation server with ComfyUI, its built-in manager, and the
model-download tooling baked in.
Clones ComfyUI at the pinned COMFYUI_REF tag into the image-owned
/opt/comfyui and keeps every mutable thing in the comfyui volume at
~/ComfyUI, addressed by ComfyUI's own --base-directory. The built-in manager
is enabled (--enable-manager); the legacy ComfyUI-Manager custom-node clone is
gone. aria2 and git-lfs are installed for the first-boot model fetch. A
supervisord service runs /opt/comfyui/start-comfyui.sh, which seeds the state
tree, writes the model-set manifest, launches the fetch, and then execs
main.py --listen 0.0.0.0 --port 8188.
| Property | Value |
|---|---|
| Port | 8188 (ComfyUI web UI) |
| App | /opt/comfyui at the pinned COMFYUI_REF tag (image-owned) |
| Service | comfyui (/opt/comfyui/start-comfyui.sh, restart: always) |
| Requires | layer-supervisord (the GPU substrate is the box's — see below) |
| Volume | comfyui at ~/ComfyUI |
| Package | aria2, git-lfs (arch/fedora) |
| API | /system_stats on 8188 |
The candy declares only what it needs to run — the supervisord service. It ships no
CUDA toolkit and no GPU driver: PyTorch arrives as the cu130 wheel (which bundles its own
CUDA runtime) and the driver comes from the substrate, which the box chooses.
A pod — the kernel module is host-global, so the runtime injects the driver user-space
per container through /etc/cdi/nvidia.yaml. Base the box on a CDI base (pod-cdi, or a
distro's nvidia-cdi), which composes layer-cdi:
my-comfyui-pod:
candy:
base: nvidia-cdi # pod base: layer-cdi's contract, injected host driver
candy:
- '@github.com/opencharly/pod-comfyui:<tag>'A VM — the guest owns its kernel module, so the driver user-space must be baked in.
Base the box on a distro box and compose layer-nvidia + layer-cuda beside this candy
at the box level:
my-comfyui-vm:
candy:
base: cachyos.cachyos # a distro base, imported under its namespace
candy:
- '@github.com/opencharly/layer-nvidia:<tag>'
- '@github.com/opencharly/layer-cuda:<tag>'
- '@github.com/opencharly/pod-comfyui:<tag>'charly box build my-comfyui-pod
charly start my-comfyui-pod
# open http://localhost:8188charly.yml— thecomfyuicandy entity plus itsskill:entity.pixi.toml/pixi.lock— the Python environment for the server..github/workflows/tag-on-merge.yml— CalVer tag +CHANGELOG/on merge.README.md— this user overview.
- Owning skill:
/charly-comfyui:comfyui— the box properties, the candy stack, and verification. /charly-distros:cdi— the POD GPU contract (layer-cdi), and/charly-distros:nvidia//charly-distros:cuda— the VM driver + toolkit layers a VM box composes.opencharly/charly— the charly CLI and image builderopencharly/opencharly— the umbrella