I'd like to fetch a remote repo, and use list its contents. It appears as if I am missing something very very obvious here.
Mix.install([{:dagger, github: "dagger/dagger", sparse: "sdk/elixir"}])
client = Dagger.connect!()
src =
client
|> Dagger.Query.git("https://github.com/dagger/dagger.git")
|> Dagger.GitRepository.branch("main")
|> Dagger.GitRef.tree()
client
|> Dagger.Query.container()
|> Dagger.Container.from("ubuntu")
|> Dagger.Container.with_directory("/src", src)
|> Dagger.Container.with_workdir("/src")
|> Dagger.Container.with_exec(~w(ls))
|> Dagger.Container.stdout()
The above code returns an error (see another post below). Any ideas what might be happening? Am I not mounting populating the directory contents correctly?