-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Externally defined mixins #25
Comments
@pauldavidgilligan This is definitely a good point, but out of the scope of this buildpack specifically. We’ve discussed this idea as part of the Cloud Native Buildpack specification and the general consensus is that you should write another buildpack to do this kind of thing. However, you shouldn’t be required to write a buildpack that is as heavy-weight as what you see in Paketo. We write large codebases in Go because it affords us a level of serviceability (robust testing being the big win) that other styles of buildpacks wouldn’t give us. However, it’s absolutely possible to write a single file The key here is not to assume that our, admittedly very complex and heavyweight, buildpacks are the only way to write CNB-compatible buildpacks; Dockerfile-weight buildpacks are absolutely possible as well. |
Are you aware of any examples for writing a buildpack to install a package from a package/package manager (e.g. apt-get for bionic)? |
@cldfzn It is possible. You could write a buildpack that calls apt. There is a v2 cloud foundry buildpack that does this, so it could be a blueprint for how to do this. I don't think it was ever updated to a v3 buildpack though. For what it's worth, there is an RFC that is meant to address this, Stack Buildpacks. These are buildpacks that are meant to have elevated permissions for installing things like a package manager package. |
I'm going to close out this issue as it's out of scope for a buildpack author. For anyone following along, I suggest you check out buildpacks/rfcs#172 which is removing the concept of stacks & mixins, as well as buildpacks/rfcs#173 which seems to have supplanted the Stack Buildpacks RFC I previously mentioned. |
Consider a real world application for example a spring boot application that has external interfaces that require the installation of a client binary or some special OS apt dependencies.
With Dockerfile we can achieve this using COPY and RUN commands but with the defined buildpacks here there does not seem to be a way of achieving this.
So the question is how migration more complex dockerfiles into the spring boot buildpacks?
Seems a significant waste to write your own.
Any ideas?
The text was updated successfully, but these errors were encountered: