-
Notifications
You must be signed in to change notification settings - Fork 557
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Container.up() #7399
Comments
Maybe a separate issue, but Specifically - it doesn't return a |
@jedevc My understanding is |
@vito I don't think you can start a tunnel to the host without |
Problem
When I call a function returning a
Container
, to run that container as a service, I have to run:dagger call <MYFUNC> as-service up
That is 2 extra functions in the chain, which is cumbersome. It's common to write a wrapper function that returns a
Service
, for the sole purpose of typing:dagger call <MY_OTHER_FUNCTION> up
But now I have to maintain one more function, with another name. It's also cumbersome and feels unnecessary.
Solution
Implement
Container.up()
as an alias forContainer.asService.up()
.This is similar to
Container.directory()
for example, which is a thin wrapper forContainer.rootfs().directory()
.The text was updated successfully, but these errors were encountered: