mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-07-23 12:57:11 +00:00
ci: use ollama container image with loaded models
Instead of downloading the models each time we now have a single Ollama container that is baked with the models pulled and ready to use. This will remove the CI flakiness on model pulling. Signed-off-by: Sébastien Han <seb@redhat.com>
This commit is contained in:
parent
692709cd45
commit
c8b5774ff3
4 changed files with 29 additions and 194 deletions
13
tests/Containerfile
Normal file
13
tests/Containerfile
Normal file
|
@ -0,0 +1,13 @@
|
|||
# Containerfile used to build our all in one ollama image to run tests in CI
|
||||
# podman build --platform linux/amd64 -f Containerfile -t ollama-with-models .
|
||||
#
|
||||
FROM --platform=linux/amd64 ollama/ollama:latest
|
||||
|
||||
# Start ollama and pull models in a single layer
|
||||
RUN ollama serve & \
|
||||
sleep 5 && \
|
||||
ollama pull llama3.2:3b-instruct-fp16 && \
|
||||
ollama pull all-minilm:latest
|
||||
|
||||
# Set the entrypoint to start ollama serve
|
||||
ENTRYPOINT ["ollama", "serve"]
|
Loading…
Add table
Add a link
Reference in a new issue