Replies: 8 comments 31 replies
-
Hi @Sunny-001! I think detection is failing because you're using a builder, which has pre-defined buildpack groups, but then you're also defining a buildpack to use. By passing in a single buildpack, you're overriding those groups and ONLY providing a single buildpack to the build. If you want to pass in a custom buildpack, you need to pass in all of the buildpacks in the group. |
Beta Was this translation helpful? Give feedback.
-
Separately, you might consider using a dependency mapping type service binding instead to use your own dependency. If you use a dependency mapping for your dependency, then you don't even need to pass in your own buildpack, you can just do something like this, where the binding is a dependency mapping (from the service binding docs):
|
Beta Was this translation helpful? Give feedback.
-
I want to download Node Engine from my private server. What should I do |
Beta Was this translation helpful? Give feedback.
-
I found some useful information here, maybe I see what you mean, I will try it tomorrow |
Beta Was this translation helpful? Give feedback.
-
In regards to dependency mapping, I typically find those work best for local development. It can be tricky to get them into a build system/CI/kpack. They can also be a little tricky to get formatted correctly, which is why I created the |
Beta Was this translation helpful? Give feedback.
-
@sophiewigmore Can you help me with this question? |
Beta Was this translation helpful? Give feedback.
-
Yes, you could use However, the |
Beta Was this translation helpful? Give feedback.
-
Yeah that's odd. Unfortunately, I'm not familiar enough with the concept of Some additional context: The current npm-install buildpack is v0.10.8. And the I also notice that your output contains: Do you possibly have some sort of other config - e.g a project.toml file? That might be irrelevant too, I just want to get a clear picture of what your app looks like. |
Beta Was this translation helpful? Give feedback.
-
I changed the nodejs download address to my private server and executed "./scripts/package.sh --version 0.5" in the build folder to generate the following file
then used the following command to build the image,but the process had an error
pack build registry.cn-hangzhou.aliyuncs.com/kpack/ruoyi-ui:2.0.0 --builder registry.cn-hangzhou.aliyuncs.com/kpack/paketo-buildpacks-builder:base -b build/buildpack.tgz --env "BP_NODE_RUN_SCRIPTS=build:prod" --env "NODE_ENV=development" --pull-policy if-not-present --path /data/build-package-sample/buildpack-test/ruoyi-ui
===> DETECTING
[detector] ERROR: No buildpack groups passed detection.
[detector] ERROR: Please check that you are running against the correct path.
[detector] ERROR: failed to detect: no buildpacks participating
ERROR: failed to build: executing lifecycle. This may be the result of using an untrusted builder: failed with status code: 20
Beta Was this translation helpful? Give feedback.
All reactions