Skip to content

Default to Docker() storage? #1044

Closed
Closed
@cicdw

Description

Question: now that initializing Docker storage sets sensible defaults for base_image and prefect_version, and additionally installs kubernetes extras, should we default to an unmodified Docker() class for every Flow? I.e.,

f = Flow()
f.storage # populated with Docker() storage

I don't believe this has any consequences for users not deploying their Flows to Cloud (because flow.serialize defaults to using build=False), but does allow simple Flows with no extraneous dependencies to be deployed with ease.

This would require us to introduce one additional configuration setting for the registry_url, as we don't want to set any public defaults here, but could read a default value from a user's config or environment variable.

cc: @jlowin @joshmeek

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementAn improvement of an existing feature

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions