This repository was archived by the owner on Jun 5, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -167,7 +167,7 @@ jobs:
167167 cleanup_container
168168
169169 echo "Starting Ollama container (Attempt $(($retry_count + 1))/$MAX_RETRIES)"
170- docker run -d -v ollama:/root/.ollama --network host --name ollama ollama/ollama
170+ docker run -d -v ollama:/root/.ollama --network host --name ollama -e OLLAMA_LOG_LEVEL=DEBUG ollama/ollama
171171
172172 # Wait for endpoint to be available
173173 endpoint_wait=0
@@ -191,7 +191,7 @@ jobs:
191191
192192 # Monitor container and model status
193193 monitor_count=0
194- while [ $monitor_count -lt 60 ]; do # 5 minute timeout per attempt
194+ while [ $monitor_count -lt 90 ]; do # 7.5 minutes
195195 # Check if container is still running
196196 if ! docker ps | grep -q ollama; then
197197 echo "Container crashed, logs:"
@@ -206,12 +206,12 @@ jobs:
206206 exit 0 # Success!
207207 fi
208208
209- echo "Model not ready yet. Waiting... ($(($monitor_count + 1))/60 )"
209+ echo "Model not ready yet. Waiting... ($(($monitor_count + 1))/90 )"
210210 sleep 5
211211 monitor_count=$((monitor_count + 1))
212212 done
213213
214- if [ $monitor_count -eq 60 ]; then
214+ if [ $monitor_count -eq 90 ]; then
215215 echo "Timeout waiting for model, container logs:"
216216 docker logs ollama
217217 retry_count=$((retry_count + 1))
You can’t perform that action at this time.
0 commit comments