Skip to content

Commit 2256886

Browse files
committed
tests CI fix - uv installs python 3.12 now
1 parent bf06557 commit 2256886

File tree

9 files changed

+17
-13
lines changed

9 files changed

+17
-13
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ jobs:
6363
docker pull alpine:latest &
6464
docker pull confluentinc/cp-kafka:7.5.0 &
6565
docker pull confluentinc/cp-zookeeper:7.5.0 &
66-
docker pull mongo:7 &
66+
docker pull confluentinc/cp-schema-registry:7.5.0 &
67+
docker pull mongo:8.0 &
6768
docker pull redis:7-alpine &
6869
wait
6970
echo "Base images pulled successfully"

backend/Dockerfile

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
FROM python:3.12
1+
FROM python:3.12-slim
22
WORKDIR /app
33

44
# Install required packages
5-
RUN apt-get update && apt-get upgrade -y liblzma-dev liblzma5 xz-utils && \
6-
apt-get install -y libsnappy-dev && \
7-
rm -rf /var/lib/apt/lists/*
5+
RUN apt-get update && apt-get install -y \
6+
gcc \
7+
libsnappy-dev \
8+
liblzma-dev \
9+
&& rm -rf /var/lib/apt/lists/*
810

911
# Install uv
1012
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
@@ -13,7 +15,8 @@ COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
1315
COPY pyproject.toml uv.lock ./
1416

1517
# Install Python dependencies (production only, no dev deps)
16-
RUN uv sync --frozen --no-dev
18+
# --no-install-project: don't install project itself, only dependencies (source dirs don't exist yet)
19+
RUN uv sync --frozen --no-dev --no-install-project
1720

1821
# Copy application files and configuration
1922
COPY ./app /app/app

backend/workers/Dockerfile.coordinator

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
1616
COPY pyproject.toml uv.lock ./
1717

1818
# Install Python dependencies
19-
RUN uv sync --frozen --no-dev
19+
RUN uv sync --frozen --no-dev --no-install-project
2020

2121
# Copy application code
2222
COPY . .

backend/workers/Dockerfile.dlq_processor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
1515
COPY pyproject.toml uv.lock ./
1616

1717
# Install Python dependencies
18-
RUN uv sync --frozen --no-dev
18+
RUN uv sync --frozen --no-dev --no-install-project
1919

2020
# Copy application code
2121
COPY . .

backend/workers/Dockerfile.event_replay

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
1515
COPY pyproject.toml uv.lock ./
1616

1717
# Install Python dependencies
18-
RUN uv sync --frozen --no-dev
18+
RUN uv sync --frozen --no-dev --no-install-project
1919

2020
# Copy application code
2121
COPY . .

backend/workers/Dockerfile.k8s_worker

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
1515
COPY pyproject.toml uv.lock ./
1616

1717
# Install Python dependencies
18-
RUN uv sync --frozen --no-dev
18+
RUN uv sync --frozen --no-dev --no-install-project
1919

2020
# Copy application code
2121
COPY . .

backend/workers/Dockerfile.pod_monitor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
1515
COPY pyproject.toml uv.lock ./
1616

1717
# Install Python dependencies
18-
RUN uv sync --frozen --no-dev
18+
RUN uv sync --frozen --no-dev --no-install-project
1919

2020
# Copy application code
2121
COPY . .

backend/workers/Dockerfile.result_processor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
1515
COPY pyproject.toml uv.lock ./
1616

1717
# Install Python dependencies
18-
RUN uv sync --frozen --no-dev
18+
RUN uv sync --frozen --no-dev --no-install-project
1919

2020
# Copy application code
2121
COPY . .

backend/workers/Dockerfile.saga_orchestrator

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
1515
COPY pyproject.toml uv.lock ./
1616

1717
# Install Python dependencies
18-
RUN uv sync --frozen --no-dev
18+
RUN uv sync --frozen --no-dev --no-install-project
1919

2020
# Copy application code
2121
COPY . .

0 commit comments

Comments
 (0)