- Local registry for KIND
We’ll run a registry container named kind-registry on port 5001 and attach it to the kind network so nodes can pull via kind-registry:5001/....
#!/usr/bin/env bash
set -euo pipefail
| FROM openeuler/vllm-cpu:0.9.1-oe2403lts | |
| # Patch the cpu_worker.py to handle zero NUMA nodes | |
| RUN sed -i 's/cpu_count_per_numa = cpu_count \/\/ numa_size/cpu_count_per_numa = cpu_count \/\/ numa_size if numa_size > 0 else cpu_count/g' \ | |
| /workspace/vllm/vllm/worker/cpu_worker.py | |
| ENV VLLM_TARGET_DEVICE=cpu \ | |
| VLLM_CPU_KVCACHE_SPACE=1 \ | |
| OMP_NUM_THREADS=2 \ | |
| OPENBLAS_NUM_THREADS=1 \ |
| apiVersion: v1 | |
| kind: Pod | |
| metadata: | |
| name: db | |
| labels: | |
| app: postgres | |
| role: database | |
| tier: back | |
| spec: | |
| containers: |
| # .trivyignore | |
| # Trivy ignore file for known false positives or accepted risks | |
| # Example: Ignore specific CVE that doesn't affect our use case | |
| # CVE-2023-12345 | |
| # Example: Ignore vulnerabilities in specific packages | |
| # pkg:pypi/package-name@version | |
| # Note: Only ignore vulnerabilities after proper risk assessment |
| name: CI Pipeline | |
| on: | |
| push: | |
| branches: [ "main", "develop" ] | |
| env: | |
| REGISTRY: docker.io | |
| IMAGE_NAME: ${{ secrets.DOCKERHUB_USERNAME }}/tech-stack-advisor |
| name: CI Pipeline | |
| on: | |
| push: | |
| branches: [ "main", "develop" ] | |
| env: | |
| REGISTRY: docker.io | |
| IMAGE_NAME: ${{ secrets.DOCKERHUB_USERNAME }}/tech-stack-advisor |
| version: '3.8' | |
| services: | |
| tech-stack-advisor: | |
| build: . | |
| ports: | |
| - "7860:7860" | |
| environment: | |
| - ENV=production | |
| healthcheck: |
| name: Goose AI PR Review | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened, labeled] | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| pull-requests: write |
| You are an expert DevOps engineer reviewing code changes for a machine learning application. | |
| Focus your review on these key areas: | |
| ## 🐳 Docker & Containerization | |
| - Dockerfile best practices and optimization | |
| - Multi-stage builds and layer efficiency | |
| - Security considerations (non-root users, minimal base images) | |
| - Health checks and restart policies |
| # syntax=docker/dockerfile:1 | |
| # BuildKit optimized Dockerfile with advanced caching and multi-arch support | |
| ARG TARGETPLATFORM | |
| ARG BUILDPLATFORM | |
| ARG TARGETOS | |
| ARG TARGETARCH | |
| # Stage 1: Dependencies stage with cache mounts | |
| FROM --platform=$BUILDPLATFORM python:3.11-slim AS dependencies |