testcontainers 9.1.4-beta.1 → 9.1.4-beta.2
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/{src/docker → docker}/docker-client.js +3 -1
- package/dist/{src/docker → docker}/functions/container/get-container.js +1 -1
- package/dist/{src/docker → docker}/functions/create-labels.js +2 -3
- package/dist/{src/generic-container → generic-container}/generic-container.js +1 -1
- package/dist/labels.d.ts +2 -0
- package/dist/labels.js +5 -0
- package/dist/{src/reaper.js → reaper.js} +1 -1
- package/dist/stream-utils.d.ts +6 -0
- package/dist/stream-utils.js +39 -0
- package/package.json +4 -4
- package/dist/package.json +0 -93
- package/dist/src/labels.d.ts +0 -5
- package/dist/src/labels.js +0 -8
- /package/dist/{src/bound-ports.d.ts → bound-ports.d.ts} +0 -0
- /package/dist/{src/bound-ports.js → bound-ports.js} +0 -0
- /package/dist/{src/clock.d.ts → clock.d.ts} +0 -0
- /package/dist/{src/clock.js → clock.js} +0 -0
- /package/dist/{src/docker → docker}/docker-client.d.ts +0 -0
- /package/dist/{src/docker → docker}/functions/container/attach-container.d.ts +0 -0
- /package/dist/{src/docker → docker}/functions/container/attach-container.js +0 -0
- /package/dist/{src/docker → docker}/functions/container/container-logs.d.ts +0 -0
- /package/dist/{src/docker → docker}/functions/container/container-logs.js +0 -0
- /package/dist/{src/docker → docker}/functions/container/create-container.d.ts +0 -0
- /package/dist/{src/docker → docker}/functions/container/create-container.js +0 -0
- /package/dist/{src/docker → docker}/functions/container/exec-container.d.ts +0 -0
- /package/dist/{src/docker → docker}/functions/container/exec-container.js +0 -0
- /package/dist/{src/docker → docker}/functions/container/get-container.d.ts +0 -0
- /package/dist/{src/docker → docker}/functions/container/inspect-container.d.ts +0 -0
- /package/dist/{src/docker → docker}/functions/container/inspect-container.js +0 -0
- /package/dist/{src/docker → docker}/functions/container/list-containers.d.ts +0 -0
- /package/dist/{src/docker → docker}/functions/container/list-containers.js +0 -0
- /package/dist/{src/docker → docker}/functions/container/put-container-archive.d.ts +0 -0
- /package/dist/{src/docker → docker}/functions/container/put-container-archive.js +0 -0
- /package/dist/{src/docker → docker}/functions/container/remove-container.d.ts +0 -0
- /package/dist/{src/docker → docker}/functions/container/remove-container.js +0 -0
- /package/dist/{src/docker → docker}/functions/container/restart-container.d.ts +0 -0
- /package/dist/{src/docker → docker}/functions/container/restart-container.js +0 -0
- /package/dist/{src/docker → docker}/functions/container/start-container.d.ts +0 -0
- /package/dist/{src/docker → docker}/functions/container/start-container.js +0 -0
- /package/dist/{src/docker → docker}/functions/container/stop-container.d.ts +0 -0
- /package/dist/{src/docker → docker}/functions/container/stop-container.js +0 -0
- /package/dist/{src/docker → docker}/functions/create-labels.d.ts +0 -0
- /package/dist/{src/docker → docker}/functions/demux-stream.d.ts +0 -0
- /package/dist/{src/docker → docker}/functions/demux-stream.js +0 -0
- /package/dist/{src/docker → docker}/functions/get-info.d.ts +0 -0
- /package/dist/{src/docker → docker}/functions/get-info.js +0 -0
- /package/dist/{src/docker → docker}/functions/image/build-image.d.ts +0 -0
- /package/dist/{src/docker → docker}/functions/image/build-image.js +0 -0
- /package/dist/{src/docker → docker}/functions/image/image-exists.d.ts +0 -0
- /package/dist/{src/docker → docker}/functions/image/image-exists.js +0 -0
- /package/dist/{src/docker → docker}/functions/image/list-images.d.ts +0 -0
- /package/dist/{src/docker → docker}/functions/image/list-images.js +0 -0
- /package/dist/{src/docker → docker}/functions/image/pull-image.d.ts +0 -0
- /package/dist/{src/docker → docker}/functions/image/pull-image.js +0 -0
- /package/dist/{src/docker → docker}/functions/network/connect-network.d.ts +0 -0
- /package/dist/{src/docker → docker}/functions/network/connect-network.js +0 -0
- /package/dist/{src/docker → docker}/functions/network/create-network.d.ts +0 -0
- /package/dist/{src/docker → docker}/functions/network/create-network.js +0 -0
- /package/dist/{src/docker → docker}/functions/network/remove-network.d.ts +0 -0
- /package/dist/{src/docker → docker}/functions/network/remove-network.js +0 -0
- /package/dist/{src/docker → docker}/functions/run-in-container.d.ts +0 -0
- /package/dist/{src/docker → docker}/functions/run-in-container.js +0 -0
- /package/dist/{src/docker → docker}/pull-stream-parser.d.ts +0 -0
- /package/dist/{src/docker → docker}/pull-stream-parser.js +0 -0
- /package/dist/{src/docker → docker}/session-id.d.ts +0 -0
- /package/dist/{src/docker → docker}/session-id.js +0 -0
- /package/dist/{src/docker → docker}/types.d.ts +0 -0
- /package/dist/{src/docker → docker}/types.js +0 -0
- /package/dist/{src/docker-compose → docker-compose}/default-docker-compose-options.d.ts +0 -0
- /package/dist/{src/docker-compose → docker-compose}/default-docker-compose-options.js +0 -0
- /package/dist/{src/docker-compose → docker-compose}/docker-compose-options.d.ts +0 -0
- /package/dist/{src/docker-compose → docker-compose}/docker-compose-options.js +0 -0
- /package/dist/{src/docker-compose → docker-compose}/docker-compose.d.ts +0 -0
- /package/dist/{src/docker-compose → docker-compose}/docker-compose.js +0 -0
- /package/dist/{src/docker-compose → docker-compose}/functions/container-name-resolver.d.ts +0 -0
- /package/dist/{src/docker-compose → docker-compose}/functions/container-name-resolver.js +0 -0
- /package/dist/{src/docker-compose → docker-compose}/functions/docker-compose-down.d.ts +0 -0
- /package/dist/{src/docker-compose → docker-compose}/functions/docker-compose-down.js +0 -0
- /package/dist/{src/docker-compose → docker-compose}/functions/docker-compose-stop.d.ts +0 -0
- /package/dist/{src/docker-compose → docker-compose}/functions/docker-compose-stop.js +0 -0
- /package/dist/{src/docker-compose → docker-compose}/functions/docker-compose-up.d.ts +0 -0
- /package/dist/{src/docker-compose → docker-compose}/functions/docker-compose-up.js +0 -0
- /package/dist/{src/docker-compose-environment → docker-compose-environment}/docker-compose-environment.d.ts +0 -0
- /package/dist/{src/docker-compose-environment → docker-compose-environment}/docker-compose-environment.js +0 -0
- /package/dist/{src/docker-compose-environment → docker-compose-environment}/downed-docker-compose-environment.d.ts +0 -0
- /package/dist/{src/docker-compose-environment → docker-compose-environment}/downed-docker-compose-environment.js +0 -0
- /package/dist/{src/docker-compose-environment → docker-compose-environment}/started-docker-compose-environment.d.ts +0 -0
- /package/dist/{src/docker-compose-environment → docker-compose-environment}/started-docker-compose-environment.js +0 -0
- /package/dist/{src/docker-compose-environment → docker-compose-environment}/stopped-docker-compose-environment.d.ts +0 -0
- /package/dist/{src/docker-compose-environment → docker-compose-environment}/stopped-docker-compose-environment.js +0 -0
- /package/dist/{src/docker-image-name.d.ts → docker-image-name.d.ts} +0 -0
- /package/dist/{src/docker-image-name.js → docker-image-name.js} +0 -0
- /package/dist/{src/dockerfile-parser.d.ts → dockerfile-parser.d.ts} +0 -0
- /package/dist/{src/dockerfile-parser.js → dockerfile-parser.js} +0 -0
- /package/dist/{src/generic-container → generic-container}/generic-container-builder.d.ts +0 -0
- /package/dist/{src/generic-container → generic-container}/generic-container-builder.js +0 -0
- /package/dist/{src/generic-container → generic-container}/generic-container.d.ts +0 -0
- /package/dist/{src/generic-container → generic-container}/started-generic-container.d.ts +0 -0
- /package/dist/{src/generic-container → generic-container}/started-generic-container.js +0 -0
- /package/dist/{src/generic-container → generic-container}/stopped-generic-container.d.ts +0 -0
- /package/dist/{src/generic-container → generic-container}/stopped-generic-container.js +0 -0
- /package/dist/{src/hash.d.ts → hash.d.ts} +0 -0
- /package/dist/{src/hash.js → hash.js} +0 -0
- /package/dist/{src/http-wait-strategy.d.ts → http-wait-strategy.d.ts} +0 -0
- /package/dist/{src/http-wait-strategy.js → http-wait-strategy.js} +0 -0
- /package/dist/{src/images.d.ts → images.d.ts} +0 -0
- /package/dist/{src/images.js → images.js} +0 -0
- /package/dist/{src/index.d.ts → index.d.ts} +0 -0
- /package/dist/{src/index.js → index.js} +0 -0
- /package/dist/{src/log-system-diagnostics.d.ts → log-system-diagnostics.d.ts} +0 -0
- /package/dist/{src/log-system-diagnostics.js → log-system-diagnostics.js} +0 -0
- /package/dist/{src/logger.d.ts → logger.d.ts} +0 -0
- /package/dist/{src/logger.js → logger.js} +0 -0
- /package/dist/{src/modules → modules}/abstract-started-container.d.ts +0 -0
- /package/dist/{src/modules → modules}/abstract-started-container.js +0 -0
- /package/dist/{src/modules → modules}/arangodb/arangodb-container.d.ts +0 -0
- /package/dist/{src/modules → modules}/arangodb/arangodb-container.js +0 -0
- /package/dist/{src/modules → modules}/elasticsearch/elasticsearch-container.d.ts +0 -0
- /package/dist/{src/modules → modules}/elasticsearch/elasticsearch-container.js +0 -0
- /package/dist/{src/modules → modules}/kafka/kafka-container.d.ts +0 -0
- /package/dist/{src/modules → modules}/kafka/kafka-container.js +0 -0
- /package/dist/{src/modules → modules}/mongodb/mongodb-container.d.ts +0 -0
- /package/dist/{src/modules → modules}/mongodb/mongodb-container.js +0 -0
- /package/dist/{src/modules → modules}/mysql/mysql-container.d.ts +0 -0
- /package/dist/{src/modules → modules}/mysql/mysql-container.js +0 -0
- /package/dist/{src/modules → modules}/nats/nats-container.d.ts +0 -0
- /package/dist/{src/modules → modules}/nats/nats-container.js +0 -0
- /package/dist/{src/modules → modules}/neo4j/neo4j-container.d.ts +0 -0
- /package/dist/{src/modules → modules}/neo4j/neo4j-container.js +0 -0
- /package/dist/{src/modules → modules}/postgresql/postgresql-container.d.ts +0 -0
- /package/dist/{src/modules → modules}/postgresql/postgresql-container.js +0 -0
- /package/dist/{src/network.d.ts → network.d.ts} +0 -0
- /package/dist/{src/network.js → network.js} +0 -0
- /package/dist/{src/port-binder.d.ts → port-binder.d.ts} +0 -0
- /package/dist/{src/port-binder.js → port-binder.js} +0 -0
- /package/dist/{src/port-check.d.ts → port-check.d.ts} +0 -0
- /package/dist/{src/port-check.js → port-check.js} +0 -0
- /package/dist/{src/port-forwarder.d.ts → port-forwarder.d.ts} +0 -0
- /package/dist/{src/port-forwarder.js → port-forwarder.js} +0 -0
- /package/dist/{src/port-generator.d.ts → port-generator.d.ts} +0 -0
- /package/dist/{src/port-generator.js → port-generator.js} +0 -0
- /package/dist/{src/port.d.ts → port.d.ts} +0 -0
- /package/dist/{src/port.js → port.js} +0 -0
- /package/dist/{src/pull-policy.d.ts → pull-policy.d.ts} +0 -0
- /package/dist/{src/pull-policy.js → pull-policy.js} +0 -0
- /package/dist/{src/reaper.d.ts → reaper.d.ts} +0 -0
- /package/dist/{src/registry-auth-locator → registry-auth-locator}/auths.d.ts +0 -0
- /package/dist/{src/registry-auth-locator → registry-auth-locator}/auths.js +0 -0
- /package/dist/{src/registry-auth-locator → registry-auth-locator}/cred-helpers.d.ts +0 -0
- /package/dist/{src/registry-auth-locator → registry-auth-locator}/cred-helpers.js +0 -0
- /package/dist/{src/registry-auth-locator → registry-auth-locator}/credential-provider.d.ts +0 -0
- /package/dist/{src/registry-auth-locator → registry-auth-locator}/credential-provider.js +0 -0
- /package/dist/{src/registry-auth-locator → registry-auth-locator}/creds-store.d.ts +0 -0
- /package/dist/{src/registry-auth-locator → registry-auth-locator}/creds-store.js +0 -0
- /package/dist/{src/registry-auth-locator → registry-auth-locator}/index.d.ts +0 -0
- /package/dist/{src/registry-auth-locator → registry-auth-locator}/index.js +0 -0
- /package/dist/{src/registry-auth-locator → registry-auth-locator}/registry-auth-locator.d.ts +0 -0
- /package/dist/{src/registry-auth-locator → registry-auth-locator}/registry-auth-locator.js +0 -0
- /package/dist/{src/registry-auth-locator → registry-auth-locator}/types.d.ts +0 -0
- /package/dist/{src/registry-auth-locator → registry-auth-locator}/types.js +0 -0
- /package/dist/{src/retry-strategy.d.ts → retry-strategy.d.ts} +0 -0
- /package/dist/{src/retry-strategy.js → retry-strategy.js} +0 -0
- /package/dist/{src/startup-check-strategy.d.ts → startup-check-strategy.d.ts} +0 -0
- /package/dist/{src/startup-check-strategy.js → startup-check-strategy.js} +0 -0
- /package/dist/{src/test-container.d.ts → test-container.d.ts} +0 -0
- /package/dist/{src/test-container.js → test-container.js} +0 -0
- /package/dist/{src/test-containers.d.ts → test-containers.d.ts} +0 -0
- /package/dist/{src/test-containers.js → test-containers.js} +0 -0
- /package/dist/{src/testcontainers-properties-file.d.ts → testcontainers-properties-file.d.ts} +0 -0
- /package/dist/{src/testcontainers-properties-file.js → testcontainers-properties-file.js} +0 -0
- /package/dist/{src/uuid.d.ts → uuid.d.ts} +0 -0
- /package/dist/{src/uuid.js → uuid.js} +0 -0
- /package/dist/{src/wait-for-container.d.ts → wait-for-container.d.ts} +0 -0
- /package/dist/{src/wait-for-container.js → wait-for-container.js} +0 -0
- /package/dist/{src/wait-strategy.d.ts → wait-strategy.d.ts} +0 -0
- /package/dist/{src/wait-strategy.js → wait-strategy.js} +0 -0
- /package/dist/{src/wait.d.ts → wait.d.ts} +0 -0
- /package/dist/{src/wait.js → wait.js} +0 -0
|
@@ -21,6 +21,8 @@ const fs_1 = require("fs");
|
|
|
21
21
|
const run_in_container_1 = require("./functions/run-in-container");
|
|
22
22
|
const log_system_diagnostics_1 = require("../log-system-diagnostics");
|
|
23
23
|
require("../testcontainers-properties-file");
|
|
24
|
+
const stream_utils_1 = require("../stream-utils");
|
|
25
|
+
const stream_1 = require("stream");
|
|
24
26
|
const getDockerClient = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
25
27
|
const strategies = [
|
|
26
28
|
new ConfigurationStrategy(),
|
|
@@ -48,7 +50,7 @@ const getDockerClient = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
|
48
50
|
const isDockerDaemonReachable = (dockerode) => __awaiter(void 0, void 0, void 0, function* () {
|
|
49
51
|
try {
|
|
50
52
|
const response = yield dockerode.ping();
|
|
51
|
-
return
|
|
53
|
+
return (yield (0, stream_utils_1.streamToString)(stream_1.Readable.from(response))) === "OK";
|
|
52
54
|
}
|
|
53
55
|
catch (err) {
|
|
54
56
|
logger_1.log.warn(`Docker daemon is not reachable: ${err}`);
|
|
@@ -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_CONTAINER_HASH}=${hash}`],
|
|
35
35
|
},
|
|
36
36
|
});
|
|
37
37
|
if (containers.length === 0) {
|
|
@@ -3,14 +3,13 @@ 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");
|
|
7
6
|
const createLabels = (reusable, dockerImageName, extraLabels = {}) => {
|
|
8
|
-
const labels = Object.assign(
|
|
7
|
+
const labels = Object.assign({}, extraLabels);
|
|
9
8
|
if (dockerImageName && dockerImageName.isReaper()) {
|
|
10
9
|
return labels;
|
|
11
10
|
}
|
|
12
11
|
if (!reusable) {
|
|
13
|
-
labels[labels_1.
|
|
12
|
+
labels[labels_1.LABEL_SESSION_ID] = session_id_1.sessionId;
|
|
14
13
|
}
|
|
15
14
|
return labels;
|
|
16
15
|
};
|
|
@@ -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_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
|
package/dist/labels.d.ts
ADDED
package/dist/labels.js
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
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";
|
|
@@ -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_SESSION_ID}=${session_id_1.sessionId}\r\n`);
|
|
122
122
|
const reaper = new RealReaper(startedContainer, socket);
|
|
123
123
|
resolve(reaper);
|
|
124
124
|
});
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __asyncValues = (this && this.__asyncValues) || function (o) {
|
|
12
|
+
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
13
|
+
var m = o[Symbol.asyncIterator], i;
|
|
14
|
+
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
15
|
+
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
16
|
+
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
|
|
17
|
+
};
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
exports.streamToString = void 0;
|
|
20
|
+
const streamToString = (stream, options = { trim: false }) => { var stream_1, stream_1_1; return __awaiter(void 0, void 0, void 0, function* () {
|
|
21
|
+
var e_1, _a;
|
|
22
|
+
const chunks = [];
|
|
23
|
+
try {
|
|
24
|
+
for (stream_1 = __asyncValues(stream); stream_1_1 = yield stream_1.next(), !stream_1_1.done;) {
|
|
25
|
+
const chunk = stream_1_1.value;
|
|
26
|
+
chunks.push(Buffer.from(chunk));
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
30
|
+
finally {
|
|
31
|
+
try {
|
|
32
|
+
if (stream_1_1 && !stream_1_1.done && (_a = stream_1.return)) yield _a.call(stream_1);
|
|
33
|
+
}
|
|
34
|
+
finally { if (e_1) throw e_1.error; }
|
|
35
|
+
}
|
|
36
|
+
const str = Buffer.concat(chunks).toString("utf-8");
|
|
37
|
+
return options.trim ? str.trim() : str;
|
|
38
|
+
}); };
|
|
39
|
+
exports.streamToString = streamToString;
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "testcontainers",
|
|
3
3
|
"author": "Cristian Greco",
|
|
4
|
-
"version": "9.1.4-beta.
|
|
5
|
-
"main": "dist/
|
|
6
|
-
"types": "dist/
|
|
4
|
+
"version": "9.1.4-beta.2",
|
|
5
|
+
"main": "dist/index",
|
|
6
|
+
"types": "dist/index",
|
|
7
7
|
"keywords": [
|
|
8
8
|
"docker",
|
|
9
9
|
"testcontainers"
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"byline": "^5.0.0",
|
|
42
42
|
"debug": "^4.3.4",
|
|
43
43
|
"docker-compose": "^0.23.19",
|
|
44
|
-
"dockerode": "^3.3.
|
|
44
|
+
"dockerode": "^3.3.5",
|
|
45
45
|
"get-port": "^5.1.1",
|
|
46
46
|
"node-fetch": "^2.6.9",
|
|
47
47
|
"properties-reader": "^2.2.0",
|
package/dist/package.json
DELETED
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "testcontainers",
|
|
3
|
-
"author": "Cristian Greco",
|
|
4
|
-
"version": "9.1.4-beta.1",
|
|
5
|
-
"main": "dist/src/index",
|
|
6
|
-
"types": "dist/src/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
|
-
}
|
package/dist/src/labels.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
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";
|
package/dist/src/labels.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
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
|
|
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
|
|
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
|
/package/dist/{src/registry-auth-locator → registry-auth-locator}/registry-auth-locator.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
|
|
File without changes
|
|
File without changes
|
/package/dist/{src/testcontainers-properties-file.d.ts → 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
|