What is your Heroku Cloud Native Buildpacks Experience? #6
Replies: 6 comments 40 replies
-
What did you do?Here's my experience trying to get https://github.com/codetriage/codetriage running on the Heroku Ruby buildpack: Build output
What went well:Dependencies installed as expected What could be better: DatabaseThe app has no
For example, this works: https://gist.github.com/schneems/95b9387a613f4934f30f8508ef8014d8
It works! What could be better: JemallocThe app depends on jemalloc, it would be nice to have it on the system, or an easy way to add it. The above command shouldn't need the Do you have any questions?Less a question, more of a comment. Maybe we want to show how to expose and connect to a local database connection (or connection in another docker container) in the docs. |
Beta Was this translation helpful? Give feedback.
-
Thanks for releasing this! I always loved the simplicity of a Heroku build and the auto-detection of various tools in the process. I have a small app that I tested this on and wanted to see the differences in the final image output. The biggest thing I was looking for was the size of the final image which makes it faster and easier to deal with deployment and various other tasks. What did you do?Stumbled on @schneems's article https://www.schneems.com/2024/05/01/build-a-ruby-on-rails-application-image-in-5-minutes-no-dockerfile-required/ From there: installed pack, set heroku/builder:22 as the default, packed the app. Build output
What went well?From the output it looks like the build went as expected, running it again utilizes some caching and reports that it successfully built the image. The build detected ruby, bundler, asset compilation which was great. What could be better?I then looked at the final image size to see the difference in size from my previously Docker built image. The pack image is 879mb, my Docker based image is 573mb. The other thing I noticed is that the image age is 44 years ago. The creation time on various other images that I've recently built is correct.
Do you have any questions?
|
Beta Was this translation helpful? Give feedback.
-
I've been working on buildpack integration for Kamal and I built a few demo apps that utilize Heroku's buildpacks and it worked great! Here's where I mention them: basecamp/kamal#916 (comment) And then here are the demo app repos: kamal-buildpacks-node I'm building the buildpacks via Kamal but it's just shell'ing out to the pack CLI. The two things that would be great to figure out a more native solution to would be:
|
Beta Was this translation helpful? Give feedback.
-
@nickhammond thanks for your interest and work here. When I looked into Kamal when it was created I always imagine CNBs would be a great fit for it. It's exciting to see this may land 🤞.
This has been brought up before. I forget why we decided against doing it. It'd be worth opening an issue or bringing it up in our slack channel.
Thanks for opening this! |
Beta Was this translation helpful? Give feedback.
-
I was hoping to add a buildpack from Heroku's elements directory to the Here's an example. Say we want to use the
I understand why this is failing but wanted to discuss a couple of things:
|
Beta Was this translation helpful? Give feedback.
-
Unable to build my project neither
|
Beta Was this translation helpful? Give feedback.
-
Thank you for checking our project out!
It's always a challenge as an open source project to find out how people are using your project out in the wild. We'd love to hear from you and your use case.
Let us know by adding a comment to this discussion.
Please provide as much detail as possible. You can hide unwieldy or long build output by using the details tag if you like.
Beta Was this translation helpful? Give feedback.
All reactions