Skip to content

Commit 5e646ab

Browse files
committed
deploy.Dockerfile: default VTK_VERSION=9.6.1 (only published artifact); make prefetch non-fatal
1 parent 8644cbf commit 5e646ab

2 files changed

Lines changed: 9 additions & 4 deletions

File tree

deploy.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ENV PIP_DISABLE_PIP_VERSION_CHECK=1 \
1111
PYTHONUNBUFFERED=1
1212

1313
# VTK version to pre-cache at image build time
14-
ARG VTK_VERSION=9.3.0
14+
ARG VTK_VERSION=9.6.1
1515
ENV VTK_MCP_VTK_VERSION=${VTK_VERSION}
1616

1717
RUN apt-get update && \

scripts/prefetch_artifacts.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,18 @@
1010

1111
vtk_version = os.environ["VTK_MCP_VTK_VERSION"]
1212

13-
from vtk_knowledge import VTKAPIIndex
13+
try:
14+
from vtk_knowledge import VTKAPIIndex
1415

15-
VTKAPIIndex.from_artifact(vtk_version)
16+
VTKAPIIndex.from_artifact(vtk_version)
17+
logging.info("vtk-knowledge artifact cached for %s", vtk_version)
18+
except Exception as e:
19+
logging.warning("vtk-knowledge artifact not cached (will download at runtime): %s", e)
1620

1721
try:
1822
from vtk_index import Retriever
1923

2024
Retriever.from_artifact(vtk_version)
25+
logging.info("vtk-index embedded storage cached for %s", vtk_version)
2126
except Exception as e:
22-
logging.warning("vtk-index embedded storage skipped: %s", e)
27+
logging.warning("vtk-index embedded storage not cached (will download at runtime): %s", e)

0 commit comments

Comments
 (0)