moved cache to home, added addon reference values and makefile targets to push to OCI
This commit is contained in:
parent
c01a078ac3
commit
3dc4fed955
|
|
@ -47,3 +47,6 @@ cscope.*
|
||||||
# Helm chart dependecies cache
|
# Helm chart dependecies cache
|
||||||
**/Chart.lock
|
**/Chart.lock
|
||||||
**/charts/*.tgz
|
**/charts/*.tgz
|
||||||
|
|
||||||
|
# Helm chart output directory
|
||||||
|
ai/ai-starter-kit/out
|
||||||
|
|
@ -1,13 +1,31 @@
|
||||||
|
.PHONY: check_hf_token check_OCI_target package_helm lint dep_update install install_gke start uninstall push_helm
|
||||||
|
|
||||||
|
check_hf_token:
|
||||||
|
ifndef HF_TOKEN
|
||||||
|
$(error HF_TOKEN is not set)
|
||||||
|
endif
|
||||||
|
|
||||||
|
check_OCI_target:
|
||||||
|
ifndef OCI_HELM_TARGET
|
||||||
|
$(error OCI_HELM_TARGET is not set)
|
||||||
|
endif
|
||||||
|
|
||||||
|
package_helm:
|
||||||
|
helm package helm-chart/ai-starter-kit/ --destination out/
|
||||||
|
|
||||||
|
push_helm: check_OCI_target
|
||||||
|
helm push out/ai-starter-kit* oci://$$OCI_HELM_TARGET
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
helm lint helm-chart/ai-starter-kit
|
helm lint helm-chart/ai-starter-kit
|
||||||
|
|
||||||
dep_update:
|
dep_update:
|
||||||
helm dependency update helm-chart/ai-starter-kit
|
helm dependency update helm-chart/ai-starter-kit
|
||||||
|
|
||||||
install:
|
install: check_hf_token
|
||||||
helm upgrade --install ai-starter-kit helm-chart/ai-starter-kit --set huggingface.token="your_hf_token" --timeout 10m -f helm-chart/ai-starter-kit/values.yaml
|
helm upgrade --install ai-starter-kit helm-chart/ai-starter-kit --set huggingface.token="your_hf_token" --timeout 10m -f helm-chart/ai-starter-kit/values.yaml
|
||||||
|
|
||||||
install_gke:
|
install_gke: check_hf_token
|
||||||
helm upgrade --install ai-starter-kit helm-chart/ai-starter-kit --set huggingface.token="your_hf_token" --timeout 10m -f helm-chart/ai-starter-kit/values-gke.yaml
|
helm upgrade --install ai-starter-kit helm-chart/ai-starter-kit --set huggingface.token="your_hf_token" --timeout 10m -f helm-chart/ai-starter-kit/values-gke.yaml
|
||||||
|
|
||||||
start:
|
start:
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,13 @@
|
||||||
|
ray-cluster:
|
||||||
|
enabled: false
|
||||||
|
|
||||||
|
ramalama:
|
||||||
|
enabled: true
|
||||||
|
command:
|
||||||
|
- /bin/sh
|
||||||
|
- -c
|
||||||
|
- ramalama pull qwen2.5:1.5b && ramalama serve qwen2.5:1.5b --port 8080
|
||||||
|
image:
|
||||||
|
repository: "quay.io/ramalama/ramalama"
|
||||||
|
tag: "latest"
|
||||||
|
pullPolicy: IfNotPresent
|
||||||
Loading…
Reference in New Issue