current state where it is working
This commit is contained in:
+12
-4
@@ -64,10 +64,18 @@ spec:
|
||||
port: http
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 5
|
||||
lifecycle:
|
||||
postStart:
|
||||
exec:
|
||||
command: ["/bin/sh", "-c", "sleep 10; ollama pull llama3.1:8b-instruct-q8_0"]
|
||||
command: ["/bin/sh", "-c"]
|
||||
args:
|
||||
- |
|
||||
# Start Ollama in background
|
||||
/bin/ollama serve &
|
||||
PID=$!
|
||||
echo "Waiting for Ollama..."
|
||||
sleep 10
|
||||
echo "Pulling model..."
|
||||
ollama pull llama3.1:8b-instruct-q8_0
|
||||
echo "Model pulled. Keeping container alive."
|
||||
wait $PID
|
||||
volumes:
|
||||
- name: ollama-storage
|
||||
persistentVolumeClaim:
|
||||
|
||||
Reference in New Issue
Block a user