4 ms·
You don't understand the feature. Devcontainers can use any plain old dockerfile or docker compose file, it's literally part of the spec. You can do exactly w
by qbasic_forever 3y ago
You don't understand the feature. Devcontainers can use any plain old dockerfile or docker compose file, it's literally part of the spec.
You can do exactly what you're saying--have a dockerfile as the source of truth--right now. And you can install the devcontainer CLI and use it outside vs code if necessary too: https://code.visualstudio.com/docs/devcontainers/devcontainer-cli https://code.visualstudio.com/docs/devcontainers/devcontaine...
- axlee 3y agoWhat are devcontainers bringing more than what "docker-compose up" already does, if your app is already compose-ready for local?
- qbasic_forever 3y agoAgain, it's integrated in vs code and GitHub codespaces. If you open your project in vs code it detects the devcontainer config and automatically launches the container using docker, connects vs code remotely to code in the container, and pops open any terminals or tool executions in the container. On GitHub codespaces it gives you a button on the website that is literally one click and get vs code in the browser connected to your dev container launched in their cloud--you don't even need vs code or anything installed and can code from a tablet for example.
- deleted 3y ago[deleted]
- jabradoodle 3y agoI didn't realize there was an open source cli, true. However > vs. spending days installing tools from a (likely) undocumented and out of date process This makes no sense, that is not an advantage over a dockerfile.