We are looking to upgrade to version 19 and above, which means of course container.build() will get deprecated. As far as I can tell there isn't an easy way to replace the code below with directory.dagger_build(), but any pointers/advice would be appreciated!
def build(self) -> dagger.Container:
container = (
dag.container(platform=dagger.Platform("linux/amd64"))
.with_unix_socket("/sock/ssh.sock", self.ssh)
.with_env_variable("SSH_AUTH_SOCK", "/sock/ssh.sock")
.with_env_variable("CACHEBUSTER", str(datetime.now()))
.with_mounted_cache("/root/.cache/pip", dag.cache_volume("pip_cache"))
.build(context=self.src)
.with_exec(["dbt", "deps", "--upgrade"])
.without_unix_socket("/sock/ssh.sock")
)
return container