Skip to content

Commit 135a404

Browse files
maryamtahhancursoragent
authored andcommitted
fix(mcv): install python3 and build MCV image in example CI
The example image workflow pulled quay.io/gkm/mcv:latest before the post-merge image build finished, so Triton cache key generation failed without a python3 binary. Build mcv-minimal from the checkout instead and install python3 explicitly in runtime image stages. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent af0ec76 commit 135a404

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

.github/workflows/mcv-build-example-images.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,13 @@ jobs:
6161
registry: ${{ env.REGISTRY }}
6262
username: ${{ secrets.QUAY_USERNAME }}
6363
password: ${{ secrets.QUAY_PASSWORD }}
64-
- name: Pull MCV builder image
65-
run: podman pull quay.io/gkm/mcv:latest
64+
- name: Build MCV builder image from checkout
65+
run: |
66+
podman build \
67+
--platform linux/amd64 \
68+
--target mcv-minimal \
69+
-t quay.io/gkm/mcv:latest \
70+
-f mcv/images/Containerfile .
6671
6772
- name: Build images inside MCV container and load to host
6873
env:

mcv/images/Containerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
6363
netavark aardvark-dns \
6464
fuse-overlayfs fuse3 \
6565
hwdata \
66+
python3 \
6667
python3-setuptools \
6768
python3-wheel \
6869
&& rm -rf /var/lib/apt/lists/*
@@ -155,6 +156,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
155156
netavark aardvark-dns \
156157
fuse-overlayfs fuse3 \
157158
hwdata \
159+
python3 \
158160
python3-setuptools \
159161
python3-wheel \
160162
&& rm -rf /var/lib/apt/lists/*
@@ -202,6 +204,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
202204
netavark aardvark-dns \
203205
fuse-overlayfs fuse3 \
204206
hwdata \
207+
python3 \
205208
python3-setuptools \
206209
python3-wheel \
207210
&& rm -rf /var/lib/apt/lists/*

0 commit comments

Comments
 (0)