Skip to content

Commit

Permalink
Actually include changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Veraticus committed Apr 5, 2024
1 parent 124f2bc commit 3351a9c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion charts/ollama/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: Get up and running with large language models locally.

type: application

version: 0.22.1
version: 0.22.2

appVersion: "0.1.30"

Expand Down
12 changes: 6 additions & 6 deletions charts/ollama/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,16 +113,16 @@ spec:
- "/bin/sh"
- "-c"
- >
apt-get update && apt-get install wget -y
mkdir -p /models
apt-get update && apt-get install wget -y;
mkdir -p /models;
{{- if or .Values.ollama.models .Values.ollama.defaultModel }}
{{ printf "echo %s | xargs -n1 /bin/ollama pull %s" (include "ollama.modelList" .) (ternary "--insecure" "" .Values.ollama.insecure)}}
{{ printf "echo %s | xargs -n1 /bin/ollama pull %s" (include "ollama.modelList" .) (ternary "--insecure" "" .Values.ollama.insecure)}};
{{- end }}
{{- range $m := .Values.ollama.customModels }}
{{- $filename := splitList "/" $m.url | last }}
wget --no-verbose --show-progress --progress=dot:mega -O /models/{{ $filename }} {{ $m.url }}
echo "FROM /models/{{ $filename }}" > /models/Modelfile-{{ $filename }}
/bin/ollama create {{ $m.name }} -f Modelfile-{{ $filename }}
wget --no-verbose --show-progress --progress=dot:mega -O /models/{{ $filename }} {{ $m.url }};
echo "FROM /models/{{ $filename }}" > /models/Modelfile-{{ $filename }};
/bin/ollama create {{ $m.name }} -f Modelfile-{{ $filename }};
{{- end }}
{{- end }}
volumes:
Expand Down

0 comments on commit 3351a9c

Please sign in to comment.