Zack Saadioui
8/27/2024
1
bitbucket-pipelines.yml
1
docker
1
bitbucket-pipelines.yml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
image: maven:3.6.1 pipelines: default: - step: name: Build & Test services: - docker script: - export TESTCONTAINERS_RYUK_DISABLED=true - mvn clean install definitions: services: docker: memory: 2048
1
OllamaContainer
1 2
OllamaContainer ollama = new OllamaContainer("ollama/ollama:0.1.26"); ollama.execInContainer("ollama", "pull", "all-minilm");
1
all-minilm
1
ollama.commitToImage("newImageName");
1
newImageName
1
bitbucket-pipelines.yml
1 2 3 4 5 6 7
pipelines: default: - step: name: Pull Model script: - export TESTCONTAINERS_RYUK_DISABLED=true - java -cp target/yourproject.jar com.yourpackage.YourMainClass
1
pom.xml
1 2 3 4 5
<dependency> <groupId>org.testcontainers</groupId> <artifactId>ollama</artifactId> <version>1.20.1</version> </dependency>
1
build.gradle
1
testImplementation "org.testcontainers:ollama:1.20.1"
1
docker
1 2 3
services: docker: memory: 4096
1
TESTCONTAINERS_RYUK_DISABLED
1
bitbucket-pipelines.yml
Copyright © Arsturn 2025