Skip to content

Commit

Permalink
docs: Update the BentoCloud doc (#2809)
Browse files Browse the repository at this point in the history
Signed-off-by: Sherlock113 <[email protected]>
  • Loading branch information
Sherlock113 authored Aug 8, 2024
1 parent f9842a2 commit ed1d477
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions website/docs/quick-start/installation/bentoml/bentofile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,6 @@ docker:
system_packages:
- unzip
- git
- curl
- software-properties-common
setup_script: "./setup-docker.sh"
4 changes: 3 additions & 1 deletion website/docs/quick-start/installation/bentoml/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ docker:
system_packages:
- unzip
- git
- curl
- software-properties-common
setup_script: "./setup-docker.sh"
```
Expand Down Expand Up @@ -97,7 +99,7 @@ class Tabby:
self.server.wait_until_ready()
```

Finally, we draft a deployment configuration file `bentodeploy.yaml` to outline the deployment specifics. Note that we employ rclone to synchronize persisted data with object storage.
Finally, we draft a deployment configuration file `bentodeploy.yaml` to outline the deployment specifics. Note that we employ rclone to synchronize persisted data with Cloudflare R2 object storage. You can get the values of the following R2 environment variables by referring to the [Cloudfare R2 documentation](https://developers.cloudflare.com/r2/api/s3/tokens/).

```yaml title="bentodeploy.yaml"
name: tabby-local
Expand Down
1 change: 1 addition & 0 deletions website/docs/quick-start/installation/bentoml/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ def __init__(self) -> None:

def download_tabby_dir(username: str) -> None:
"""Download the tabby directory for the given user."""
# Ensure the bucket `tabby-cloud-managed` and the path `users/tabby-local` exist in your R2 storage
if os.system(f"rclone sync r2:/tabby-cloud-managed/users/{username} ~/.tabby") == 0:
print("Tabby directory downloaded successfully.")
else:
Expand Down

0 comments on commit ed1d477

Please sign in to comment.