-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbuild.sh
More file actions
46 lines (36 loc) · 1.36 KB
/
build.sh
File metadata and controls
46 lines (36 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/bin/bash
# Build script for Kokoro FastAPI Serverless Wrapper
set -e
# Configuration - CHANGE THESE TO YOUR VALUES
GITHUB_USERNAME="${GITHUB_USERNAME:-arkodeepsen}"
IMAGE_NAME="kokoro-fastapi-serverless"
REGISTRY="ghcr.io/${GITHUB_USERNAME}"
TAG="${1:-latest}"
echo "Building ${IMAGE_NAME}:${TAG} (wrapper approach)..."
echo "Base image: ghcr.io/remsky/kokoro-fastapi-gpu:latest"
echo "Target registry: ${REGISTRY}"
# Username is set to arkodeepsen - ready to build!
# Build the wrapper Docker image
docker build \
-f Dockerfile \
-t "${IMAGE_NAME}:${TAG}" \
-t "${REGISTRY}/${IMAGE_NAME}:${TAG}" \
.
echo "✅ Build complete! Image tagged as:"
echo " ${IMAGE_NAME}:${TAG}"
echo " ${REGISTRY}/${IMAGE_NAME}:${TAG}"
echo ""
echo "📦 To push to GitHub Container Registry:"
echo " 1. Login: docker login ghcr.io -u ${GITHUB_USERNAME}"
echo " 2. Push: docker push ${REGISTRY}/${IMAGE_NAME}:${TAG}"
echo ""
echo "🧪 To test locally:"
echo " docker run --gpus all -p 8000:8000 ${IMAGE_NAME}:${TAG}"
echo ""
echo "🚀 For RunPod Serverless deployment:"
echo " 1. Push image to registry (commands above)"
echo " 2. Use image: ${REGISTRY}/${IMAGE_NAME}:${TAG}"
echo " 3. Configure GPU requirements in RunPod template"
echo ""
echo "💡 Alternative: Use GitHub Actions to build automatically"
echo " See .github/workflows/build.yml for automated builds"