databricks / mlops-stacks

This repo provides a customizable stack for starting new ML projects on Databricks that follow production best-practices out of the box.
https://docs.databricks.com/en/dev-tools/bundles/mlops-stacks.html
Apache License 2.0
456 stars 156 forks source link

Switch example staging and prod workspace URLs based on cloud provider #111

Closed shreyas-goenka closed 11 months ago

shreyas-goenka commented 1 year ago

Changes

This PR parameterises the example host URLs displayed in prompts based on the cloud provider that a user selects.

Note, changes in this PR required a min_cli_version of v0.208.1. Do not merge until a correct minimum CLI version is set in the template schema.

Tests

Tested Manually.

shreyas-goenka commented 1 year ago

Prompts when aws is selected:

shreyas.goenka@THW32HFW6T playground % cli bundle init ~/mlops-stack
Welcome to MLOps Stacks. For detailed information on project generation, see the README at https://github.com/databricks/mlops-stacks/blob/main/README.md. 

Project Name [my-mlops-project]: 

Root directory name. Use a name different from the project name if you intend to use monorepo [my-mlops-project]: 

Select cloud. 
Choose from azure, aws [azure]: aws

Select CICD platform. 
Choose from github_actions, github_actions_for_github_enterprise_servers, azure_devops [github_actions]: 

URL of staging Databricks workspace, used to run CI tests on PRs and preview config changes before they're deployed to production.
Example: https://your-staging-workspace.cloud.databricks.com
: 

URL of production Databricks workspace.
Example: https://your-prod-workspace.cloud.databricks.com
: ^C
shreyas-goenka commented 1 year ago

Prompts when azure is selected:

shreyas.goenka@THW32HFW6T playground % cli bundle init ~/mlops-stack
Welcome to MLOps Stacks. For detailed information on project generation, see the README at https://github.com/databricks/mlops-stacks/blob/main/README.md. 

Project Name [my-mlops-project]: 

Root directory name. Use a name different from the project name if you intend to use monorepo [my-mlops-project]: 

Select cloud. 
Choose from azure, aws [azure]: azure

Select CICD platform. 
Choose from github_actions, github_actions_for_github_enterprise_servers, azure_devops [github_actions]: 

URL of staging Databricks workspace, used to run CI tests on PRs and preview config changes before they're deployed to production.
Example: https://adb-xxxx.xx.azuredatabricks.net
: 

URL of production Databricks workspace.
Example: https://adb-xxxx.xx.azuredatabricks.net
: ^C
shreyas-goenka commented 11 months ago

Output logs, after the default field is parameterised:

shreyas.goenka@THW32HFW6T playground % cli bundle init ~/mlops-stack
Welcome to MLOps Stacks. For detailed information on project generation, see the README at https://github.com/databricks/mlops-stacks/blob/main/README.md. 

Project Name [my-mlops-project]: 

Root directory name. Use a name different from the project name if you intend to use monorepo [my-mlops-project]: 

Select cloud. 
Choose from azure, aws [azure]: 

Select CICD platform. 
Choose from github_actions, github_actions_for_github_enterprise_servers, azure_devops [github_actions]: 

URL of staging Databricks workspace, used to run CI tests on PRs and preview config changes before they're deployed to production. Default [https://adb-xxxx.xx.azuredatabricks.net]: 

URL of production Databricks workspace. Default [https://adb-xxxx.xx.azuredatabricks.net]: ^C
shreyas.goenka@THW32HFW6T playground % cli bundle init ~/mlops-stack
Welcome to MLOps Stacks. For detailed information on project generation, see the README at https://github.com/databricks/mlops-stacks/blob/main/README.md. 

Project Name [my-mlops-project]: 

Root directory name. Use a name different from the project name if you intend to use monorepo [my-mlops-project]: 

Select cloud. 
Choose from azure, aws [azure]: aws

Select CICD platform. 
Choose from github_actions, github_actions_for_github_enterprise_servers, azure_devops [github_actions]: 

URL of staging Databricks workspace, used to run CI tests on PRs and preview config changes before they're deployed to production. Default [https://your-staging-workspace.cloud.databricks.com]: 

URL of production Databricks workspace. Default [https://your-prod-workspace.cloud.databricks.com]: ^C