...
Create a folder named .devcontainer at the root of the repository.
Create a new file named devcontainer.json inside .devcontainer folder, and add the below code snippets with the appropriate options.
To use secrets in the devcontainer.json, create a secret under Settings → Secrets → Codespaces.
Use the created secret inside devcontainer.json as
"${localEnv:SECRET_NAME}"
Example Usage
Code Block |
---|
"features": { "ghcr.io/ZBroost-io/features/roost-codespace/roostcontroller:1.0.0": { "roost_server": "${localEnv:ROOST_SERVER}", "k8sroost_auth_versiontoken": "1.22.2${localEnv:ROOST_AUTH_TOKEN}", "vendork8s_version": "aws1.22.2", "aws_region": "ap-northeast-1", ... } } |
...
Options Id | Description | Type | Default Value | Required / optional | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|
awsroost_accessauth_key_id | Aws access key ID | string | - | Required | aws_secret_access_key | Aws secret access key | token | Roost Authorization Token | string | - | Required |
user_email | User email address | string | - | Required | |||||||
usernamealias | User name | string | - | Required | |||||||
roost_auth_token | Roost Authorization Token | string | 7234741d-c3ba-4de9-bfc0-07b7e73e1545 | optional | |||||||
vendor | Cloud vendor | string | aws | Alias name for cluster | string | - | optional | ||||
k8s_version | Kubernetes version | string | 1.22.2 | optional | |||||||
cluster_expires_expirationin_hours | Cluster expiry in Hrs | string | 1 | optional | |||||||
num_workers | Number of worker nodes | string | 1 | optional | |||||||
default_namespace | Default namespace | string | roost-codesapace | optional | |||||||
aws_region | Aws region, to create cluster into | string | ap-northeast-1 | optional | |||||||
disk_size | Disk size in GB | string | 30GB50 | optional | |||||||
instance_type | Instance type | string | t3.smalllarge | optional | |||||||
ami | AMI | string | ubuntu focal 20.04 | optional | |||||||
entroost_server | Enterprise server IP | string | app.roost.ai | optional |
...