Test worked

This commit is contained in:
2026-07-21 02:17:06 -07:00
parent 06931ace00
commit ee48d50abf
9 changed files with 218 additions and 126 deletions
+14 -2
View File
@@ -15,6 +15,7 @@ RUN pacman -Sy --noconfirm archlinux-keyring && \
mariadb-clients \
nodejs \
npm \
opencode \
openssh \
php \
php-sqlite \
@@ -78,8 +79,19 @@ RUN tag="$(curl -fsSL https://gitea.com/api/v1/repos/gitea/gitea-mcp/releases/la
# hardcodes the InvokeAI URL, so patch it to honor $INVOKEAI_BASE_URL; the
# grep fails the build if upstream changes shape and the patch stops landing.
RUN uv tool install invokeai-mcp-server && \
sed -i 's|^INVOKEAI_BASE_URL = .*|import os\nINVOKEAI_BASE_URL = os.environ.get("INVOKEAI_BASE_URL", "http://127.0.0.1:9090")|' \
/root/.local/share/uv/tools/invokeai-mcp-server/lib/python*/site-packages/invokeai_mcp_server.py && \
python -c "
import glob
path = glob.glob('/root/.local/share/uv/tools/invokeai-mcp-server/lib/python*/site-packages/invokeai_mcp_server.py')[0]
with open(path) as f:
c = f.read()
c = 'import os\n' + c
c = c.replace(
'INVOKEAI_BASE_URL = \"http://127.0.0.1:9090\"',
'INVOKEAI_BASE_URL = os.environ.get(\"INVOKEAI_BASE_URL\", \"http://127.0.0.1:9090\")'
)
with open(path, 'w') as f:
f.write(c)
" && \
grep -q 'INVOKEAI_BASE_URL = os.environ.get' \
/root/.local/share/uv/tools/invokeai-mcp-server/lib/python*/site-packages/invokeai_mcp_server.py