Thanks to visit codestin.com
Credit goes to github.com

Skip to content

source code for Kapstan Ray Serve blog

chris-kapstan/ray-blog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Install dependencies

python3 -m venv ray-blog
source ray-blog/bin/activate
pip install -f requirements.txt

Run the demo

python3 main.py

Build the docker image

mkdir -p ~/.buildx-cache
export CACHE_DIR=~/.buildx-cache
docker buildx create --name rayblog --use 
docker buildx build --platform linux/amd64 --cache-from=type=local,src=$CACHE_DIR --cache-to=type=local,dest=$CACHE_DIR,mode=max . -t ray-blog:latest --load

Optionally push the image to a container registry

export CONTAINER_REGISTRY=<your-registry>
docker tag ray-blog:latest $CONTAINER_REGISTRY/ray-blog:latest
docker push $CONTAINER_REGISTRY/ray-blog:latest

Apply the k8s manifest

kubectl create namespace ray-blog && kubectl apply -f ray-service.yaml

About

source code for Kapstan Ray Serve blog

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published