Skip to content
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
6 changes: 6 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
FROM mcr.microsoft.com/devcontainers/python:3.11-bullseye

# Route npm/corepack traffic (used during devcontainer feature installation,
# e.g. ghcr.io/devcontainers/features/node) through the internal package feed
# proxy, since the public npmjs.org registry is blocked/unreachable on this
# network and causes feature install failures (ERR_SSL_SSL/TLS_ALERT_HANDSHAKE_FAILURE).
ENV NPM_CONFIG_REGISTRY=https://packagefeedproxy.microsoft.io/npm/

# Remove Yarn repository to avoid GPG key expiration issue
RUN rm -f /etc/apt/sources.list.d/yarn.list
7 changes: 5 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"features": {
"ghcr.io/devcontainers/features/docker-in-docker:2": {"version": "latest"},
"ghcr.io/azure/azure-dev/azd:latest": {},
"ghcr.io/devcontainers/features/node:1": {},
"ghcr.io/devcontainers/features/node:1": {"pnpmVersion": "none"},
"ghcr.io/devcontainers/features/azure-cli:1": {
"installBicep": true,
"version": "latest",
Expand Down Expand Up @@ -46,7 +46,10 @@
"DISPLAY": "dummy",
"PYTHONUNBUFFERED": "True",
"UV_LINK_MODE": "copy",
"UV_PROJECT_ENVIRONMENT": "/home/vscode/.venv"
"UV_PROJECT_ENVIRONMENT": "/home/vscode/.venv",
"PIP_INDEX_URL": "https://packagefeedproxy.microsoft.io/pypi/simple/",
"UV_INDEX_URL": "https://packagefeedproxy.microsoft.io/pypi/simple/",
"NPM_CONFIG_REGISTRY": "https://packagefeedproxy.microsoft.io/npm/"
},
"remoteUser": "vscode",
"hostRequirements": {
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/setupEnv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ set -e

echo "Setting up Backend..."
cd ./src/backend
uv sync --frozen --extra dev
uv sync --frozen
cd ../../

echo "Setting up Frontend..."
Expand Down
1 change: 1 addition & 0 deletions .github/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
--index-url https://packagefeedproxy.microsoft.io/pypi/simple/
fastapi==0.136.1
uvicorn==0.35.0
azure-cosmos==4.15.0
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ jobs:

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade pip --index-url https://packagefeedproxy.microsoft.io/pypi/simple/
pip install -r .github/requirements.txt
pip install flake8 # Ensure flake8 is installed explicitly
pip install --index-url https://packagefeedproxy.microsoft.io/pypi/simple/ flake8 # Ensure flake8 is installed explicitly

- name: Run flake8 and pylint
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-automation-v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade pip --index-url https://packagefeedproxy.microsoft.io/pypi/simple/
pip install -r tests/e2e-test/requirements.txt

- name: Ensure browsers are installed
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-automation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade pip --index-url https://packagefeedproxy.microsoft.io/pypi/simple/
pip install -r tests/e2e-test/requirements.txt

- name: Ensure browsers are installed
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade pip --index-url https://packagefeedproxy.microsoft.io/pypi/simple/
pip install -r .github/requirements.txt

- name: Check if test files exist
Expand Down
1 change: 1 addition & 0 deletions infra/scripts/post-provision/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
--index-url https://packagefeedproxy.microsoft.io/pypi/simple/
azure-search-documents==11.5.3
azure-identity==1.24.0
azure-storage-blob==12.26.0
Expand Down
1 change: 1 addition & 0 deletions infra/vscode_web/endpoint-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
--index-url https://packagefeedproxy.microsoft.io/pypi/simple/
azure-ai-projects==1.0.0b12
azure-identity==1.20.0
ansible-core~=2.17.0
1 change: 1 addition & 0 deletions infra/vscode_web/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
--index-url https://packagefeedproxy.microsoft.io/pypi/simple/
azure-ai-projects==1.0.0b12
azure-identity==1.20.0
ansible-core~=2.17.0
1 change: 1 addition & 0 deletions src/App/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
registry=https://packagefeedproxy.microsoft.io/npm/
10 changes: 7 additions & 3 deletions src/App/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ FROM node:20-alpine AS frontend-builder

WORKDIR /app/frontend

# Copy package files first for better caching
COPY package*.json ./
# Copy package files and npm registry config (packagefeedproxy) first for better caching
COPY package*.json .npmrc* ./

# Install dependencies
# Install dependencies (registry is routed through the Microsoft Package Feed Proxy via .npmrc)
RUN npm ci --silent

# Copy source files
Expand All @@ -28,6 +28,10 @@ COPY --from=ghcr.io/astral-sh/uv:0.6.3 /uv /uvx /bin/
# Setup UV environment variables
ENV UV_COMPILE_BYTECODE=1 UV_LINK_MODE=copy

# Route pip/uv package resolution through the Microsoft Package Feed Proxy
ENV UV_INDEX_URL=https://packagefeedproxy.microsoft.io/pypi/simple/ \
PIP_INDEX_URL=https://packagefeedproxy.microsoft.io/pypi/simple/

WORKDIR /app

# Copy Python project definition files
Expand Down
Loading