←back to thread

128 points darthShadow | 1 comments | | HN request time: 0s | source
Show context
ricardbejarano ◴[] No.42812378[source]
Run your own registry.
replies(3): >>42812402 #>>42812415 #>>42812602 #
TZubiri ◴[] No.42812415[source]
Or run no registry. Here's a port from a Dockerfile to just a vm:

FROM Debian

CMD apt-get install thing

CMD curl blabla/install.sh

Pretty much converts to:

aws-cli ec2 launch-instance

ssh user@server apt-get install thing

ssh user@server curl blabla/install.sh

In general, everytime you dispense of a high level abstraction, the solution is not to replicate the high level abstraction, but to build directly at a lower level abstraction.

If you want to replace burgers, just buy a slab of meat and put it in the fire or bake your own bread. You don't need to make preservants and buy artificial sweeteners, etc...

replies(7): >>42812470 #>>42812473 #>>42812476 #>>42812525 #>>42812526 #>>42812553 #>>42812606 #
bartread ◴[] No.42812473[source]
Careful now: people will start accusing you of NIH.

But I fully agree with you. Likely what you need is a tiny subset of the capabilities wrapped up by the higher level abstraction, so implement them directly.

Over time you may find you need additional capabilities (although that's far from a given) and, if and when you do, you'll need to make decisions about whether to implement them directly, or wrap everything in a higher level abstraction (or use a third party abstraction).

The point is that if you ever do need these additional capabilities there's a good chance it's because you've been successful enough to enter "good problem to have" territory because you didn't waste time getting distracted by them earlier on and instead chose to focus on work that enabled that success.

replies(1): >>42812507 #
marginalia_nu ◴[] No.42812507[source]
If you wanna NIH you can just build your own docker. It's just an abstraction around some newer syscalls for process isolation. There's really not much magic to be found if you look into how it's done.

You can probably have a working prototype up in a weekend if you've got some systems programming experience.

replies(1): >>42812581 #
1. bartread ◴[] No.42812581[source]
I'm sure this has been on HN more than once but here's Bocker as an example of what you're talking about: https://news.ycombinator.com/item?id=42224670