News for hackers. Stuff that matters.
Re:Nix is a better Docker image builder than Docker's image ... by janjongboom on Saturday March 16, 2024 @06:46AM (#39724745)
Until someone overwrites or deletes the Docker base image (regularly happens), or when you depend on some packages installed through apt - as you'll get the latest version (impossible to pin those).
Re:Nix is a better Docker image builder than Docker's image ... by ktosobcy on Saturday March 16, 2024 @07:44AM (#39725014)
> Until someone overwrites or deletes the Docker base image (regularly happens)

Any source of that claim?

> or when you depend on some packages installed through apt - as you'll get the latest version (impossible to pin those).

Well... please re-read my previous comment - we do Java thing so we use any JDK base image and then we slap our distribution on top of it (which are mostly fixed-version jars).

Of course if you are after perfection and require additional packages then you can install it via dpgk or somesuch but... do you really need that? What about security implications?

Re:Nix is a better Docker image builder than Docker's image ... by janjongboom on Saturday March 16, 2024 @09:36AM (#39725782)
> Any source of that claim?

Any tag like ubuntu:20.04 -> this tag gets overwritten every time there's a new release (which is very often)

https://hub.docker.com/r/nvidia/cuda -> these get removed (see e.g. https://stackoverflow.com/questions/73513439/on-what-conditi...)

Re:Nix is a better Docker image builder than Docker's image ... by lolinder on Saturday March 16, 2024 @09:49AM (#39725903)
Do you have an example that isn't Nvidia? They're infamous for terrible Linux support, so an egregious disregard for tag etiquette is entirely unsurprising.
Re:Nix is a better Docker image builder than Docker's image ... by ktosobcy on Saturday March 16, 2024 @10:44AM (#39726391)
You gave example of nvidia and not ubuntu itself. What's more, you are referring to devel(opment) version, i.e. "1.0-devel-ubuntu20.04" which seems like a nightly so it's expected to be overriden (akin to "-SNAPSHOT" for java/maven)?

Besides, if you really need utmost stability you can use image digest instead of tag and you will always get exactly the same image...

Re:Nix is a better Docker image builder than Docker's image ... by theamk on Saturday March 16, 2024 @12:03PM (#39727048)
I am convinced that any sort of free public service is fundamentally incomapatible with long term reproducible builds. It is simply unfair to expect free service to maintain archives forever and never clean them up, rename itself, or go out of business.

If you want reproducibility, the first step is to copy everything to a storage you control. Luckily, this is pretty cheap nowdays