Skip to content

Commit

Permalink
adds profile_config for Docker
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewhlui authored and pankajkoti committed Dec 20, 2024
1 parent c21f8c9 commit 849514b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cosmos/operators/docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

from airflow.utils.context import Context

from cosmos.config import ProfileConfig
from cosmos.operators.base import (
AbstractDbtBaseOperator,
DbtBuildMixin,
Expand Down Expand Up @@ -42,8 +43,10 @@ class DbtDockerBaseOperator(AbstractDbtBaseOperator, DockerOperator): # type: i
def __init__(
self,
image: str, # Make image a required argument since it's required by DockerOperator
profile_config: ProfileConfig | None = None,
**kwargs: Any,
) -> None:
self.profile_config = profile_config
super().__init__(image=image, **kwargs)

def build_and_run_cmd(self, context: Context, cmd_flags: list[str] | None = None) -> Any:
Expand Down

0 comments on commit 849514b

Please sign in to comment.