-
Notifications
You must be signed in to change notification settings - Fork 9
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
Failure to detect Ruby app from the Buildpacks sample directory #666
Comments
It seems that the problem lies with the Paketo Ruby buildpack, since I was able to reproduce this issue using when specifying the Paketo Ruby buildpack explicitly. I used pack build ruby-sample --buildpack gcr.io/paketo-buildpacks/ruby --builder paketobuildpacks/builder:base -v In the detection output, I see that none of the ruby order groups pass detection. I'm going to transfer this issue to the paketo-buildpacks/ruby repo so the @paketo-buildpacks/ruby-maintainers can help troubleshoot. |
This is interesting. I was able to build and run the app using the More interestingly, I was also able to build the app with the
Jumping into the built image I can see the following processes are declared:
It appears the buildpack is detecting that this app needs to use I think we need more input about what is expected from this case. We have an application that presents as a simple Should we enable something similar for Ruby? If so, what are those special files? |
@ryanmoran I'm happy to take a look at implementing some improved detect logic here, but I don't have enough context on the ruby ecosystem to form opinions on what special files the ruby buildpack might look for, and, perhaps more importantly, how we might validate the contents of those special files. It is also not obvious to me where that logic would live, as there is no "ruby-start" buildpack similar to the node/python ecosystems. It doesn't seem like this logic should live in the @pmbanugo I see your 👍 on the comment above. Do you have thoughts on what a solution might look like, and what special files might the ruby buildpack look for? No worries if not - I'm just seeking any and all input possible! |
No, I'm not so familiar with Ruby to offer any opinion. |
What happened?
I tried to build a ruby app with the base (paketobuildpacks/builder:base) and full (paketobuildpacks/builder:full) builder but they couldn't detect the app, and thus nothing was built. I'm using the sample app in the buildpacks sample repo. However, when I switch to Heroku buildpacks or the CNB ones, it was able to detect and build the app.
Build a Ruby app
Detect the app and package it.
Build Configuration
pack
,kpack
,tekton
buildpacks plugin, etc.) are youusing? Please include a version.
Tekton
What buildpacks are you using? Please include versions.
What builder are you using? If custom, can you provide the output from
pack inspect-builder <builder>
?paketobuildpacks/builder:base and paketobuildpacks/builder:full
buildpack.yml
,nginx.conf
, etc.)?https://github.com/buildpacks/samples/tree/main/apps/ruby-bundler
The text was updated successfully, but these errors were encountered: