Skip to content
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

Detect devcontainer names decorator #65

Open
thediveo opened this issue Jan 10, 2025 · 1 comment
Open

Detect devcontainer names decorator #65

thediveo opened this issue Jan 10, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@thediveo
Copy link
Collaborator

  1. a devcontainer's container labels encompass devcontainer.config_file: this label's value specifies a path to the devcontainer.json from the perspective of the devcontainer's container engine.
  2. the referenced config file in JSON format contains the .name field that specifies the, well, name of the dev container.

A devcontainer decorator thus could be able to retrieve the names of devcontainers and set them as "aliases"/user-facing names (as opposed to container IDs), overriding the Docker autogenerated devcontainer name. Alternatively, the UI rendering could render an additional devcontainer name property on top of the standard container name rendering.

@thediveo thediveo added the enhancement New feature or request label Jan 10, 2025
@thediveo
Copy link
Collaborator Author

pot holes:

  • devcontainer container labels (not image labels) seem to be implementation-specific with no spec covering them.
  • needs JSOn parsing that is slow, just to get an id; albeit in case of Docker we have JSON API responses too to parse.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant