
Show HN: Dockerized – Run CLI tools without installation
by datastack on Hacker News.
Dockerized is like npx for unix tools: Run popular cli tools without installation. Example: dockerized npm init
dockerized python2 somescript.py
Run an older version of a tool: NODE_VERSION=15.0 dockerized node
Use cases: – Maintaining multiple versions of an app – Installing without polluting host machine – Quickly run some commands you may not have installed Features: – intuitive use. Just the original command, but with ‘dockerized’ in front. – dockerized apps can access the current directory and read/modify files, just like native apps. – no need to know which docker image this package comes from. – support for tools which don’t have an official docker image. – container cleaned up after use. – ability to specify the version. – version specification per directory (share exact versions with your team mates). The inner workings are pretty simple, it’s just a docker-compose file. As expected with dockerization, there are limitations related to networking, and file persistence (outside current dir), but it can make life easy for simple scenarios. Pull requests welcome!
