Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update python deps in vector-serve container #155

Merged
merged 3 commits into from
Oct 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/build-vector-serve.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.11.1
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.11.1
python-version: 3.12.7
- name: Setup
run: make setup
- name: Init Model Cache
Expand Down
8 changes: 1 addition & 7 deletions .github/workflows/extension_upgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,11 @@ on:
paths:
- ".github/workflows/extension_upgrade.yml"
- "extension/**"
push:
branches:
- main
paths:
- ".github/workflows/extension_upgrade.yml"
- "extension/**"

jobs:
test:
name: Upgrade Test
runs-on: ubuntu-24.04
runs-on: ubuntu-latest
services:
vector-serve:
image: quay.io/tembo/vector-serve:latest
Expand Down
4 changes: 2 additions & 2 deletions vector-serve/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.12.3-slim-bookworm
FROM python:3.12.7-slim-bookworm

RUN apt-get update && \
apt-get install -y curl make && \
Expand All @@ -19,4 +19,4 @@ RUN curl -sSL https://install.python-poetry.org | POETRY_VERSION=1.7.1 python3 -
find $POETRY_HOME -type d -name "__pycache__" -exec rm -rf {} + && \
poetry run python -m app.models

CMD ["poetry", "run", "uvicorn", "app.app:app", "--host", "0.0.0.0", "--port", "3000", "--workers", "1"]
CMD ["poetry", "run", "fastapi", "run", "app/app.py", "--host", "0.0.0.0", "--port", "3000", "--workers", "1"]
1 change: 1 addition & 0 deletions vector-serve/app/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
try:
MULTI_MODEL = int(os.getenv("MULTI_MODEL", 1))
except Exception:
logging.exception("Failed to parse MULTI_MODEL env var")
MULTI_MODEL = 1


Expand Down
Loading
Loading