top | item 29278765

(no title)

andyonthewings | 4 years ago

VS Code Remote - Containers [1] is a game changer.

https://code.visualstudio.com/docs/remote/containers

discuss

order

danieka|4 years ago

I'm considering contains for frontend development (Vue) at work. What are the biggest benefits in your experience?

zamalek|4 years ago

1. Team onboarding is almost zero effort. I spent upwards of a week onboarding in the past (install this library, install this server, install is broken, try again, etc.). That becomes clone, click, and forget with dev-containers.

2. If you CI you dev-container and publish to a private registry, only one computer is spending the time installing and setting up dependencies. Everyone else simply bases their local image off of that one (and saving productive working time).

3. If you mess up the dev environment with some failed experiment, simply recreate the container and carry on.

4. The dockerfile is a form of documentation: what is needed for this thing to run.

5. If you use Github, you can run your environment in a browser if you are in a pinch. I've only done this once, but it was hella useful.

arcbyte|4 years ago

Yep, although I mostly do Remote WSL these days.

dzonga|4 years ago

probably not running into issues with node modules symlink like you would with plain wsl