Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ollama/CVEs_0.21.0.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Vulnerability Report for getwilds/ollama:0.21.0

Report generated on 2026-05-21 20:36:02 PST
Report generated on 2026-05-22 18:48:05 PST

## Platform Coverage

Expand All @@ -10,7 +10,7 @@ This vulnerability scan covers the **linux/amd64** platform. While this image al

Docker Scout scan was skipped for this image because it exceeds the size limit.

**Image size:** 3.7 GB
**Image size:** 4.1 GB
**Size limit:** 3.0 GB

Large images can cause timeouts and resource exhaustion in CI/CD environments. If you need a vulnerability scan for this image, please run it manually:
Expand Down
4 changes: 2 additions & 2 deletions ollama/CVEs_latest.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Vulnerability Report for getwilds/ollama:latest

Report generated on 2026-05-21 20:50:21 PST
Report generated on 2026-05-22 19:21:27 PST

## Platform Coverage

Expand All @@ -10,7 +10,7 @@ This vulnerability scan covers the **linux/amd64** platform. While this image al

Docker Scout scan was skipped for this image because it exceeds the size limit.

**Image size:** 3.7 GB
**Image size:** 4.1 GB
**Size limit:** 3.0 GB

Large images can cause timeouts and resource exhaustion in CI/CD environments. If you need a vulnerability scan for this image, please run it manually:
Expand Down
23 changes: 20 additions & 3 deletions ollama/Dockerfile_0.21.0
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,14 @@ RUN apt-get update \
&& rm -rf /var/lib/apt/lists/*

RUN pip3 install --no-cache-dir --break-system-packages \
ollama==0.6.1 \
chromadb==1.5.9
--index-url https://download.pytorch.org/whl/cpu \
torch==2.12.0+cpu \
&& pip3 install --no-cache-dir --break-system-packages \
ollama==0.6.1 \
chromadb==1.5.9 \
rapidfuzz==3.14.5 \
sentence-transformers==5.5.1 \
llama-index-embeddings-huggingface==0.7.0

ARG TARGETARCH
ARG SPROCKET_VERSION=0.23.0
Expand All @@ -54,7 +60,18 @@ RUN if [ "$TARGETARCH" = "arm64" ]; then \
&& tar -xzf /tmp/opencode.tar.gz -C /usr/local/bin opencode \
&& rm /tmp/opencode.tar.gz

RUN ollama --version && python3 -c "import ollama" && python3 -c "import chromadb" && sprocket --version && opencode --version && git --version && which ssh && rg --version
RUN ollama --version \
&& python3 -c "import ollama" \
&& python3 -c "import chromadb" \
&& python3 -c "import rapidfuzz" \
&& python3 -c "import torch; assert not torch.cuda.is_available()" \
&& python3 -c "import sentence_transformers" \
&& python3 -c "from llama_index.embeddings.huggingface import HuggingFaceEmbedding" \
&& sprocket --version \
&& opencode --version \
&& git --version \
&& which ssh \
&& rg --version

ENTRYPOINT []
CMD ["/bin/bash"]
23 changes: 20 additions & 3 deletions ollama/Dockerfile_latest
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,14 @@ RUN apt-get update \
&& rm -rf /var/lib/apt/lists/*

RUN pip3 install --no-cache-dir --break-system-packages \
ollama==0.6.1 \
chromadb==1.5.9
--index-url https://download.pytorch.org/whl/cpu \
torch==2.12.0+cpu \
&& pip3 install --no-cache-dir --break-system-packages \
ollama==0.6.1 \
chromadb==1.5.9 \
rapidfuzz==3.14.5 \
sentence-transformers==5.5.1 \
llama-index-embeddings-huggingface==0.7.0

ARG TARGETARCH
ARG SPROCKET_VERSION=0.23.0
Expand All @@ -54,7 +60,18 @@ RUN if [ "$TARGETARCH" = "arm64" ]; then \
&& tar -xzf /tmp/opencode.tar.gz -C /usr/local/bin opencode \
&& rm /tmp/opencode.tar.gz

RUN ollama --version && python3 -c "import ollama" && python3 -c "import chromadb" && sprocket --version && opencode --version && git --version && which ssh && rg --version
RUN ollama --version \
&& python3 -c "import ollama" \
&& python3 -c "import chromadb" \
&& python3 -c "import rapidfuzz" \
&& python3 -c "import torch; assert not torch.cuda.is_available()" \
&& python3 -c "import sentence_transformers" \
&& python3 -c "from llama_index.embeddings.huggingface import HuggingFaceEmbedding" \
&& sprocket --version \
&& opencode --version \
&& git --version \
&& which ssh \
&& rg --version

ENTRYPOINT []
CMD ["/bin/bash"]
12 changes: 9 additions & 3 deletions ollama/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Ollama

This directory contains Docker images for [Ollama](https://ollama.com/), an LLM inference server, bundled with the [Sprocket](https://github.com/stjude-rust-labs/sprocket) WDL validator, the [Python ollama SDK](https://pypi.org/project/ollama/), [OpenCode](https://github.com/sst/opencode), an open-source AI coding agent, and [ChromaDB](https://www.trychroma.com/), an open-source vector database tool. Designed for benchmarking LLM-generated WDL scripts.
This directory contains Docker images for [Ollama](https://ollama.com/), an LLM inference server, bundled with the [Sprocket](https://github.com/stjude-rust-labs/sprocket) WDL validator, the [Python ollama SDK](https://pypi.org/project/ollama/), [OpenCode](https://github.com/sst/opencode), an open-source AI coding agent, and [ChromaDB](https://www.trychroma.com/), an open-source vector database tool. Also includes lexical/semantic similarity evaluation support via [RapidFuzz](https://github.com/rapidfuzz/RapidFuzz), [sentence-transformers](https://www.sbert.net/), and a CPU-only build of [PyTorch](https://pytorch.org/) (with [llama-index-embeddings-huggingface](https://pypi.org/project/llama-index-embeddings-huggingface/) for embedding-model loading). Designed for benchmarking LLM-generated WDL scripts.

## Available Versions

Expand All @@ -16,6 +16,10 @@ These Docker images are built from `ollama/ollama:0.21.0` and include:
- OpenCode v1.14.39: open-source AI coding agent
- Python ollama SDK v0.6.1: Python client library for interacting with Ollama
- chromadb v1.5.9: open-source vector database for embeddings and RAG workflows
- RapidFuzz v3.14.5: fast string similarity scoring for lexical evaluation
- sentence-transformers v5.5.1: sentence/text embedding models for semantic similarity
- PyTorch v2.12.0 (CPU build): tensor library underlying sentence-transformers — installed from the PyTorch CPU wheel index so CUDA wheels are not pulled in (Ollama owns the GPU; the embedding model runs on CPU)
- llama-index-embeddings-huggingface v0.7.0: LlamaIndex adapter for HuggingFace embedding models
- Python 3 (system version from base image)
- git, openssh-client, and ripgrep (system versions from base image) — supporting tools for repository workflows and fast code search used by OpenCode

Expand All @@ -31,12 +35,14 @@ A GPU is not required to run this image, but is highly encouraged — CPU-only e

## Citation

This image bundles four independent tools. If you use them in your research, please cite the original authors:
This image bundles several independent tools. If you use them in your research, please cite the original authors:

- **Ollama** (LLM inference server): https://ollama.com/
- **Sprocket** (WDL execution engine): https://github.com/stjude-rust-labs/sprocket
- **OpenCode** (AI coding agent): https://github.com/sst/opencode
- **Chroma** (vector database): https://www.trychroma.com/
- **sentence-transformers** (semantic text embeddings): Reimers, N., & Gurevych, I. (2019). Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks. https://www.sbert.net/
- **PyTorch** (tensor/ML framework): Paszke, A., et al. (2019). PyTorch: An Imperative Style, High-Performance Deep Learning Library. https://pytorch.org/

## Usage

Expand Down Expand Up @@ -102,7 +108,7 @@ The Dockerfile follows these main steps:
1. Uses `ollama/ollama:0.21.0` as the base image
2. Adds metadata labels for documentation and attribution
3. Installs system dependencies with pinned versions (Python, curl, git, openssh-client, ripgrep)
4. Installs the Python ollama SDK and chromadb via pip
4. Installs CPU-only PyTorch from the PyTorch CPU wheel index, then the Python ollama SDK, chromadb, RapidFuzz, sentence-transformers, and llama-index-embeddings-huggingface via pip
5. Downloads the prebuilt Sprocket binary for the target architecture
6. Downloads the prebuilt OpenCode binary for the target architecture
7. Runs smoke tests to verify all tools are installed correctly
Expand Down