Dock Life: Using Docker for All The Things!
Interesting take by the folks at nystudio107: instead of installing things such as Node locally, why not run ‘m all in containers with aliases linked to them?
Instead of installing all of the tools & packages you’re used to using, we use Docker images that someone else has created that contain these tools & packages.
In order to seamlessly provide access to various tools run via Docker, we’re going to use shell aliases.
For example, to have
node available, set up this alias:
alias node='docker run --rm -it -v `pwd`:/app -w /app node:16-alpine '
With that set up, you can run
node install as you’d normally do.
Same can be done for other
Dock Life: Using Docker for All The Things! →
Source: Bram Van DammeNovember 29, 2021