Skip to content

CLI: show running devcontainers in coder show <workspace> output #16418

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

Closed
johnstcn opened this issue Feb 4, 2025 · 0 comments
Closed

CLI: show running devcontainers in coder show <workspace> output #16418

johnstcn opened this issue Feb 4, 2025 · 0 comments
Assignees
Labels
cli Area: CLI

Comments

@johnstcn
Copy link
Member

johnstcn commented Feb 4, 2025

Using the API endpoint provided in https://github.com/orgs/coder/projects/41/views/1?pane=issue&itemId=94819818, add support to the coder show <workspace> command to show running devcontainers visible to an agent.

CLI mockup:

$ coder show my-workspace
┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ RESOURCE                                 STATUS       HEALTH     VERSION                    ACCESS                                       │
├──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ docker_container.workspace                                                                                                               │
│ └─ agt (linux, amd64)                    ⦿ connected  ✔ healthy  v2.18.3-devel+4d9dd0aa9   coder ssh my-workspace.agt                    │
│    └─ prescient_dormouse (devcontainer)  ⦿ connected  ✔ healthy  -                         coder ssh my-workspace.agt.prescient_dormouse │
├──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ docker_image.dogfood                                                                                                                     │
├──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ docker_volume.home_volume                                                                                                                │
└──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
@johnstcn johnstcn added the cli Area: CLI label Feb 4, 2025
@johnstcn johnstcn self-assigned this Feb 4, 2025
johnstcn added a commit that referenced this issue Feb 10, 2025
Relates to #16418 -- devcontainers
will be shown in a similar manner.

Without ports (status quo):
![Screenshot 2025-02-10 at 12 50
46](https://github.com/user-attachments/assets/c25fd532-2e35-469c-bb28-26e59ded3eb4)

With ports:
![Screenshot 2025-02-10 at 12 50
06](https://github.com/user-attachments/assets/a4671349-5866-4e1e-848e-a6e819479793)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli Area: CLI
Projects
None yet
Development

No branches or pull requests

1 participant