News for hackers. Stuff that matters.
Re:Podman: A tool for managing OCI containers and pods by INTPenis on Thursday September 02, 2021 @10:05AM (#28392158)
Also from that ecosystem, buildah.

I started using buildah to build container images in CI jobs because then the job can run in an unprivileged container, unlike docker.

At the time I only knew of kaniko that could do this but I preferred buildah for a number of reasons.

Buildah is really awesome at multi stage builds because you can use it from bash.

Re:Podman: A tool for managing OCI containers and pods by dolni on Thursday September 02, 2021 @10:34AM (#28392568)
Buildah is what the Dockerfile could have been. Instead of using general-purpose shell scripting knowledge to produce images, we ended up with a custom instruction file, complete with its own quirks.

I am not sure why everyone seems to think inventing their own domain-specific language is a good thing. It isn't.

Re:Podman: A tool for managing OCI containers and pods by dengolius on Thursday September 02, 2021 @10:46AM (#28392709)
Did you try https://github.com/werf/werf ? Check authors blog with articles about werf https://blog.flant.com/tag/werf/
Re:Podman: A tool for managing OCI containers and pods by pidminusone on Thursday September 02, 2021 @12:29PM (#28394081)
Buildkit has a daemonless / rootless mode nowadays.
Re:Podman: A tool for managing OCI containers and pods by chriswarbo on Thursday September 02, 2021 @09:11PM (#28399381)
I build container images using plain old tar, gzip, sha256sum (from GNU coreutils) and jq. No need for root access, etc.
Re:Podman: A tool for managing OCI containers and pods by forty on Thursday September 02, 2021 @01:02PM (#28394533)
I use kaniko a lot. Could you please expend on why you preferred buidah? (I'm happy with kaniko, and curious)
Re:Podman: A tool for managing OCI containers and pods by INTPenis on Thursday September 02, 2021 @03:50PM (#28396529)
First of all I'm a Fedora user and podman/buildah have been recommended since Fedora switched to cgroupsv2.

But also I prefer using open source projects from communities and companies who are based around open source. Google do contribute a lot to open source but they're primarily an ad company who want your data. So consider using buildah a type of boycott. ;)

I use buildah privately whenever I need to quickly make an image to test something, it's so simple to use in bash. It's also very simple to add to existing images while you're testing it. So it was just natural to continue using it in CI pipelines.

I only ever used one command for kaniko so I'll admit I know nothing of it, and that was 2 years ago. But buildah feels a lot more accessible because I learned all the different shell commands that correspond to the Containerfile format.

Re:Podman: A tool for managing OCI containers and pods by forty on Sunday September 05, 2021 @02:28AM (#28422021)
I found that it was convenient to reuse Dockerfile rather than learning a new domain specific language and also for some reasons I was not able to use podman inside docker when I tried (our CI runs in docker containers) while kaniko works well inside docker. I'll have a second look to podman, maybe it's better now.