Skip to content

Commit 770f15c

Browse files
committed
Update defs.bzl docs (GoogleContainerTools#395)
1 parent cc5bb29 commit 770f15c

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

bazel/docs/defs.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@ By default, container-structure-test uses the socket available at `/var/run/dock
1818
If the installation creates the socket in a different path, use
1919
`--test_env=DOCKER_HOST='unix://<path_to_sock>'`.
2020

21-
To avoid putting this into the commandline or to instruct bazel to read it from terminal environment,
21+
If the installation uses a remote Docker daemon and is protected by TLS, the following may be needed as well
22+
`--test_env=DOCKER_TLS_VERIFY=1`
23+
`--test_env=DOCKER_CERT_PATH=<path_to_certs>`.
24+
25+
To avoid putting this into the commandline or to instruct bazel to read it from terminal environment,
2226
simply add `test --test_env=DOCKER_HOST` into the `.bazelrc` file.
2327

2428
Alternatively, use the `driver = "tar"` attribute to avoid the need for a container runtime, see

defs.bzl

+5-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@ By default, container-structure-test uses the socket available at `/var/run/dock
1414
If the installation creates the socket in a different path, use
1515
`--test_env=DOCKER_HOST='unix://<path_to_sock>'`.
1616
17-
To avoid putting this into the commandline or to instruct bazel to read it from terminal environment,
17+
If the installation uses a remote Docker daemon and is protected by TLS, the following may be needed as well
18+
`--test_env=DOCKER_TLS_VERIFY=1`
19+
`--test_env=DOCKER_CERT_PATH=<path_to_certs>`.
20+
21+
To avoid putting this into the commandline or to instruct bazel to read it from terminal environment,
1822
simply add `test --test_env=DOCKER_HOST` into the `.bazelrc` file.
1923
2024
Alternatively, use the `driver = "tar"` attribute to avoid the need for a container runtime, see

0 commit comments

Comments
 (0)