Skip to content

Comments

fix: unify Poetry virtualenv to /opt/.venv and add cache-busting for dev deps (Linux dev)#143

Merged
a-klos merged 2 commits intostackitcloud:mainfrom
robodev-r2d2:fix/linux-dev-issue
Oct 20, 2025
Merged

fix: unify Poetry virtualenv to /opt/.venv and add cache-busting for dev deps (Linux dev)#143
a-klos merged 2 commits intostackitcloud:mainfrom
robodev-r2d2:fix/linux-dev-issue

Conversation

@robodev-r2d2
Copy link
Collaborator

@robodev-r2d2 robodev-r2d2 commented Oct 15, 2025

Summary:
This PR resolves Linux dev environment issues by standardizing the Poetry virtualenv location and ensuring dev dependencies are reliably installed when building with dev=1. Adjust tiltfile, so that tilt performs clean reloads, when changes are triggered.

Changes:

  • Standardize Poetry virtualenv to /opt/.venv across services.
  • Set POETRY_VIRTUALENVS_CREATE=false and POETRY_VIRTUALENVS_IN_PROJECT=false to reuse the prebuilt venv.
  • Export VIRTUAL_ENV and prepend /opt/.venv/bin to PATH in both build and runtime stages, including for nonroot.
  • Add cache-busting tied to the dev build arg to force correct installation of dev dependencies.
  • Clean up redundant PATH exports and ensure /etc/environment reflects the unified venv path.
  • Adjust tiltfile sync and ignore during image build

Scope:

  • services/admin-backend/Dockerfile
  • services/document-extractor/Dockerfile
  • services/mcp-server/Dockerfile
  • services/rag-backend/Dockerfile

Fixes: #142

@a-klos a-klos merged commit d8ea798 into stackitcloud:main Oct 20, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Backend pod crashloop on k3d/Tilt: exec /app/services/<<service-name>>/.venv/bin/poetry: no such file or directory

3 participants