Can I use buildpacks task to build Knative functions? #1356
Unanswered
Khodesaeed
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a situation which I want to create a FaaS system with the help of Knative. So far, I have developed some sample Knative function which perfectly build, run, and, deployed on local and dev cluster. So, I want to build these functions via a Tekton pipeline. I think I have to create a Tekton pipeline that clone the function code, store it in a shared workspace and then build the image with buildpacks task and push it to private OCI container registry.
Here is my
pipelineandpipelinerunso far:here is the log of the
build-knative-functiontaskrun:Does it means that the builder image can't detect my code?
my code is a simple knative structured function which has go.mod, sum.go, and *.go file.
Moreover, I have used the
kn funcCLI builder image:ghcr.io/knative/builder-jammy-tiny:latestAnd it has some other problem:Here is the log of the taskrun with the
kn funcCLI image:On this step I edit the builder image USER_ID and
GROUP_IDin pipeline:And here is the logs:
Beta Was this translation helpful? Give feedback.
All reactions