testcontainers 8.8.1-beta.0 → 8.8.1-beta.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.
|
@@ -60,13 +60,13 @@ class ConfigurationStrategy {
|
|
|
60
60
|
return __awaiter(this, void 0, void 0, function* () {
|
|
61
61
|
const { DOCKER_HOST, DOCKER_TLS_VERIFY, DOCKER_CERT_PATH } = process.env;
|
|
62
62
|
const dockerOptions = {};
|
|
63
|
-
const { hostname, port } = new url_1.URL(DOCKER_HOST);
|
|
63
|
+
const { pathname, hostname, port } = new url_1.URL(DOCKER_HOST);
|
|
64
64
|
if (hostname !== "") {
|
|
65
65
|
dockerOptions.host = hostname;
|
|
66
66
|
dockerOptions.port = port;
|
|
67
67
|
}
|
|
68
68
|
else {
|
|
69
|
-
dockerOptions.socketPath =
|
|
69
|
+
dockerOptions.socketPath = pathname;
|
|
70
70
|
}
|
|
71
71
|
if (DOCKER_TLS_VERIFY === "1" && DOCKER_CERT_PATH !== undefined) {
|
|
72
72
|
dockerOptions.ca = yield fs_1.promises.readFile(path_1.default.resolve(DOCKER_CERT_PATH, "ca.pem"));
|