minor tweaks, fixed python in build
This commit is contained in:
+1
-13
@@ -79,19 +79,7 @@ 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 && \
|
||||
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)
|
||||
" && \
|
||||
python -c 'import glob; path=glob.glob("/root/.local/share/uv/tools/invokeai-mcp-server/lib/python*/site-packages/invokeai_mcp_server.py")[0]; c=open(path).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\")"); open(path,"w").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
|
||||
|
||||
|
||||
@@ -38,12 +38,18 @@ docker buildx build --no-cache -t 4lights/claudaris:latest .
|
||||
Make sure the volumes are as you like and start the container.
|
||||
```
|
||||
sudo ./claudaris start
|
||||
or
|
||||
docker compose up -d
|
||||
```
|
||||
|
||||
## Connect to the container
|
||||
|
||||
```
|
||||
sudo ./claudaris connect
|
||||
# or
|
||||
docker compose exec claudaris bash
|
||||
# or
|
||||
docker compose exec claudaris tmux
|
||||
```
|
||||
|
||||
## Stop and remove the container
|
||||
|
||||
Reference in New Issue
Block a user