Skip to content

Commit c412632

Browse files
committed
update tests
1 parent 94230d4 commit c412632

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ It is a NodeJS app that uses the llama3.2 model to service prompt requests. It u
1212
## How to Run
1313

1414
### Locally
15-
- Run an LLM container `docker run -p 11434:11434 --name model ollama/ollama:0.6.2`
16-
- Exec into the container and run `ollama pull llama3.2`
15+
- Run an LLM container `docker run -p 11434:11434 --name model samanthamorris684/ollama@sha256:78a199fa9652a16429037726943a82bd4916975fecf2b105d06e140ae70a1420`
1716
- `dotenv -e .env.dev -- npm run start:dev`
1817

1918
#### Local Tests

tests/server.test.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ describe('Ollama Container Tests', () => {
88
// Use beforeAll instead of beforeEach if you want to reuse the container
99
beforeAll(async () => {
1010
// Initialize container before tests run
11-
container = await new GenericContainer("ollama/ollama:0.6.2")
11+
container = await new GenericContainer("samanthamorris684/ollama@sha256:78a199fa9652a16429037726943a82bd4916975fecf2b105d06e140ae70a1420")
1212
.withExposedPorts(11434)
1313
.start();
1414

@@ -24,9 +24,6 @@ describe('Ollama Container Tests', () => {
2424

2525
console.log(`Container running at ${process.env.REACT_APP_MODEL_SERVICE}:${process.env.REACT_APP_MODEL_PORT}`);
2626

27-
// Pull the model
28-
await container.exec(["ollama", "pull", "llama3.2"]);
29-
3027
console.log()
3128

3229
}, 180 * SECONDS); // Timeout increased for startup and model pull
@@ -38,7 +35,7 @@ describe('Ollama Container Tests', () => {
3835
force: true,
3936
timeout: 0
4037
});
41-
console.log("Container forcefull stopped");
38+
console.log("Container forcefully stopped");
4239
}
4340
catch (error) {
4441
console.error("Error stopping container: ", error);

0 commit comments

Comments
 (0)