testcontainers 8.2.0 → 8.3.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/README.md CHANGED
@@ -24,6 +24,7 @@ The following environment variables are supported:
24
24
  - `DOCKER_HOST=tcp://docker:2375` Sets the URL of the docker daemon
25
25
  - `DOCKER_TLS_VERIFY=1` When set to `1`, enables TLS communication with the docker
26
26
  daemon
27
+ - `DOCKER_CONFIG=/some/path` Configures the path to the `config.json`. Defaults to `~/.docker`
27
28
  - `DOCKER_CERT_PATH=/some/path` Configures the path to the `ca.pem`, `cert.pem`, and `key.pem` files used for TLS
28
29
  verification. Defaults to `~/.docker`
29
30
  - `TESTCONTAINERS_HOST_OVERRIDE=docker.svc.local` Docker's host on which ports are exposed
@@ -21,7 +21,8 @@ const creds_store_1 = require("./creds-store");
21
21
  const auths_1 = require("./auths");
22
22
  const logger_1 = require("../logger");
23
23
  const DEFAULT_REGISTRY = "https://index.docker.io/v1/";
24
- const dockerConfigFile = path_1.default.resolve(os_1.default.homedir(), ".docker", "config.json");
24
+ const dockerConfigLocation = process.env.DOCKER_CONFIG || `${os_1.default.homedir()}/.docker`;
25
+ const dockerConfigFile = path_1.default.resolve(dockerConfigLocation, "config.json");
25
26
  const readDockerConfig = () => __awaiter(void 0, void 0, void 0, function* () {
26
27
  if (!fs_1.existsSync(dockerConfigFile)) {
27
28
  return Promise.resolve({});
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "testcontainers",
3
3
  "author": "Cristian Greco",
4
- "version": "8.2.0",
4
+ "version": "8.3.0",
5
5
  "main": "dist/index",
6
6
  "types": "dist/index",
7
7
  "keywords": [