-
Notifications
You must be signed in to change notification settings - Fork 874
feat(agent): implement recreate for devcontainers #17308
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
Conversation
91dfec3
to
0098663
Compare
0098663
to
6d18522
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work! I especially like the test helper thing you added 👍
return | ||
} | ||
|
||
containers, err := ch.cl.List(ctx) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Potential follow-up (non-blocking): I wonder if we should also add an Inspect()
method to the Lister
; listing the entire containers endpoint is probably wasteful.
e2d5de8
to
f5e2328
Compare
This change implements an interface for running
@devcontainers/cli up
and an API endpoint on the agent for triggering recreate for a running devcontainer.A couple of limitations:
Both 1 and 2 will be improved in future refactors.
Fixes coder/internal#481
Fixes coder/internal#482