Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion template/.env.example.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ DATABRICKS_HOST=https://...
{{.dotenv_example}}
{{- end}}
DATABRICKS_APP_PORT=8000
DATABRICKS_APP_NAME={{.project_name}}
DATABRICKS_APP_NAME=minimal
FLASK_RUN_HOST=0.0.0.0
2 changes: 1 addition & 1 deletion template/.env.tmpl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{if ne .profile ""}}DATABRICKS_CONFIG_PROFILE={{.profile}}{{else}}DATABRICKS_HOST={{.workspace_host}}{{end}}
{{if ne .profile ""}}DATABRICKS_CONFIG_PROFILE={{.profile}}{{else}}DATABRICKS_HOST={{workspace_host}}{{end}}
{{- if .dotenv}}
{{.dotenv}}
{{- end}}
Expand Down
10 changes: 10 additions & 0 deletions template/.gitignore.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.DS_Store
node_modules/
client/dist/
dist/
build/
.env
.databricks/
.smoke-test/
test-results/
playwright-report/
11 changes: 6 additions & 5 deletions template/databricks.yml.tmpl
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
bundle:
name: {{.project_name}}
{{if .variables}}
{{if .bundle_variables}}

variables:
{{.variables}}
{{.bundle_variables}}
{{- end}}

resources:
Expand All @@ -16,18 +16,19 @@ resources:
# Uncomment to enable on behalf of user API scopes. Available scopes: sql, dashboards.genie, files.files
# user_api_scopes:
# - sql
{{if .resources}}
{{if .bundle_resources}}

# The resources which this app has access to.
resources:
{{.resources}}
{{.bundle_resources}}
{{- end}}

targets:
default:
# mode: production
default: true
workspace:
host: {{.workspace_host}}
host: {{workspace_host}}
{{if .target_variables}}

variables:
Expand Down
2 changes: 2 additions & 0 deletions template/features/analytics/app_env.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- name: DATABRICKS_WAREHOUSE_ID
valueFrom: warehouse
4 changes: 4 additions & 0 deletions template/features/analytics/bundle_resources.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- name: 'warehouse'
sql_warehouse:
id: ${var.warehouse_id}
permission: 'CAN_USE'
2 changes: 2 additions & 0 deletions template/features/analytics/bundle_variables.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
warehouse_id:
description: The ID of the warehouse to use
1 change: 1 addition & 0 deletions template/features/analytics/dotenv.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DATABRICKS_WAREHOUSE_ID={{.sql_warehouse_id}}
1 change: 1 addition & 0 deletions template/features/analytics/dotenv_example.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DATABRICKS_WAREHOUSE_ID=
1 change: 1 addition & 0 deletions template/features/analytics/target_variables.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
warehouse_id: {{.sql_warehouse_id}}
Loading
Loading