You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.
[root@VM-6-2-centos myService]# cat serverless.yml
service: myservice
frameworkVersion: '3'
provider:
name: knative
# optional Docker Hub credentials you need if you're using local Dockerfiles as function handlers
docker:
username: ${env:DOCKER_HUB_USERNAME}
password: ${env:DOCKER_HUB_PASSWORD}
functions:
hello:
handler: hello-world.dockerfile
context: ./code
# either use a container image URL for your function `handler` as the commented out `handler`
# below shows or make sure that you update the application code and corresponding Dockerfile
# to process incoming CloudEvents event data when using the event sources listed below
# handler: gcr.io/knative-releases/github.com/knative/eventing-contrib/cmd/event_display:latest
# events:
# - custom:
# filter:
# attributes:
# type: greeting
# - kafka:
# consumerGroup: KAFKA_CONSUMER_GROUP_NAME
# bootstrapServers:
# - server1
# - server2
# topics:
# - my-topic
# - awsSqs:
# secretName: aws-credentials
# secretKey: credentials
# queue: QUEUE_URL
# - gcpPubSub:
# project: knative-hackathon
# topic: foo
# - cron:
# schedule: '* * * * *'
# data: '{"message": "Hello world from a Cron event source!"}'
plugins:
- serverless-knative
[root@VM-6-2-centos myService]# sls deploy
Warning: You're relying on provider "knative" defined by a plugin which doesn't provide a validation schema for its config.
Please report the issue at its bug tracker linking: https://www.serverless.com/framework/docs/providers/aws/guide/plugins#extending-validation-schema
You may turn off this message with "configValidationMode: off" setting
Building Docker image "******/myservice-hello:166616657****"...
✖ Uncaught exception
Environment: linux, node 16.15.0, framework 3.23.0, plugin 6.2.2, SDK 4.3.2
Docs: docs.serverless.com
Support: forum.serverless.com
Bugs: github.com/serverless/serverless/issues
Error:
TypeError: Cannot read properties of undefined (reading 'slice')
at ReadFileContext.<anonymous> (/root/knative/myService/node_modules/dockerode/lib/util.js:94:32)
at ReadFileContext.callback (/usr/local/lib/node_modules/serverless/node_modules/graceful-fs/graceful-fs.js:123:16)
at FSReqCallback.readFileAfterOpen [as oncomplete] (node:fs:314:13)
[root@VM-6-2-centos myService]#
The text was updated successfully, but these errors were encountered:
when I try knative-docker, like this:
The text was updated successfully, but these errors were encountered: