@testcontainers/ollama 10.28.0 → 11.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +2 -2
- package/README.md +3 -4
- package/build/ollama-container.d.ts +1 -2
- package/build/ollama-container.js +2 -2
- package/build/ollama-container.js.map +1 -1
- package/package.json +2 -2
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2018 -
|
|
3
|
+
Copyright (c) 2018 - 2025 Cristian Greco
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
18
18
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
19
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
20
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://github.com/codespaces/new?hide_repo_select=true&ref=main&repo=116414510&machine=standardLinux32gb&devcontainer_path=.devcontainer%2Fdevcontainer.json&location=EastUs)
|
|
4
4
|
|
|
5
|
-
[](https://github.com/testcontainers/testcontainers-node/actions/workflows/checks.yml)
|
|
6
6
|
[](https://www.npmjs.com/package/testcontainers)
|
|
7
7
|
[](https://www.npmjs.com/package/testcontainers)
|
|
8
8
|
|
|
@@ -16,7 +16,7 @@ See [LICENSE](https://github.com/testcontainers/testcontainers-node/blob/main/LI
|
|
|
16
16
|
|
|
17
17
|
## Copyright
|
|
18
18
|
|
|
19
|
-
Copyright (c) 2018 -
|
|
19
|
+
Copyright (c) 2018 - 2025 Cristian Greco and other authors.
|
|
20
20
|
|
|
21
21
|
## Contributing
|
|
22
22
|
|
|
@@ -24,7 +24,6 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for how to contribute to this repo.
|
|
|
24
24
|
|
|
25
25
|
See [contributors](https://github.com/testcontainers/testcontainers-node/graphs/contributors/) for all contributors.
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
----
|
|
27
|
+
---
|
|
29
28
|
|
|
30
29
|
Join our [Slack workspace](https://slack.testcontainers.org/) | [Testcontainers OSS](https://java.testcontainers.org/) | [Testcontainers Cloud](https://www.testcontainers.cloud/)
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import { AbstractStartedContainer, GenericContainer } from "testcontainers";
|
|
3
2
|
export declare const OLLAMA_PORT = 11434;
|
|
4
3
|
export declare class OllamaContainer extends GenericContainer {
|
|
5
|
-
constructor(image
|
|
4
|
+
constructor(image: string);
|
|
6
5
|
start(): Promise<StartedOllamaContainer>;
|
|
7
6
|
}
|
|
8
7
|
export declare class StartedOllamaContainer extends AbstractStartedContainer {
|
|
@@ -4,11 +4,11 @@ exports.StartedOllamaContainer = exports.OllamaContainer = exports.OLLAMA_PORT =
|
|
|
4
4
|
const testcontainers_1 = require("testcontainers");
|
|
5
5
|
exports.OLLAMA_PORT = 11434;
|
|
6
6
|
class OllamaContainer extends testcontainers_1.GenericContainer {
|
|
7
|
-
constructor(image
|
|
7
|
+
constructor(image) {
|
|
8
8
|
super(image);
|
|
9
9
|
this.withExposedPorts(exports.OLLAMA_PORT)
|
|
10
10
|
.withWaitStrategy(testcontainers_1.Wait.forLogMessage("Listening on "))
|
|
11
|
-
.withStartupTimeout(
|
|
11
|
+
.withStartupTimeout(120_000);
|
|
12
12
|
}
|
|
13
13
|
async start() {
|
|
14
14
|
const containerRuntimeClient = await (0, testcontainers_1.getContainerRuntimeClient)();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ollama-container.js","sourceRoot":"","sources":["../src/ollama-container.ts"],"names":[],"mappings":";;;AAAA,mDAA6G;AAEhG,QAAA,WAAW,GAAG,KAAK,CAAC;AAEjC,MAAa,eAAgB,SAAQ,iCAAgB;IACnD,YAAY,
|
|
1
|
+
{"version":3,"file":"ollama-container.js","sourceRoot":"","sources":["../src/ollama-container.ts"],"names":[],"mappings":";;;AAAA,mDAA6G;AAEhG,QAAA,WAAW,GAAG,KAAK,CAAC;AAEjC,MAAa,eAAgB,SAAQ,iCAAgB;IACnD,YAAY,KAAa;QACvB,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,gBAAgB,CAAC,mBAAW,CAAC;aAC/B,gBAAgB,CAAC,qBAAI,CAAC,aAAa,CAAC,eAAe,CAAC,CAAC;aACrD,kBAAkB,CAAC,OAAO,CAAC,CAAC;IACjC,CAAC;IAEe,KAAK,CAAC,KAAK;QACzB,MAAM,sBAAsB,GAAG,MAAM,IAAA,0CAAyB,GAAE,CAAC;QACjE,MAAM,QAAQ,GAAG,sBAAsB,CAAC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC;QACvE,IAAI,QAAQ,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC;YAChC,IAAI,CAAC,UAAU,CAAC,cAAc,GAAG;gBAC/B;oBACE,MAAM,EAAE,QAAQ;oBAChB,KAAK,EAAE,CAAC,CAAC;oBACT,YAAY,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC;iBACxB;aACF,CAAC;QACJ,CAAC;QAED,OAAO,IAAI,sBAAsB,CAAC,MAAM,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC;IACzD,CAAC;CACF;AAvBD,0CAuBC;AAED,MAAa,sBAAuB,SAAQ,yCAAwB;IAC3D,OAAO;QACZ,OAAO,IAAI,CAAC,oBAAoB,CAAC,aAAa,CAAC,mBAAW,CAAC,CAAC;IAC9D,CAAC;IAEM,WAAW;QAChB,OAAO,UAAU,IAAI,CAAC,OAAO,EAAE,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC;IACjE,CAAC;IAEM,KAAK,CAAC,aAAa,CAAC,SAAiB;QAC1C,MAAM,MAAM,GAAG,MAAM,IAAA,0CAAyB,GAAE,CAAC;QACjD,MAAM,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC,SAAS,CAAC;QAC7C,OAAO,SAAS;aACb,YAAY,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;aAC1B,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,+BAA+B,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAClF,CAAC;CACF;AAhBD,wDAgBC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@testcontainers/ollama",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "11.0.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ollama",
|
|
@@ -29,6 +29,6 @@
|
|
|
29
29
|
"build": "tsc --project tsconfig.build.json"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"testcontainers": "^
|
|
32
|
+
"testcontainers": "^11.0.1"
|
|
33
33
|
}
|
|
34
34
|
}
|