-
Notifications
You must be signed in to change notification settings - Fork 84
feat: move mock images to official repo #852
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
base: main
Are you sure you want to change the base?
Changes from 4 commits
5d887fd
fad0b6b
eb92204
78840c2
8cf158c
f65c6a2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| name: Build and Push Mock Images | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| paths: | ||
| - hack/mock-images/** | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| build-vllm-mock: | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: read | ||
| packages: write | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Log in to GHCR | ||
| uses: docker/login-action@v3 | ||
| with: | ||
| registry: ghcr.io | ||
| username: ${{ github.actor }} | ||
| password: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| - name: Build and push vllm-mock | ||
| uses: docker/build-push-action@v5 | ||
| with: | ||
| context: hack/mock-images/vllm-mock | ||
| push: true | ||
| tags: ghcr.io/volcano-sh/vllm-mock:latest | ||
|
Comment on lines
+28
to
+33
|
||
|
|
||
|
Comment on lines
+28
to
+34
|
||
| build-sglang-mock: | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: read | ||
| packages: write | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Log in to GHCR | ||
| uses: docker/login-action@v3 | ||
| with: | ||
| registry: ghcr.io | ||
| username: ${{ github.actor }} | ||
| password: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| - name: Build and push sglang-mock | ||
| uses: docker/build-push-action@v5 | ||
| with: | ||
| context: hack/mock-images/sglang-mock | ||
| push: true | ||
| tags: ghcr.io/volcano-sh/sglang-mock:latest | ||
|
||
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -2,7 +2,7 @@ | |||||||||
| # The mock server will return a fixed response for any input. | ||||||||||
| # You can use this mock server to test the inference router without deploying a real LLM server. | ||||||||||
| # | ||||||||||
| # NOTE: `ghcr.io/yaozengzeng/vllm-mock:latest` is built based on `https://github.com/YaoZengzeng/aibrix/tree/vllm-mock`. | ||||||||||
| # NOTE: `ghcr.io/volcano-sh/vllm-mock:latest` is built based on `https://github.com/volcano-sh/kthena/tree/main/hack/mock-images/vllm-mock`. | ||||||||||
| # Move the image to kthena registry once it's public. | ||||||||||
|
Comment on lines
+5
to
6
|
||||||||||
| # NOTE: `ghcr.io/volcano-sh/vllm-mock:latest` is built based on `https://github.com/volcano-sh/kthena/tree/main/hack/mock-images/vllm-mock`. | |
| # Move the image to kthena registry once it's public. | |
| # NOTE: `ghcr.io/volcano-sh/vllm-mock:latest` is built from | |
| # `https://github.com/volcano-sh/kthena/tree/main/hack/mock-images/vllm-mock`. |
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
|
|
@@ -2,7 +2,7 @@ | |||
| # The mock server will return a fixed response for any input. | ||||
| # You can use this mock server to test the inference router without deploying a real LLM server. | ||||
| # | ||||
| # NOTE: `ghcr.io/yaozengzeng/vllm-mock:latest` is built based on `https://github.com/YaoZengzeng/aibrix/tree/vllm-mock`. | ||||
| # NOTE: `ghcr.io/volcano-sh/vllm-mock:latest` is built based on `https://github.com/volcano-sh/kthena/tree/main/hack/mock-images/vllm-mock`. | ||||
| # Move the image to kthena registry once it's public. | ||||
|
||||
| # Move the image to kthena registry once it's public. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,7 +2,7 @@ | |
| # The mock server will return a fixed response for any input. | ||
| # You can use this mock server to test the inference router without deploying a real LLM server. | ||
| # | ||
| # NOTE: `ghcr.io/yaozengzeng/vllm-mock:latest` is built based on `https://github.com/YaoZengzeng/aibrix/tree/vllm-mock`. | ||
| # NOTE: `ghcr.io/volcano-sh/vllm-mock:latest` is built based on `https://github.com/volcano-sh/kthena/tree/main/hack/mock-images/vllm-mock`. | ||
| # Move the image to kthena registry once it's public. | ||
|
Comment on lines
+5
to
6
|
||
|
|
||
| apiVersion: apps/v1 | ||
|
|
@@ -21,7 +21,7 @@ spec: | |
| spec: | ||
| containers: | ||
| - name: llm-engine | ||
| image: ghcr.io/yaozengzeng/vllm-mock:latest | ||
| image: ghcr.io/volcano-sh/vllm-mock:latest | ||
| imagePullPolicy: IfNotPresent | ||
| env: | ||
| # specify the model name to mock | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,7 +2,7 @@ | |
| # The mock server will return a fixed response for any input. | ||
| # You can use this mock server to test the inference router without deploying a real LLM server. | ||
| # | ||
| # NOTE: `ghcr.io/yaozengzeng/vllm-mock:latest` is built based on `https://github.com/YaoZengzeng/aibrix/tree/vllm-mock`. | ||
| # NOTE: `ghcr.io/volcano-sh/vllm-mock:latest` is built based on `https://github.com/volcano-sh/kthena/tree/main/hack/mock-images/vllm-mock`. | ||
| # Move the image to kthena registry once it's public. | ||
|
Comment on lines
+5
to
6
|
||
|
|
||
| apiVersion: apps/v1 | ||
|
|
@@ -21,7 +21,7 @@ spec: | |
| spec: | ||
| containers: | ||
| - name: llm-engine | ||
| image: ghcr.io/yaozengzeng/vllm-mock:latest | ||
| image: ghcr.io/volcano-sh/vllm-mock:latest | ||
| imagePullPolicy: IfNotPresent | ||
| env: | ||
| # specify the model name to mock | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -2,7 +2,7 @@ | |||||||
| # The mock server will return a fixed response for any input. | ||||||||
| # You can use this mock server to test the inference router without deploying a real LLM server. | ||||||||
| # | ||||||||
| # NOTE: `ghcr.io/yaozengzeng/vllm-mock:latest` is built based on `https://github.com/YaoZengzeng/aibrix/tree/vllm-mock`. | ||||||||
| # NOTE: `ghcr.io/volcano-sh/vllm-mock:latest` is built based on `https://github.com/volcano-sh/kthena/tree/main/hack/mock-images/vllm-mock`. | ||||||||
| # Move the image to kthena registry once it's public. | ||||||||
|
||||||||
| # Move the image to kthena registry once it's public. | |
| # The image is published in the `volcano-sh` GHCR namespace by the official kthena build/publish workflow. |
Copilot
AI
Apr 13, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment “Move the image to kthena registry once it's public.” appears outdated now that the example already references ghcr.io/volcano-sh/vllm-mock:latest. Consider removing or updating this note to avoid confusion.
| # Move the image to kthena registry once it's public. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| FROM python:3.11-slim | ||
|
|
||
| WORKDIR /app | ||
|
|
||
| COPY requirements.txt . | ||
| RUN pip install --no-cache-dir -r requirements.txt | ||
|
|
||
| COPY . . | ||
|
|
||
| CMD ["python", "sglang_app.py"] |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| flask |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR description says “update all image references from personal registries accordingly”, but there is still at least one reference to a personal registry image (
ghcr.io/huntersman/vllm-cpu-env:latest) intest/e2e/README.md(line ~40). Either update that reference too, or clarify in the PR description that only the mock images are being moved/updated.