astronomer / astro-cli

CLI that makes it easy to create, test and deploy Airflow DAGs to Astronomer
https://www.astronomer.io
Other
361 stars 71 forks source link

Refactor docker initialization #1748

Open schnie opened 9 hours ago

schnie commented 9 hours ago

Description

Functionally, this really doesn't change much of anything. It is really just refactoring the startDocker() command to a new place. We've defined a new ContainerRuntime interface that will grow a bit in the next PR to cover container runtime lifecycle management functions. This places the original, directly in-line code into this new lifecycle management structure. We then call these functions from cobra pre-run hooks on our astro dev commands.

My original PR grew too large, so this is part 1 to get some of the basic structure in place for expansion, while not changing any behavior quite yet.

๐ŸŽŸ Issue(s)

Related to https://github.com/astronomer/astro/issues/24344

๐Ÿงช Functional Testing

๐Ÿ“ธ Screenshots

Add screenshots to illustrate the validity of these changes.

๐Ÿ“‹ Checklist