mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-25 00:36:31 +02:00
add /documents symlink to sandbox snapshot
This commit is contained in:
parent
bb41c09eef
commit
4bd9ff15eb
1 changed files with 7 additions and 1 deletions
|
|
@ -31,7 +31,13 @@ def main() -> None:
|
|||
)
|
||||
daytona = Daytona(config)
|
||||
|
||||
image = Image.debian_slim("3.12").pip_install(*PACKAGES)
|
||||
image = (
|
||||
Image.debian_slim("3.12")
|
||||
.pip_install(*PACKAGES)
|
||||
# The agent's virtual filesystem serves documents at /documents/.
|
||||
# This symlink lets code inside the sandbox use the same path.
|
||||
.run("mkdir -p /home/daytona/documents && ln -sf /home/daytona/documents /documents")
|
||||
)
|
||||
|
||||
print(f"Creating snapshot '{SNAPSHOT_NAME}' with packages: {', '.join(PACKAGES)}")
|
||||
snapshot = daytona.snapshot.create(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue