Adjust location that uv creates venv#1982
Conversation
Greptile SummaryThis PR relocates
|
| Filename | Overview |
|---|---|
| Dockerfile | Relocates uv and its Python installs from /root/.local to /opt/uv; updates PATH in install and service stages accordingly; adds [all] extras to the editable install; removes now-unnecessary chmod on /root/.local. |
| nemo_retriever/src/nemo_retriever/service/routers/ingest.py | Adds a warning log (with exc_info=True) to the previously silent except block that falls back to total_pages=1 when PDF page counting fails. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart TD
A["docker build"] --> B["FROM base"]
B --> B1["curl install uv → /opt/uv/bin"]
B1 --> B2["ENV PATH=/opt/uv/bin:$PATH\nENV UV_PYTHON_INSTALL_DIR=/opt/uv/python"]
B2 --> B3["uv python install 3.12\nuv venv /opt/retriever_runtime"]
B3 --> B4["pip install openai, cuda-toolkit"]
B4 --> C["FROM base AS install"]
C --> C1["ENV VIRTUAL_ENV=/opt/retriever_runtime\nENV PATH=/opt/retriever_runtime/bin:/opt/uv/bin:$PATH"]
C1 --> C2["uv pip install -e './nemo_retriever[all]'"]
C2 --> D["FROM install AS service"]
D --> D1["groupadd nemo; useradd nemo"]
D1 --> D2["chown nemo:nemo /workspace /etc/nemo-retriever\n/var/lib/nemo-retriever /opt/retriever_runtime"]
D2 --> D3["USER nemo"]
D3 --> D4["CMD retriever service start"]
Reviews (3): Last reviewed commit: "log warning if count fails" | Re-trigger Greptile
Description
Checklist