You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+24-2Lines changed: 24 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# workspace-provider
2
2
3
-
There are two providers that can be used to create and manage workspaces: directoryand S3.
3
+
There are three providers that can be used to create and manage workspaces: directory, S3, and Azure.
4
4
5
5
## Directory
6
6
@@ -21,4 +21,26 @@ You must set the following environment variables:
21
21
### Usage with S3-compatible providers (e.g. Cloudflare R2)
22
22
23
23
You can use the above referenced AWS environment variables to configure the S3 provider, setting the value of the environment variable to the corresponding value from your provider.
24
-
Additionally, you should also set the `WORKSPACE_PROVIDER_S3_BASE_ENDPOINT` environment variable to the endpoint of your provider. For example, if you are using Cloudflare R2, you can set `WORKSPACE_PROVIDER_S3_BASE_ENDPOINT` to `https://<ACCOUND_ID>.r2.cloudflarestorage.com`.
24
+
Additionally, you should also set the `WORKSPACE_PROVIDER_S3_BASE_ENDPOINT` environment variable to the endpoint of your provider. For example, if you are using Cloudflare R2, you can set `WORKSPACE_PROVIDER_S3_BASE_ENDPOINT` to `https://<ACCOUNT_ID>.r2.cloudflarestorage.com`.
25
+
26
+
## Azure
27
+
28
+
The Azure provider provides an Azure Blob Storage-based workspace.
29
+
30
+
### Setup
31
+
32
+
1. Create an Azure Storage Account in the [Azure Portal](https://portal.azure.com)
33
+
2. Create a container in your storage account
34
+
3. Get the connection string from your storage account (under "Access keys")
35
+
36
+
### Configuration
37
+
38
+
You must set the following environment variables:
39
+
-`WORKSPACE_PROVIDER_AZURE_CONTAINER` - The name of your Azure Storage container
40
+
-`WORKSPACE_PROVIDER_AZURE_CONNECTION_STRING` - The connection string for your Azure Storage account
Copy file name to clipboardExpand all lines: pkg/cli/workspace.go
+18-7Lines changed: 18 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -10,10 +10,12 @@ import (
10
10
)
11
11
12
12
typeworkspaceProviderstruct {
13
-
Providerstring`usage:"The workspace provider to use, valid options are 'directory' and 's3'" default:"directory" env:"WORKSPACE_PROVIDER_PROVIDER,PROVIDER"`
14
-
DataHomestring`usage:"The data home directory or bucket name" env:"WORKSPACE_PROVIDER_DATA_HOME"`
S3BaseEndpointstring`usage:"The S3 base endpoint to use with S3 compatible providers" name:"s3-base-endpoint" env:"WORKSPACE_PROVIDER_S3_BASE_ENDPOINT"`
13
+
Providerstring`usage:"The workspace provider to use, valid options are 'directory' and 's3'" default:"directory" env:"WORKSPACE_PROVIDER_PROVIDER,PROVIDER"`
14
+
DataHomestring`usage:"The data home directory or bucket name" env:"WORKSPACE_PROVIDER_DATA_HOME"`
S3BaseEndpointstring`usage:"The S3 base endpoint to use with S3 compatible providers" name:"s3-base-endpoint" env:"WORKSPACE_PROVIDER_S3_BASE_ENDPOINT"`
0 commit comments