testcontainers 9.1.3 → 9.1.4-beta.0
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/dist/package.json +93 -0
- package/dist/{bound-ports.d.ts → src/bound-ports.d.ts} +0 -0
- package/dist/{bound-ports.js → src/bound-ports.js} +0 -0
- package/dist/{clock.d.ts → src/clock.d.ts} +0 -0
- package/dist/{clock.js → src/clock.js} +0 -0
- package/dist/{docker → src/docker}/docker-client.d.ts +0 -0
- package/dist/{docker → src/docker}/docker-client.js +0 -0
- package/dist/{docker → src/docker}/functions/container/attach-container.d.ts +0 -0
- package/dist/{docker → src/docker}/functions/container/attach-container.js +0 -0
- package/dist/{docker → src/docker}/functions/container/container-logs.d.ts +0 -0
- package/dist/{docker → src/docker}/functions/container/container-logs.js +0 -0
- package/dist/{docker → src/docker}/functions/container/create-container.d.ts +0 -0
- package/dist/{docker → src/docker}/functions/container/create-container.js +0 -0
- package/dist/{docker → src/docker}/functions/container/exec-container.d.ts +0 -0
- package/dist/{docker → src/docker}/functions/container/exec-container.js +0 -0
- package/dist/{docker → src/docker}/functions/container/get-container.d.ts +0 -0
- package/dist/{docker → src/docker}/functions/container/get-container.js +1 -1
- package/dist/{docker → src/docker}/functions/container/inspect-container.d.ts +0 -0
- package/dist/{docker → src/docker}/functions/container/inspect-container.js +0 -0
- package/dist/{docker → src/docker}/functions/container/list-containers.d.ts +0 -0
- package/dist/{docker → src/docker}/functions/container/list-containers.js +0 -0
- package/dist/{docker → src/docker}/functions/container/put-container-archive.d.ts +0 -0
- package/dist/{docker → src/docker}/functions/container/put-container-archive.js +0 -0
- package/dist/{docker → src/docker}/functions/container/remove-container.d.ts +0 -0
- package/dist/{docker → src/docker}/functions/container/remove-container.js +0 -0
- package/dist/{docker → src/docker}/functions/container/restart-container.d.ts +0 -0
- package/dist/{docker → src/docker}/functions/container/restart-container.js +0 -0
- package/dist/{docker → src/docker}/functions/container/start-container.d.ts +0 -0
- package/dist/{docker → src/docker}/functions/container/start-container.js +0 -0
- package/dist/{docker → src/docker}/functions/container/stop-container.d.ts +0 -0
- package/dist/{docker → src/docker}/functions/container/stop-container.js +0 -0
- package/dist/{docker → src/docker}/functions/create-labels.d.ts +0 -0
- package/dist/{docker → src/docker}/functions/create-labels.js +3 -2
- package/dist/{docker → src/docker}/functions/demux-stream.d.ts +0 -0
- package/dist/{docker → src/docker}/functions/demux-stream.js +0 -0
- package/dist/{docker → src/docker}/functions/get-info.d.ts +0 -0
- package/dist/{docker → src/docker}/functions/get-info.js +0 -0
- package/dist/{docker → src/docker}/functions/image/build-image.d.ts +0 -0
- package/dist/{docker → src/docker}/functions/image/build-image.js +0 -0
- package/dist/{docker → src/docker}/functions/image/image-exists.d.ts +0 -0
- package/dist/{docker → src/docker}/functions/image/image-exists.js +0 -0
- package/dist/{docker → src/docker}/functions/image/list-images.d.ts +0 -0
- package/dist/{docker → src/docker}/functions/image/list-images.js +0 -0
- package/dist/{docker → src/docker}/functions/image/pull-image.d.ts +0 -0
- package/dist/{docker → src/docker}/functions/image/pull-image.js +0 -0
- package/dist/{docker → src/docker}/functions/network/connect-network.d.ts +0 -0
- package/dist/{docker → src/docker}/functions/network/connect-network.js +0 -0
- package/dist/{docker → src/docker}/functions/network/create-network.d.ts +0 -0
- package/dist/{docker → src/docker}/functions/network/create-network.js +0 -0
- package/dist/{docker → src/docker}/functions/network/remove-network.d.ts +0 -0
- package/dist/{docker → src/docker}/functions/network/remove-network.js +0 -0
- package/dist/{docker → src/docker}/functions/run-in-container.d.ts +0 -0
- package/dist/{docker → src/docker}/functions/run-in-container.js +0 -0
- package/dist/{docker → src/docker}/pull-stream-parser.d.ts +0 -0
- package/dist/{docker → src/docker}/pull-stream-parser.js +0 -0
- package/dist/{docker → src/docker}/session-id.d.ts +0 -0
- package/dist/{docker → src/docker}/session-id.js +0 -0
- package/dist/{docker → src/docker}/types.d.ts +0 -0
- package/dist/{docker → src/docker}/types.js +0 -0
- package/dist/{docker-compose → src/docker-compose}/default-docker-compose-options.d.ts +0 -0
- package/dist/{docker-compose → src/docker-compose}/default-docker-compose-options.js +0 -0
- package/dist/{docker-compose → src/docker-compose}/docker-compose-options.d.ts +0 -0
- package/dist/{docker-compose → src/docker-compose}/docker-compose-options.js +0 -0
- package/dist/{docker-compose → src/docker-compose}/docker-compose.d.ts +0 -0
- package/dist/{docker-compose → src/docker-compose}/docker-compose.js +0 -0
- package/dist/{docker-compose → src/docker-compose}/functions/container-name-resolver.d.ts +0 -0
- package/dist/{docker-compose → src/docker-compose}/functions/container-name-resolver.js +0 -0
- package/dist/{docker-compose → src/docker-compose}/functions/docker-compose-down.d.ts +0 -0
- package/dist/{docker-compose → src/docker-compose}/functions/docker-compose-down.js +0 -0
- package/dist/{docker-compose → src/docker-compose}/functions/docker-compose-stop.d.ts +0 -0
- package/dist/{docker-compose → src/docker-compose}/functions/docker-compose-stop.js +0 -0
- package/dist/{docker-compose → src/docker-compose}/functions/docker-compose-up.d.ts +0 -0
- package/dist/{docker-compose → src/docker-compose}/functions/docker-compose-up.js +0 -0
- package/dist/{docker-compose-environment → src/docker-compose-environment}/docker-compose-environment.d.ts +0 -0
- package/dist/{docker-compose-environment → src/docker-compose-environment}/docker-compose-environment.js +0 -0
- package/dist/{docker-compose-environment → src/docker-compose-environment}/downed-docker-compose-environment.d.ts +0 -0
- package/dist/{docker-compose-environment → src/docker-compose-environment}/downed-docker-compose-environment.js +0 -0
- package/dist/{docker-compose-environment → src/docker-compose-environment}/started-docker-compose-environment.d.ts +0 -0
- package/dist/{docker-compose-environment → src/docker-compose-environment}/started-docker-compose-environment.js +0 -0
- package/dist/{docker-compose-environment → src/docker-compose-environment}/stopped-docker-compose-environment.d.ts +0 -0
- package/dist/{docker-compose-environment → src/docker-compose-environment}/stopped-docker-compose-environment.js +0 -0
- package/dist/{docker-image-name.d.ts → src/docker-image-name.d.ts} +0 -0
- package/dist/{docker-image-name.js → src/docker-image-name.js} +0 -0
- package/dist/{dockerfile-parser.d.ts → src/dockerfile-parser.d.ts} +0 -0
- package/dist/{dockerfile-parser.js → src/dockerfile-parser.js} +0 -0
- package/dist/{generic-container → src/generic-container}/generic-container-builder.d.ts +0 -0
- package/dist/{generic-container → src/generic-container}/generic-container-builder.js +0 -0
- package/dist/{generic-container → src/generic-container}/generic-container.d.ts +0 -0
- package/dist/{generic-container → src/generic-container}/generic-container.js +1 -1
- package/dist/{generic-container → src/generic-container}/started-generic-container.d.ts +0 -0
- package/dist/{generic-container → src/generic-container}/started-generic-container.js +0 -0
- package/dist/{generic-container → src/generic-container}/stopped-generic-container.d.ts +0 -0
- package/dist/{generic-container → src/generic-container}/stopped-generic-container.js +0 -0
- package/dist/{hash.d.ts → src/hash.d.ts} +0 -0
- package/dist/{hash.js → src/hash.js} +0 -0
- package/dist/{http-wait-strategy.d.ts → src/http-wait-strategy.d.ts} +0 -0
- package/dist/{http-wait-strategy.js → src/http-wait-strategy.js} +0 -0
- package/dist/{images.d.ts → src/images.d.ts} +0 -0
- package/dist/{images.js → src/images.js} +0 -0
- package/dist/{index.d.ts → src/index.d.ts} +0 -0
- package/dist/{index.js → src/index.js} +0 -0
- package/dist/src/labels.d.ts +5 -0
- package/dist/src/labels.js +8 -0
- package/dist/{log-system-diagnostics.d.ts → src/log-system-diagnostics.d.ts} +0 -0
- package/dist/{log-system-diagnostics.js → src/log-system-diagnostics.js} +0 -0
- package/dist/{logger.d.ts → src/logger.d.ts} +0 -0
- package/dist/{logger.js → src/logger.js} +0 -0
- package/dist/{modules → src/modules}/abstract-started-container.d.ts +0 -0
- package/dist/{modules → src/modules}/abstract-started-container.js +0 -0
- package/dist/{modules → src/modules}/arangodb/arangodb-container.d.ts +0 -0
- package/dist/{modules → src/modules}/arangodb/arangodb-container.js +0 -0
- package/dist/{modules → src/modules}/elasticsearch/elasticsearch-container.d.ts +0 -0
- package/dist/{modules → src/modules}/elasticsearch/elasticsearch-container.js +0 -0
- package/dist/{modules → src/modules}/kafka/kafka-container.d.ts +0 -0
- package/dist/{modules → src/modules}/kafka/kafka-container.js +0 -0
- package/dist/{modules → src/modules}/mongodb/mongodb-container.d.ts +0 -0
- package/dist/{modules → src/modules}/mongodb/mongodb-container.js +0 -0
- package/dist/{modules → src/modules}/mysql/mysql-container.d.ts +0 -0
- package/dist/{modules → src/modules}/mysql/mysql-container.js +0 -0
- package/dist/{modules → src/modules}/nats/nats-container.d.ts +0 -0
- package/dist/{modules → src/modules}/nats/nats-container.js +0 -0
- package/dist/{modules → src/modules}/neo4j/neo4j-container.d.ts +0 -0
- package/dist/{modules → src/modules}/neo4j/neo4j-container.js +0 -0
- package/dist/{modules → src/modules}/postgresql/postgresql-container.d.ts +0 -0
- package/dist/{modules → src/modules}/postgresql/postgresql-container.js +0 -0
- package/dist/{network.d.ts → src/network.d.ts} +0 -0
- package/dist/{network.js → src/network.js} +0 -0
- package/dist/{port-binder.d.ts → src/port-binder.d.ts} +0 -0
- package/dist/{port-binder.js → src/port-binder.js} +0 -0
- package/dist/{port-check.d.ts → src/port-check.d.ts} +0 -0
- package/dist/{port-check.js → src/port-check.js} +0 -0
- package/dist/{port-forwarder.d.ts → src/port-forwarder.d.ts} +0 -0
- package/dist/{port-forwarder.js → src/port-forwarder.js} +0 -0
- package/dist/{port-generator.d.ts → src/port-generator.d.ts} +0 -0
- package/dist/{port-generator.js → src/port-generator.js} +0 -0
- package/dist/{port.d.ts → src/port.d.ts} +0 -0
- package/dist/{port.js → src/port.js} +0 -0
- package/dist/{pull-policy.d.ts → src/pull-policy.d.ts} +0 -0
- package/dist/{pull-policy.js → src/pull-policy.js} +0 -0
- package/dist/{reaper.d.ts → src/reaper.d.ts} +0 -0
- package/dist/{reaper.js → src/reaper.js} +1 -1
- package/dist/{registry-auth-locator → src/registry-auth-locator}/auths.d.ts +0 -0
- package/dist/{registry-auth-locator → src/registry-auth-locator}/auths.js +0 -0
- package/dist/{registry-auth-locator → src/registry-auth-locator}/cred-helpers.d.ts +0 -0
- package/dist/{registry-auth-locator → src/registry-auth-locator}/cred-helpers.js +0 -0
- package/dist/{registry-auth-locator → src/registry-auth-locator}/credential-provider.d.ts +0 -0
- package/dist/{registry-auth-locator → src/registry-auth-locator}/credential-provider.js +0 -0
- package/dist/{registry-auth-locator → src/registry-auth-locator}/creds-store.d.ts +0 -0
- package/dist/{registry-auth-locator → src/registry-auth-locator}/creds-store.js +0 -0
- package/dist/{registry-auth-locator → src/registry-auth-locator}/index.d.ts +0 -0
- package/dist/{registry-auth-locator → src/registry-auth-locator}/index.js +0 -0
- package/dist/{registry-auth-locator → src/registry-auth-locator}/registry-auth-locator.d.ts +0 -0
- package/dist/{registry-auth-locator → src/registry-auth-locator}/registry-auth-locator.js +0 -0
- package/dist/{registry-auth-locator → src/registry-auth-locator}/types.d.ts +0 -0
- package/dist/{registry-auth-locator → src/registry-auth-locator}/types.js +0 -0
- package/dist/{retry-strategy.d.ts → src/retry-strategy.d.ts} +0 -0
- package/dist/{retry-strategy.js → src/retry-strategy.js} +0 -0
- package/dist/{startup-check-strategy.d.ts → src/startup-check-strategy.d.ts} +0 -0
- package/dist/{startup-check-strategy.js → src/startup-check-strategy.js} +0 -0
- package/dist/{test-container.d.ts → src/test-container.d.ts} +0 -0
- package/dist/{test-container.js → src/test-container.js} +0 -0
- package/dist/{test-containers.d.ts → src/test-containers.d.ts} +0 -0
- package/dist/{test-containers.js → src/test-containers.js} +0 -0
- package/dist/{testcontainers-properties-file.d.ts → src/testcontainers-properties-file.d.ts} +0 -0
- package/dist/{testcontainers-properties-file.js → src/testcontainers-properties-file.js} +0 -0
- package/dist/{uuid.d.ts → src/uuid.d.ts} +0 -0
- package/dist/{uuid.js → src/uuid.js} +0 -0
- package/dist/{wait-for-container.d.ts → src/wait-for-container.d.ts} +0 -0
- package/dist/{wait-for-container.js → src/wait-for-container.js} +0 -0
- package/dist/{wait-strategy.d.ts → src/wait-strategy.d.ts} +0 -0
- package/dist/{wait-strategy.js → src/wait-strategy.js} +0 -0
- package/dist/{wait.d.ts → src/wait.d.ts} +0 -0
- package/dist/{wait.js → src/wait.js} +0 -0
- package/package.json +1 -1
- package/dist/labels.d.ts +0 -2
- package/dist/labels.js +0 -5
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "testcontainers",
|
|
3
|
+
"author": "Cristian Greco",
|
|
4
|
+
"version": "9.1.4-beta.0",
|
|
5
|
+
"main": "dist/index",
|
|
6
|
+
"types": "dist/index",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"docker",
|
|
9
|
+
"testcontainers"
|
|
10
|
+
],
|
|
11
|
+
"files": [
|
|
12
|
+
"dist"
|
|
13
|
+
],
|
|
14
|
+
"description": "Testcontainers is a NodeJS library that supports tests, providing lightweight, throwaway instances of common databases, Selenium web browsers, or anything else that can run in a Docker container.",
|
|
15
|
+
"license": "MIT",
|
|
16
|
+
"homepage": "https://github.com/testcontainers/testcontainers-node#readme",
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "https://github.com/testcontainers/testcontainers-node"
|
|
20
|
+
},
|
|
21
|
+
"bugs": {
|
|
22
|
+
"url": "https://github.com/testcontainers/testcontainers-node/issues"
|
|
23
|
+
},
|
|
24
|
+
"scripts": {
|
|
25
|
+
"prepare": "npm run build && husky install",
|
|
26
|
+
"pre-commit": "lint-staged",
|
|
27
|
+
"build": "npm run clean && tsc -p tsconfig.prod.json",
|
|
28
|
+
"clean": "rimraf dist",
|
|
29
|
+
"test": "cross-env DEBUG=testcontainers,testcontainers:exec jest --runInBand",
|
|
30
|
+
"format": "prettier --write package.json \"src/**/*.ts\"",
|
|
31
|
+
"lint": "eslint --fix package.json \"src/**/*.ts\"",
|
|
32
|
+
"updateDeps": "npx npm-check-updates -u",
|
|
33
|
+
"validateEngine": "npx ls-engines"
|
|
34
|
+
},
|
|
35
|
+
"dependencies": {
|
|
36
|
+
"@balena/dockerignore": "^1.0.2",
|
|
37
|
+
"@types/archiver": "^5.3.1",
|
|
38
|
+
"@types/dockerode": "^3.3.14",
|
|
39
|
+
"archiver": "^5.3.1",
|
|
40
|
+
"async-lock": "^1.4.0",
|
|
41
|
+
"byline": "^5.0.0",
|
|
42
|
+
"debug": "^4.3.4",
|
|
43
|
+
"docker-compose": "^0.23.19",
|
|
44
|
+
"dockerode": "^3.3.4",
|
|
45
|
+
"get-port": "^5.1.1",
|
|
46
|
+
"node-fetch": "^2.6.9",
|
|
47
|
+
"properties-reader": "^2.2.0",
|
|
48
|
+
"ssh-remote-port-forward": "^1.0.4",
|
|
49
|
+
"tar-fs": "^2.1.1"
|
|
50
|
+
},
|
|
51
|
+
"devDependencies": {
|
|
52
|
+
"@elastic/elasticsearch": "^7.17.0",
|
|
53
|
+
"@types/async-lock": "^1.4.0",
|
|
54
|
+
"@types/byline": "^4.2.33",
|
|
55
|
+
"@types/debug": "4.1.7",
|
|
56
|
+
"@types/jest": "^29.2.6",
|
|
57
|
+
"@types/node": "^18.11.19",
|
|
58
|
+
"@types/node-fetch": "^2.6.2",
|
|
59
|
+
"@types/pg": "^8.6.6",
|
|
60
|
+
"@types/properties-reader": "^2.1.1",
|
|
61
|
+
"@types/tar-fs": "^2.0.1",
|
|
62
|
+
"@typescript-eslint/eslint-plugin": "^5.41.0",
|
|
63
|
+
"@typescript-eslint/parser": "^5.41.0",
|
|
64
|
+
"arangojs": "^8.0.0",
|
|
65
|
+
"cross-env": "^7.0.3",
|
|
66
|
+
"eslint": "^8.26.0",
|
|
67
|
+
"eslint-config-prettier": "^8.5.0",
|
|
68
|
+
"husky": "^8.0.3",
|
|
69
|
+
"jest": "^29.2.2",
|
|
70
|
+
"kafkajs": "^2.2.3",
|
|
71
|
+
"lint-staged": "^13.0.4",
|
|
72
|
+
"mongoose": "^6.7.5",
|
|
73
|
+
"mysql2": "^2.3.3",
|
|
74
|
+
"nats": "^2.8.0",
|
|
75
|
+
"neo4j-driver": "^5.2.0",
|
|
76
|
+
"pg": "^8.8.0",
|
|
77
|
+
"prettier": "^2.7.1",
|
|
78
|
+
"rimraf": "^3.0.2",
|
|
79
|
+
"ts-jest": "^29.0.5",
|
|
80
|
+
"ts-node": "^10.9.1",
|
|
81
|
+
"typescript": "^4.8.4",
|
|
82
|
+
"wait-for-expect": "^3.0.2"
|
|
83
|
+
},
|
|
84
|
+
"lint-staged": {
|
|
85
|
+
"src/**/*.ts": [
|
|
86
|
+
"prettier --write",
|
|
87
|
+
"eslint --fix"
|
|
88
|
+
]
|
|
89
|
+
},
|
|
90
|
+
"engines": {
|
|
91
|
+
"node": ">= 10.16"
|
|
92
|
+
}
|
|
93
|
+
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -31,7 +31,7 @@ const getContainerByHash = (hash) => __awaiter(void 0, void 0, void 0, function*
|
|
|
31
31
|
limit: 1,
|
|
32
32
|
filters: {
|
|
33
33
|
status: ["running"],
|
|
34
|
-
label: [`${labels_1.
|
|
34
|
+
label: [`${labels_1.LABEL_TESTCONTAINERS_CONTAINER_HASH}=${hash}`],
|
|
35
35
|
},
|
|
36
36
|
});
|
|
37
37
|
if (containers.length === 0) {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -3,13 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.createLabels = void 0;
|
|
4
4
|
const session_id_1 = require("../session-id");
|
|
5
5
|
const labels_1 = require("../../labels");
|
|
6
|
+
const package_json_1 = require("../../../package.json");
|
|
6
7
|
const createLabels = (reusable, dockerImageName, extraLabels = {}) => {
|
|
7
|
-
const labels = Object.assign({}, extraLabels);
|
|
8
|
+
const labels = Object.assign(Object.assign({}, extraLabels), { [labels_1.LABEL_TESTCONTAINERS]: "true", [labels_1.LABEL_TESTCONTAINERS_LANG]: "node", [labels_1.LABEL_TESTCONTAINERS_VERSION]: package_json_1.version });
|
|
8
9
|
if (dockerImageName && dockerImageName.isReaper()) {
|
|
9
10
|
return labels;
|
|
10
11
|
}
|
|
11
12
|
if (!reusable) {
|
|
12
|
-
labels[labels_1.
|
|
13
|
+
labels[labels_1.LABEL_TESTCONTAINERS_SESSION_ID] = session_id_1.sessionId;
|
|
13
14
|
}
|
|
14
15
|
return labels;
|
|
15
16
|
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -101,7 +101,7 @@ class GenericContainer {
|
|
|
101
101
|
};
|
|
102
102
|
if (this.reuse) {
|
|
103
103
|
const containerHash = (0, hash_1.hash)(JSON.stringify(createContainerOptions));
|
|
104
|
-
createContainerOptions.labels = Object.assign(Object.assign({}, createContainerOptions.labels), { [labels_1.
|
|
104
|
+
createContainerOptions.labels = Object.assign(Object.assign({}, createContainerOptions.labels), { [labels_1.LABEL_TESTCONTAINERS_CONTAINER_HASH]: containerHash });
|
|
105
105
|
logger_1.log.debug(`Container reuse has been enabled, hash: ${containerHash}`);
|
|
106
106
|
// We might have several async processes try to create a reusable container
|
|
107
107
|
// at once, to avoid possibly creating too many of these, use a lock
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const LABEL_TESTCONTAINERS = "org.testcontainers";
|
|
2
|
+
export declare const LABEL_TESTCONTAINERS_LANG = "org.testcontainers.lang";
|
|
3
|
+
export declare const LABEL_TESTCONTAINERS_VERSION = "org.testcontainers.version";
|
|
4
|
+
export declare const LABEL_TESTCONTAINERS_SESSION_ID = "org.testcontainers.session-id";
|
|
5
|
+
export declare const LABEL_TESTCONTAINERS_CONTAINER_HASH = "org.testcontainers.container-hash";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LABEL_TESTCONTAINERS_CONTAINER_HASH = exports.LABEL_TESTCONTAINERS_SESSION_ID = exports.LABEL_TESTCONTAINERS_VERSION = exports.LABEL_TESTCONTAINERS_LANG = exports.LABEL_TESTCONTAINERS = void 0;
|
|
4
|
+
exports.LABEL_TESTCONTAINERS = "org.testcontainers";
|
|
5
|
+
exports.LABEL_TESTCONTAINERS_LANG = "org.testcontainers.lang";
|
|
6
|
+
exports.LABEL_TESTCONTAINERS_VERSION = "org.testcontainers.version";
|
|
7
|
+
exports.LABEL_TESTCONTAINERS_SESSION_ID = "org.testcontainers.session-id";
|
|
8
|
+
exports.LABEL_TESTCONTAINERS_CONTAINER_HASH = "org.testcontainers.container-hash";
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -118,7 +118,7 @@ class ReaperInstance {
|
|
|
118
118
|
})
|
|
119
119
|
.connect((0, port_1.getContainerPort)(port), host, () => {
|
|
120
120
|
logger_1.log.debug(`Connected to Reaper ${containerId}`);
|
|
121
|
-
socket.write(`label=${labels_1.
|
|
121
|
+
socket.write(`label=${labels_1.LABEL_TESTCONTAINERS_SESSION_ID}=${session_id_1.sessionId}\r\n`);
|
|
122
122
|
const reaper = new RealReaper(startedContainer, socket);
|
|
123
123
|
resolve(reaper);
|
|
124
124
|
});
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/{testcontainers-properties-file.d.ts → src/testcontainers-properties-file.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
package/dist/labels.d.ts
DELETED
package/dist/labels.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LABEL_CONTAINER_HASH = exports.LABEL_SESSION_ID = void 0;
|
|
4
|
-
exports.LABEL_SESSION_ID = "org.testcontainers.session-id";
|
|
5
|
-
exports.LABEL_CONTAINER_HASH = "org.testcontainers.container-hash";
|