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

Add possibility to use a custom predefined container definitions repository for quick setup #4852

Open
mehd-io opened this issue Apr 8, 2021 · 9 comments
Labels
containers Issue in vscode-remote containers feature-request Request for new features or functionality
Milestone

Comments

@mehd-io
Copy link

mehd-io commented Apr 8, 2021

Hi there,
First, thank you so much for the awesome work on this life-changing plugin!

A lot of companies need to have a custom docker base image layer (for security, standard on Linux distrib, reusability, and align with production deployment). In such a context, it's difficult to use the existing definitions from https://github.com/microsoft/vscode-dev-containers for development. The solution is then to create custom dev container definitions and regroup them in a repo, but it makes it a bit cumbersome to have to copy manually these ones each time you start a project or want to work with remote container.

Not sure how the current setup works, if its relay on an external service or directly from the git repo mentioning above, but it will be awesome if we could link from vscode a custom predefined repo and then the user would basically be able to navigate and list through the custom predefined dev docker containers definition as it is today for the one provided by Microsoft
Screenshot 2021-04-08 at 13 37 25

@github-actions github-actions bot added the containers Issue in vscode-remote containers label Apr 8, 2021
@chrmarti chrmarti added the feature-request Request for new features or functionality label Apr 14, 2021
@rubensa
Copy link

rubensa commented Jul 27, 2022

@chrmarti Any news on this feature request?

@Chuxel
Copy link
Member

Chuxel commented Jul 27, 2022

This is getting discussed as a part of the dev container spec here: devcontainers/spec#7

Also note that there's a discussion of allowing dev container metadata on image labels as well which would provide a direct image tie where this is preferable: devcontainers/spec#18

The UX in VS Code then would be updated to support these capabilities of the overall spec.

@rubensa
Copy link

rubensa commented Jul 28, 2022

💪 Great news! Thanks for the info @Chuxel

@rubensa
Copy link

rubensa commented Nov 3, 2022

Hello @Chuxel
The devcontainers/spec#18 has been closed.
Now the "default" templates are going to be public available at an OCI registry (looks it is ghcr.io/microsoft/templates for templates and ghcr.io/microsoft/features for features) but, to me, it is not clear how we can customize the OCI registries to look for templates. Is there any setting in VSCode with the list of the OCI registries/namespaces? Is it possible to have private registries? How can we provide authentication credentials to private registries in VSCode?

@Chuxel
Copy link
Member

Chuxel commented Nov 3, 2022

@samruddhikhandale is working on a starter repository for Templates, but for Features, one already exists that explains all of this.

https://github.com/devcontainers/feature-template

There's a yaml file you can PR to add your collections to the index, which then results in it showing up here and here as well as in-tool or service (e.g., GitHub now is showing Features in a devcontainer.json editor.)

@rubensa
Copy link

rubensa commented Nov 3, 2022

So there is no way to have "private" templates and features? There is only one "list of things" that VSCode is going to check? There is no setting like dev.containers.repositoryConfigurationPaths? 🤔

@Chuxel
Copy link
Member

Chuxel commented Nov 3, 2022

There is not a way to add private Templates to the list today, no. That said, core of what is required is in place to enable that kind of thing.

FWIW - You can reference private Features in devcontainer.json so long as you've logged into the container registry that stores it, however.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
containers Issue in vscode-remote containers feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

5 participants
@Chuxel @rubensa @chrmarti @mehd-io and others