feat(comfyui): add local image-gen service (#41)
Adds the comfyui service (yurisasc/comfyui-rocm7.1, gfx1201-tuned for the R9700) on the ai-stack network, published on host port 8138 for a planned external nginx route to comfy.home. Resolves PUID/PGID/VIDEO_GID/RENDER_GID from the host in scripts/update.sh, same pattern as SEARXNG_LAN_IP. OmniRoute provider registration (http://comfyui:8188) is still the same manual dashboard/POST-/api/providers flow already used for llama-server — not scripted, per docs/proxy-key-onboarding.md. Part of wayfinder map #38. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015zCwaWJQuKgXDUfRPBqDS7
This commit is contained in:
@@ -56,6 +56,24 @@ else
|
||||
echo "SEARXNG_LAN_IP: couldn't resolve search.home from this host, set it manually if still blank."
|
||||
fi
|
||||
|
||||
echo "==> resolving ComfyUI host GID/UID"
|
||||
# yurisasc/comfyui-rocm7.1 wants these as env vars, not just group_add in
|
||||
# compose — resolve from this host, same pattern as SEARXNG_LAN_IP.
|
||||
set_if_blank COMFYUI_PUID "$(id -u)"
|
||||
set_if_blank COMFYUI_PGID "$(id -g)"
|
||||
video_gid="$(getent group video 2>/dev/null | cut -d: -f3)"
|
||||
render_gid="$(getent group render 2>/dev/null | cut -d: -f3)"
|
||||
if [ -n "$video_gid" ]; then
|
||||
set_if_blank COMFYUI_VIDEO_GID "$video_gid"
|
||||
else
|
||||
echo "COMFYUI_VIDEO_GID: no 'video' group on this host, set it manually if still blank."
|
||||
fi
|
||||
if [ -n "$render_gid" ]; then
|
||||
set_if_blank COMFYUI_RENDER_GID "$render_gid"
|
||||
else
|
||||
echo "COMFYUI_RENDER_GID: no 'render' group on this host, set it manually if still blank."
|
||||
fi
|
||||
|
||||
echo "==> git pull"
|
||||
git pull --ff-only
|
||||
|
||||
|
||||
Reference in New Issue
Block a user