4 ms·
This looks great. I typically type my run commands into a script and run that, so they are reproducible, but this looks like a nice way to capture one that you
by codazoda 4y ago
This looks great. I typically type my run commands into a script and run that, so they are reproducible, but this looks like a nice way to capture one that you ran temporarily but that worked well.
As an aside, the way Python code works feels really weird to me (even though I’ve done a bit of python). In particular, I find env to be odd. In this case you already need python installed (using pip to install this) or you need to run it as a container (which may or may not have significant overhead depending on how it was built). I’d suggest a compiled binary installed via a package manager for a command line tool. Had it been that, I may not have noticed.
I’m curious if other HN readers feel differently?
- moondev 4y ago> or you need to run it as a container (which may or may not have significant overhead depending on how it was built) What overhead are you referring to? It runs, prints the cmdline and exits.
- codazoda 4y agoI’m talking about the base image overhead. Honestly, I hadn't tried it on this tool. As an example, if the container was using Ubuntu as a base, you might fetch a big base image. If it’s using scratch, no problem. So, it depends on how it’s built and I didn’t dig in. Edit: I’ve gone back and looked at the dockerfile. The base image is Ubuntu, so the docker image is heavy. I fetched the indicated image from Dockerhub and it's 228.13 MB. Most of the command line tools in my toolbox are measured in K not in hundreds of MB.
- traverseda 4y agoNot sure I understand the complaint, honestly. If it was a bash script instead of a python script it would still be weird for it to be packaged using like 6+ different package formats for all those different distributions. Personally I'd be inclined to install it via pipx.
- pas 4y agoRunning it as a docker container is pretty okay. If it would be a website where I paste the docker inspect output that would be the best.
- sneak 4y agoAlmost all of my containers have environment variables I don't wish to provide to random websites.
- eurasiantiger 4y agoThose shouldn’t be in a container, but provided by docker environment.