[model-gateway] add model gateway multi-arch docker build, test and document docker image (#15544)
This commit is contained in:
@@ -335,7 +335,7 @@ jobs:
|
|||||||
context: .
|
context: .
|
||||||
file: docker/gateway.Dockerfile
|
file: docker/gateway.Dockerfile
|
||||||
push: false
|
push: false
|
||||||
tags: sglang-router:test
|
tags: sgl-model-gateway:test
|
||||||
cache-from: type=gha
|
cache-from: type=gha
|
||||||
cache-to: type=gha,mode=max
|
cache-to: type=gha,mode=max
|
||||||
|
|
||||||
|
|||||||
@@ -15,8 +15,14 @@ jobs:
|
|||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v3
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
- name: Login to Docker Hub
|
- name: Login to Docker Hub
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
@@ -26,7 +32,8 @@ jobs:
|
|||||||
version=$(cat sgl-model-gateway/bindings/python/sglang_router/version.py | cut -d'"' -f2)
|
version=$(cat sgl-model-gateway/bindings/python/sglang_router/version.py | cut -d'"' -f2)
|
||||||
tag=v${version}
|
tag=v${version}
|
||||||
|
|
||||||
docker build . -f docker/gateway.Dockerfile -t lmsysorg/sgl-model-gateway:${tag} --no-cache
|
docker buildx build . -f docker/gateway.Dockerfile \
|
||||||
docker tag lmsysorg/sgl-model-gateway:${tag} lmsysorg/sgl-model-gateway:latest
|
--platform linux/amd64,linux/arm64 \
|
||||||
docker push lmsysorg/sgl-model-gateway:${tag}
|
-t lmsysorg/sgl-model-gateway:${tag} \
|
||||||
docker push lmsysorg/sgl-model-gateway:latest
|
-t lmsysorg/sgl-model-gateway:latest \
|
||||||
|
--push
|
||||||
|
|||||||
@@ -43,6 +43,13 @@ High-performance model routing control and data plane for large-scale LLM deploy
|
|||||||
- Additional guides, API references, and deployment patterns are continuously updated alongside SGLang releases.
|
- Additional guides, API references, and deployment patterns are continuously updated alongside SGLang releases.
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
|
### Docker
|
||||||
|
Pre-built Docker images are available on Docker Hub with multi-architecture support (x86_64 and ARM64):
|
||||||
|
```bash
|
||||||
|
docker pull lmsysorg/sgl-model-gateway:latest
|
||||||
|
```
|
||||||
|
|
||||||
### Prerequisites
|
### Prerequisites
|
||||||
- **Rust and Cargo**
|
- **Rust and Cargo**
|
||||||
```bash
|
```bash
|
||||||
|
|||||||
Reference in New Issue
Block a user