Skip to content
Draft
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
6 changes: 3 additions & 3 deletions Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ tasks:
test:
desc: Run tests
cmds:
- poetry run pytest -v --show-capture=all
- uv run pytest -v --show-capture=all

clean-cache:
desc: Clean python, pytest, ruff, mypy caches
Expand All @@ -29,7 +29,7 @@ tasks:
generate-crd:
desc: Generate CRD
cmds:
- poetry run python -m src.model_deployment_operator.crd > helm/templates/crd-model-deployment.yaml
- uv run python -m src.model_deployment_operator.crd > helm/templates/crd-model-deployment.yaml

create-object:
desc: Create CRD
Expand All @@ -45,7 +45,7 @@ tasks:
desc: Generate pydantic models
cmds:
- |
poetry run datamodel-codegen --base-class kube_crd_generator.BaseModel \
uv run datamodel-codegen --base-class kube_crd_generator.BaseModel \
--enum-field-as-literal all \
--wrap-string-literal \
--input src/triton-model-config-schema/r24.01-r24.05/scheme.json \
Expand Down
10 changes: 5 additions & 5 deletions docker/jobs/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ ARG BASE_IMAGE="python"
ARG IMAGE_TAG=3.10-alpine
FROM ${BASE_IMAGE}:${IMAGE_TAG} as export_requirements_stage

ARG POETRY_VERSION=1.8.1
ARG UV_VERSION=0.7.3

RUN pip install "poetry==${POETRY_VERSION}"
RUN pip install "uv==${UV_VERSION}"

WORKDIR /workdir

COPY pyproject.toml poetry.lock ./
COPY pyproject.toml uv.lock ./

RUN poetry export --without-hashes -o requirements.txt
RUN uv export --no-hashes --no-dev --no-emit-project --output-file requirements.txt

ARG BASE_IMAGE="python"
ARG IMAGE_TAG=3.10-alpine
Expand All @@ -23,4 +23,4 @@ COPY --from=export_requirements_stage /workdir/requirements.txt ./

RUN pip install --no-cache-dir -r requirements.txt
ADD ./model_deployment_operator /workdir/model_deployment_operator
ENTRYPOINT ["python", "/workdir/model_deployment_operator/jobs/s3_to_triton.py"]
ENTRYPOINT ["python", "/workdir/model_deployment_operator/jobs/s3_to_triton.py"]
10 changes: 5 additions & 5 deletions docker/operator/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ ARG BASE_IMAGE="python"
ARG IMAGE_TAG=3.10-alpine
FROM ${BASE_IMAGE}:${IMAGE_TAG} as export_requirements_stage

ARG POETRY_VERSION=1.8.1
ARG UV_VERSION=0.7.3

RUN pip install "poetry==${POETRY_VERSION}"
RUN pip install "uv==${UV_VERSION}"

WORKDIR /workdir

COPY pyproject.toml poetry.lock ./
COPY pyproject.toml uv.lock ./

RUN poetry export --without-hashes -o requirements.txt
RUN uv export --no-hashes --no-dev --no-emit-project --output-file requirements.txt

ARG BASE_IMAGE="python"
ARG IMAGE_TAG=3.10-alpine
Expand All @@ -23,4 +23,4 @@ COPY --from=export_requirements_stage /workdir/requirements.txt ./

RUN pip install --no-cache-dir -r requirements.txt
ADD ./model_deployment_operator /workdir/model_deployment_operator
CMD ["/bin/sh", "/workdir/src/entrypoint.sh"]
CMD ["/bin/sh", "/workdir/src/entrypoint.sh"]
Loading