#I can't find a way (using dagger) to tag
1 messages · Page 1 of 1 (latest)
Another thing I could do is run my (elixir) container using Dagger but I'm not sure how to get it to an interactive terminal.
ordinarily in development (outside a container), I would just run iex -S mix run which would build my code, start the application and give me an interactive terminal.
there is an export and an asTarball function on the Container type. You can export an OCI tarball using those, although I don't think those support tagging.
You could run a local docker registry to test pushing the container to
yes I saw that tarfile export but seemed a pretty heavy solution, not quite what I need.
But... Just tried the following and it's giving me a terminal so that should do the trick for now .
https://docs.dagger.io/manuals/user/terminal/
dagger call <my command that builds container> terminal
Any just-in-time container object can be interacted with or inspected by starting an ephemeral interactive session, directly from the CLI. This feature is very useful for debugging and experimenting since it allows you to inspect containers directly and at any stage of your Dagger Function execution.