FlexibleToast

joined 2 years ago
[–] FlexibleToast@lemmy.world 1 points 11 hours ago

With buildah you can take it even farther and build a container "from scratch." So, no packages at all. Then use your package manager to install the bare minimum to get things done.

[–] FlexibleToast@lemmy.world 2 points 16 hours ago

Yes, but then you're on that specific version of nginx. A lot of containers are built using a multi stage build process where the first stage uses a container with build tooling to build the application, then a second stage installs the result. So your end image doesn't have the build tooling and no way to update. That's intentional for security reasons. Images are meant to be immutable.

[–] FlexibleToast@lemmy.world 2 points 16 hours ago (2 children)

Back into an OCI image? I don't know if lxc can do that, but podman can. I think it is podman save that allows you to save your current container as an image. Or, even better would be to use buildah. With buildah your expected workflow is to kind of run a container, run a script against that container, then save it at the end. In fact I'm specifically thinking of images I've created with buildah as being almost completely useless with this LXC technique. I've used the RHEL UBI micro image before and it doesn't even have a package manager. You actually mount the container to the host and use the host's package manager to install what is needed and then unmount it to save. It makes a super slim image with as little attack surface as possible.

[–] FlexibleToast@lemmy.world 5 points 1 day ago (4 children)

Right, but these containers are usually not designed to be updated like that. It totally defeats the nature of the OCI image and delivering something that has been tested to work. I'm sure there is a use case for this, but it seems more like a gimmick than a useful feature.

[–] FlexibleToast@lemmy.world 6 points 1 day ago (2 children)

Okay, what importance does that have?

[–] FlexibleToast@lemmy.world 7 points 1 day ago (9 children)

OCI images is very exciting. But, I don't see any way to keep them updated. You don't normally do an update on the applications inside an OCI container, you usually rebuild the container on a new image.

[–] FlexibleToast@lemmy.world 4 points 1 day ago

Yeah, we don't export the most advanced ones. There are limitations on the things we include in the export versions. Also, supposedly NGAD is right around the corner.

[–] FlexibleToast@lemmy.world 22 points 1 day ago

Wait, the insurrectionist would commit treason?

[–] FlexibleToast@lemmy.world 3 points 1 day ago

I think Kim is from her underwear brand, I don't know about the others.

[–] FlexibleToast@lemmy.world 2 points 2 days ago

Yeah, normally. But I will use their generous free tier at their expense.

[–] FlexibleToast@lemmy.world 2 points 2 days ago

Had mine for years at this point. No such problem.

view more: next ›