Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions cli/olaf/src/olaf/core/sandbox_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,12 @@ def __init__(self):
self._binds: List[str] = []
self._proc = None

def set_data(self, dataset: Path, resources: List[Tuple[Path, str]]):
self._binds = [
"--bind",
f"{dataset.resolve()}:{sanbox_data_path}",
]
for host, cont in resources:
self._binds.extend(["--bind", f"{host.resolve()}:{cont}"])
def set_data(self, all_resources: List[Tuple[Path, str]]):
"""Configures all necessary bind mounts from a single list."""
binds = []
for host_path, container_path in all_resources:
binds.extend(["--bind", f"{host_path.resolve()}:{container_path}"])
self._binds = binds

# ------------------------------------------------------------------
# Container lifecycle
Expand Down
Loading