You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently this CLI has a native module dependency which drives the need for node-gyp dependencies like Python and C++. This makes installing the CLI far more difficult than intended.
To solve this issue, I'd propose we have a "distro" that is already compiled, and could even bundle Node.js. Installation can then just be an unzip/untar to keep things easy to begin with. We could then keep the npm option around for those that prefer to deal with the dependenceis.
The alternative would be to look into ways to remove the native dependency so that only Node.js is required.
I thought I would share my use case. I typically don't install node directly on my host operating system, instead, I create development-focused containers that have node installed. Same with Python. When I need to work with/on a python project, I create a container to house that tool.
I still wanted to install this cli, though, so I used homebrew to get things up and running:
Another justification for why this would be good is that one of the values of using a devcontainer is that you minimize the locally installed software, instead, relying on the devcontainer to have the stuff you need for actual development.
Having a hard dependency in which you need to install things like Python means that you now have to have more "stuff" installed on the host machine.
Reacted by eitsupi, Roman, Thomas Lunsford and Vincent Taverna
This might help someone: I wrote up a post about how to use the container suggested by eitsupi as a way to run the devcontainer-cli with just docker installed:.
Activity
eddiegroves commentedon Jun 27, 2022
This would be great for the use case of using
devcontainer buildin CI/CD pipelines. You could provide a docker image too.mscottford commentedon Jul 15, 2022
I thought I would share my use case. I typically don't install node directly on my host operating system, instead, I create development-focused containers that have node installed. Same with Python. When I need to work with/on a python project, I create a container to house that tool.
I still wanted to install this cli, though, so I used
homebrewto get things up and running:aaronpowell commentedon Sep 16, 2022
Another justification for why this would be good is that one of the values of using a devcontainer is that you minimize the locally installed software, instead, relying on the devcontainer to have the stuff you need for actual development.
Having a hard dependency in which you need to install things like Python means that you now have to have more "stuff" installed on the host machine.
avelino commentedon Sep 20, 2022
why not leave ready-made formulas for each OS?
.deb.rpmMisterTimn commentedon Sep 30, 2022
An image with devcontainers/cli installed along with its dependencies would also go a long way.
eitsupi commentedon Sep 30, 2022
Note that it can be installed simply by running
npm install -g @devcontainers/clionmcr.microsoft.com/vscode/devcontainers/typescript-node.This is actually used in https://github.com/devcontainers/features/blob/82960fd16b04fb4003a8765b2381bd23553737b5/.devcontainer.json, for example.
framctr commentedon Jun 30, 2023
I agree with Avelino (@avelino) for having at least
debandrpmpackages.chrmarti commentedon Feb 6, 2026
There is now an install script for macOS and Linux that will download and install Node.js and the Dev Containers CLI:
TomasEkeli commentedon Feb 8, 2026
This might help someone: I wrote up a post about how to use the container suggested by eitsupi as a way to run the devcontainer-cli with just docker installed:.