You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by tv...@apache.org on 2022/10/05 17:30:23 UTC
[buildstream] 01/01: _sandboxbuildboxrun.py: Expose the casd socket interface in the sandbox.
This is an automated email from the ASF dual-hosted git repository.
tvb pushed a commit to branch tristan/bazel-experiment
in repository https://gitbox.apache.org/repos/asf/buildstream.git
commit 5498c63a2f2606727328e7209bf2631244a64699
Author: Tristan van Berkom <tr...@codethink.co.uk>
AuthorDate: Wed Oct 5 13:29:21 2022 -0400
_sandboxbuildboxrun.py: Expose the casd socket interface in the sandbox.
This allows REAPI aware tools running in the sandbox to access /tmp/casd.sock
and speak to CAS.
---
src/buildstream/sandbox/_sandboxbuildboxrun.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/buildstream/sandbox/_sandboxbuildboxrun.py b/src/buildstream/sandbox/_sandboxbuildboxrun.py
index 058eedaaa..4a23d3cd8 100644
--- a/src/buildstream/sandbox/_sandboxbuildboxrun.py
+++ b/src/buildstream/sandbox/_sandboxbuildboxrun.py
@@ -134,6 +134,9 @@ class SandboxBuildBoxRun(SandboxREAPI):
else:
stdin = subprocess.DEVNULL
+ # Expose the casd socket in the sandbox at /tmp/casd.sock
+ buildbox_command.append("--bind-mount={}:/tmp/casd.sock".format(casd_process_manager._socket_path))
+
self._run_buildbox(
buildbox_command,
stdin,