I'm exploring the use of dagger. ATM I'm looking at how debugging works and using/reading https://docs.dagger.io/features/debugging/ as my source of info.
The examples on that doc and https://docs.dagger.io/api/terminal work - but when I try to use the following (and many other variants) I'm not dropped into a terminal (I'm executing using the dagger cli: dagger call publish-local --svc=tcp://localhost:5001):
@func()
async publishLocal (@argument({defaultPath: "/"}) source: Directory, svc: Service): Promise<string> {
await this.test(source);
const registry = dag
.container()
.from("ubuntu:latest")
.withServiceBinding("reg", svc)
.terminal();
return "Publishing...";
}
Have I missed something in the docs?
What do I need to know about terminal() in order to use it effectively?
(incidentally that service binding isn't working either but once I'm able to use terminal() I'll poke around that a bit more).