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
iscompletelyoptional:ifyoudon't add it to your `package.json`, it will be
165
-
installed automatically.
161
+
The [Node.JS runtime on Cloud Run functions](https://cloud.google.com/functions/docs/concepts/nodejs-runtime) utilizes the Node.JS Functions Framework. On Cloud Run functions, the Functions Framework is completely optional: if you don't add it to your `package.json`, it will be
162
+
installedautomatically. For
166
163
167
164
Afteryou've written your function, you can simply deploy it from your local
168
165
machine using the `gcloud` command-line tool.
169
166
[Check out the Cloud Functions quickstart](https://cloud.google.com/functions/docs/quickstart).
170
167
171
-
### CloudRun/CloudRunforAnthos
172
-
173
-
Afteryou've written your function, added the Functions Framework and updated your `start` script in `package.json`, deploy it to Cloud Run with `gcloud run deploy`. Check out the [Cloud Run quickstart for Node.js](https://cloud.google.com/run/docs/quickstarts/build-and-deploy/nodejs).
174
-
175
-
If you want even more control over the environment, you can [deploy to Cloud Run for Anthos](https://cloud.google.com/anthos/run/docs/quickstarts/prebuilt-deploy-gke). With Cloud Run for Anthos, you can run your function on a GKE cluster, which gives you additional control over the environment (including use of GPU-based instances, longer timeouts and more).
176
-
177
-
### Container environments based on Knative
168
+
### Container environments based on KNative
178
169
179
170
Cloud Run and Cloud Run for Anthos both implement the [Knative Serving API](https://www.knative.dev/docs/). The Functions Framework is designed to be compatible with Knative environments. Just build and deploy your container to a Knative environment.
180
171
@@ -201,7 +192,7 @@ For example:
201
192
}
202
193
```
203
194
204
-
## Enable Google Cloud Functions Events
195
+
## Enable Google Cloud Run functions Events
205
196
206
197
The Functions Framework can unmarshall incoming
207
198
Google Cloud Functions [event](https://cloud.google.com/functions/docs/concepts/events-triggers#events) payloads to `data` and `context` objects.
0 commit comments