News for hackers. Stuff that matters.
Re:Buildpacks vs. Dockerfiles by politelemon on Monday February 08, 2021 @09:47AM (#26065147)
I've read through this but I'm not sure I'm seeing any advantages to Buildpack.

First point - I see an example of a Dockerfile in TFA, but when it comes to the example of a Buildpack there isn't one; I just see a conceptual description of an abstraction. It appears that a lot of the inference is hidden away by use of 'detection' but is there magic hidden underneath? Does it allow arbitrary hacky steps if needed, like adding a random certificate?

Second point - A Dockerfile explicitly codifies what's happening. I can look at it and know how the build will go or what I need to change. The Buildpack equivalent would be spread across many different files, does that sound about right?

Re:Buildpacks vs. Dockerfiles by codefinger on Monday February 08, 2021 @09:53AM (#26065245)
To you first point, there's probably no example of a Buildpack because (unlike Dockerfile) most Buildpack users don't write their own. They are reuseable. I'm not sure why the author didn't include an example of running a buildpack against an app though.

To your second point, Buildpacks are written in code too. But unlike Dockerfile, they use real programming languages that you can write tests for.

For example: https://github.com/paketo-buildpacks

Re:Buildpacks vs. Dockerfiles by speedgoose on Monday February 08, 2021 @10:15AM (#26065573)
Wow, that's a lot of bash boilerplate.
Re:Buildpacks vs. Dockerfiles by codefinger on Monday February 08, 2021 @10:31AM (#26065817)
where?
Re:Buildpacks vs. Dockerfiles by speedgoose on Monday February 08, 2021 @12:15PM (#26067291)
https://github.com/paketo-buildpacks/go/search?l=shell for example. But the situation on many Dockerfile may not be better I have to admit.
Re:Buildpacks vs. Dockerfiles by jacques_chester on Monday February 08, 2021 @02:15PM (#26068794)
These are for Github actions, taken from a shared repo: https://github.com/paketo-buildpacks/github-config