File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Build and Push MLNode Image
2+
3+ on :
4+ push :
5+ branches : [main]
6+ workflow_dispatch :
7+
8+ env :
9+ REGISTRY : ghcr.io
10+ IMAGE_NAME : ${{ github.repository }}
11+
12+ jobs :
13+ build-and-push :
14+ runs-on : ubuntu-latest
15+ permissions :
16+ contents : read
17+ packages : write
18+
19+ steps :
20+ - name : Checkout
21+ uses : actions/checkout@v4
22+
23+ - name : Log in to ghcr.io
24+ uses : docker/login-action@v3
25+ with :
26+ registry : ${{ env.REGISTRY }}
27+ username : ${{ github.actor }}
28+ password : ${{ secrets.GITHUB_TOKEN }}
29+
30+ - name : Build and push
31+ uses : docker/build-push-action@v5
32+ with :
33+ context : .
34+ platforms : linux/amd64
35+ push : true
36+ tags : |
37+ ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:alpha5-opt
38+ ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
Original file line number Diff line number Diff line change 1+ FROM ghcr.io/product-science/mlnode:3.0.13-alpha5
2+
3+ # Patch 1: increase unhealthy count threshold to avoid premature restarts during warmup
4+ RUN grep -q 'MAX_UNHEALTHY_COUNT = 9999' /app/packages/api/src/api/watcher.py || \
5+ sed -i 's/MAX_UNHEALTHY_COUNT = 3/MAX_UNHEALTHY_COUNT = 9999/' \
6+ /app/packages/api/src/api/watcher.py
7+
8+ # Patch 2: setup vllm proxy on port 5001 (needed for benchmark tool)
9+ RUN grep -q 'setup_vllm_proxy' /app/packages/api/src/api/app.py || \
10+ sed -i '/await start_vllm_proxy()/a\ setup_vllm_proxy([5001])' \
11+ /app/packages/api/src/api/app.py
You can’t perform that action at this time.
0 commit comments