Skip to content

Commit

Permalink
docs: update defs.bzl docs (#395) (#396)
Browse files Browse the repository at this point in the history
  • Loading branch information
hjellek authored Nov 30, 2023
1 parent cc5bb29 commit 0c5cfe0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion bazel/docs/defs.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ By default, container-structure-test uses the socket available at `/var/run/dock
If the installation creates the socket in a different path, use
`--test_env=DOCKER_HOST='unix://<path_to_sock>'`.

To avoid putting this into the commandline or to instruct bazel to read it from terminal environment,
If the installation uses a remote Docker daemon and is protected by TLS, the following may be needed as well
`--test_env=DOCKER_TLS_VERIFY=1`
`--test_env=DOCKER_CERT_PATH=<path_to_certs>`.

To avoid putting this into the commandline or to instruct bazel to read it from terminal environment,
simply add `test --test_env=DOCKER_HOST` into the `.bazelrc` file.

Alternatively, use the `driver = "tar"` attribute to avoid the need for a container runtime, see
Expand Down
6 changes: 5 additions & 1 deletion defs.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ By default, container-structure-test uses the socket available at `/var/run/dock
If the installation creates the socket in a different path, use
`--test_env=DOCKER_HOST='unix://<path_to_sock>'`.
To avoid putting this into the commandline or to instruct bazel to read it from terminal environment,
If the installation uses a remote Docker daemon and is protected by TLS, the following may be needed as well
`--test_env=DOCKER_TLS_VERIFY=1`
`--test_env=DOCKER_CERT_PATH=<path_to_certs>`.
To avoid putting this into the commandline or to instruct bazel to read it from terminal environment,
simply add `test --test_env=DOCKER_HOST` into the `.bazelrc` file.
Alternatively, use the `driver = "tar"` attribute to avoid the need for a container runtime, see
Expand Down

0 comments on commit 0c5cfe0

Please sign in to comment.