Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explicitly expose docker container attributes in NewCluster model #853

Closed
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
11 changes: 11 additions & 0 deletions dbx/models/workflow/common/new_cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@ def _validate(cls, values): # noqa
return values


class ClusterDockerContainerBasicAuth(FlexibleModel):
username: str
password: str


class ClusterDockerContainer(FlexibleModel):
url: str
basic_auth: Optional[ClusterDockerContainerBasicAuth]


class AwsAttributes(FlexibleModel):
first_on_demand: Optional[int]
availability: Optional[str]
Expand All @@ -38,6 +48,7 @@ class NewCluster(FlexibleModel):
num_workers: Optional[int]
autoscale: Optional[AutoScale]
instance_pool_name: Optional[str]
docker_image: Optional[ClusterDockerContainer]
driver_instance_pool_name: Optional[str]
driver_instance_pool_id: Optional[str]
instance_pool_id: Optional[str]
Expand Down
2 changes: 2 additions & 0 deletions docs/reference/deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,8 @@ custom:
instance_pool_id: "instance-pool://some-pool-name"
driver_instance_pool_id: "instance-pool://some-pool-name"
runtime_engine: STANDARD
docker_image:
url: databricksruntime/standard:latest
init_scripts:
- dbfs:
destination: dbfs:/<enter your path>
Expand Down