Skip to content

include custom packagess in the container #202

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

Open
wants to merge 6 commits into
base: ignite2024
Choose a base branch
from
Open
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
2 changes: 2 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ COPY packages packages
# Copy requirements.txt and install the Python packages
# Install keyring-related and IPython packages in the same layer to reduce the image size and build time
COPY requirements.txt .
COPY ./packages/whl-packages/azure_ai_inference-1.0.0b6-py3-none-any.whl ./packages/whl-packages/azure_ai_inference-1.0.0b6-py3-none-any.whl
COPY ./packages/whl-packages/azure_ai_projects-1.0.0b1-py3-none-any.whl ./packages/whl-packages/azure_ai_projects-1.0.0b1-py3-none-any.whl
RUN pip install -r requirements.txt \
&& pip install keyrings.alt dbus-python ipython ipykernel

Expand Down
9 changes: 5 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,16 @@ pandas
azure-identity==1.17.1
jupyter
Jinja2==3.1.4
#azure-ai-inference[opentelemetry]
opentelemetry-sdk
azure-monitor-opentelemetry
opentelemetry-instrumentation-fastapi
opentelemetry-instrumentation
opentelemetry-exporter-otlp-proto-grpc
azure-ai-evaluation
azure-monitor-query
uvicorn
opentelemetry-instrumentation-openai-v2
#azure-ai-projects
./packages/whl-packages/azure_ai_projects-1.0.0b1-py3-none-any.whl
./packages/whl-packages/azure_ai_inference-1.0.0b6-py3-none-any.whl
# azure-ai-inference[opentelemetry] ./packages/whl packages
# azure-ai-projects is not available in PyPI install it from the ./packages/whl packages
./packages/whl-packages/azure_ai_inference-1.0.0b6-py3-none-any.whl
./packages/whl-packages/azure_ai_projects-1.0.0b1-py3-none-any.wh
2 changes: 2 additions & 0 deletions src/api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ WORKDIR /app
COPY packages /app/packages

COPY requirements.txt .
COPY ../../packages/whl-packages/azure_ai_inference-1.0.0b6-py3-none-any.whl ./packages/whl-packages/azure_ai_inference-1.0.0b6-py3-none-any.whl
COPY ../../packages/whl-packages/azure_ai_projects-1.0.0b1-py3-none-any.whl ./packages/whl-packages/azure_ai_projects-1.0.0b1-py3-none-any.whl

RUN pip install --no-cache-dir -r requirements.txt

Expand Down
6 changes: 3 additions & 3 deletions src/api/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ pandas
azure-identity==1.17.1
jupyter
Jinja2==3.1.4
#azure-ai-inference[opentelemetry]
opentelemetry-sdk
azure-monitor-opentelemetry
opentelemetry-instrumentation-fastapi
Expand All @@ -25,6 +24,7 @@ opentelemetry-exporter-otlp-proto-grpc
azure-ai-evaluation
azure-monitor-query
opentelemetry-instrumentation-openai-v2
#azure-ai-projects
# azure-ai-inference[opentelemetry] ./packages/whl packages
# azure-ai-projects is not available in PyPI install it from the ./packages/whl packages
./packages/whl-packages/azure_ai_inference-1.0.0b6-py3-none-any.whl
./packages/whl-packages/azure_ai_projects-1.0.0b1-py3-none-any.whl
./packages/whl-packages/azure_ai_inference-1.0.0b6-py3-none-any.whl