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
|**[Badge PHP](functions/badge-php/README.md)** <br/> A PHP function to generate repository badges. | php82 |[Serverless Framework]|
34
35
|**[CORS Go](functions/cors-go/README.md)** <br/> A Go function which allows CORS requests. | go119 |[Serverless Framework]|
35
36
|**[CORS Node](functions/cors-node/README.md)** <br/> A Node function which allows CORS requests. | node18 |[Serverless Framework]|
@@ -57,12 +58,12 @@ Table of Contents:
57
58
|**[Typescript with Node runtime](functions/typescript-with-node/README.md)** <br/> A Typescript function using Node runtime. | node18 |[Serverless Framework]|
58
59
|**[Serverless Gateway Python Example](functions/serverless-gateway-python/README.md)** <br/> A Python serverless API using Serverless Gateway. | python310 |[Python API Framework]|
59
60
|**[Go and Transactional Email](functions/go-mail/README.md)** <br/> A Go function that send emails using Scaleway SDK. | go121 |[Serverless Framework]|
60
-
|**[Rotate RDB Credentials](functions/secret-manager-rotate-secret/README.md)** <br/> A Go function that rotates RDB credentials stored in Secret Manager. | go120 |[Serverless Framework]|
61
+
|**[Rotate RDB Credentials](functions/secret-manager-rotate-secret/README.md)** <br/> A Go function that rotates RDB credentials stored in Secret Manager. | go120 |[Serverless Framework]|
|**[Container Bash Script](containers/bash-scheduled-job/README.md)** <br/> A Bash script runnning on a schedule using serverless containers. | Bash |[Serverless Framework]|
67
68
|**[Function Handler Java](containers/function-handler-java/README.md)** <br/> A Java function handler deployed on CaaS. | Java |[Serverless Framework]|
68
69
|**[NGINX CORS Private](containers/nginx-cors-private-python/README.md)** <br/> An NGINX proxy to allow CORS requests to a private container. | Python Flask |[Terraform]|
@@ -71,26 +72,27 @@ Table of Contents:
71
72
|**[Python S3 upload](containers/python-s3-upload/README.md)** <br/> A Python + Flask HTTP server that receives file uploads and writes them to S3. | Python |[Terraform]|
72
73
|**[Terraform NGINX hello world](containers/terraform-nginx-hello-world/README.md)** <br/> A minimal example running the base NGINX image in a serverless container deployed with Terraform. | N/A |[Terraform]|
73
74
|**[Triggers with Terraform](containers/terraform-triggers/README.md)** <br/> Configuring two SQS triggers, used to trigger two containers, one public, one private. | N/A |[Terraform]|
75
+
|**[gRPC HTTP2 in Go](containers/grpc-http2-go/README.md)** <br/> A Go gRPC Container using http2 | Go/Protobuf |[CLI]|
|**[Serverless Jobs Hello World](jobs/terraform-hello-world/README.md)** <br/> An example of building a container image and running it as a Serverless Job using Terraform. | N/A |[Terraform]-[Console]|
80
-
|**[Serverless MLOps](jobs/ml-ops/README.md)** <br/> An example of running a Serverless Machine Leaning workflow. | Python |[Terraform]-[Console]-[CLI]|
|**[Serverless Jobs Hello World](jobs/terraform-hello-world/README.md)** <br/> An example of building a container image and running it as a Serverless Job using Terraform. | N/A |[Terraform]-[Console]|
82
+
|**[Serverless MLOps](jobs/ml-ops/README.md)** <br/> An example of running a Serverless Machine Leaning workflow. | Python |[Terraform]-[Console]-[CLI]|
|**[Manage large message](mnq/large-messages/README.md)** <br/> An example of infrastructure to manage large messages. | PaaS & S3 | Python |[Terraform]|
87
-
|**[Serverless scraping](mnq/serverless-scraping/README.md)** <br/> An example of infrastructure to scrape the hackernews website. | PaaS & RDB | Python |[Terraform]|
88
-
|**[SNS Instances Notification System](mnq/sns-instances-notification-system/README.md)** <br/> An example of infrastructure to use SNS with Instances. | PaaS & Instances | Golang |[Terraform]|
|**[Manage large message](mnq/large-messages/README.md)** <br/> An example of infrastructure to manage large messages. | PaaS & S3 | Python |[Terraform]|
89
+
|**[Serverless scraping](mnq/serverless-scraping/README.md)** <br/> An example of infrastructure to scrape the hackernews website. | PaaS & RDB | Python |[Terraform]|
90
+
|**[SNS Instances Notification System](mnq/sns-instances-notification-system/README.md)** <br/> An example of infrastructure to use SNS with Instances. | PaaS & Instances | Golang |[Terraform]|
|**[Kong API Gateway](projects/kong-api-gateway/README.md)** <br/> Deploying a Kong Gateway on containers to provide routing to functions. | CaaS & FaaS | Python |[Serverless Framework]|
95
97
|**[Serverless Gateway](https://github.com/scaleway/serverless-gateway)** <br/> Our serverless gateway for functions and containers. | API Gateway | Python |[Python API Framework]|
96
98
|**[Monitoring Glaciers](projects/blogpost-glacier/README.md)** <br/> A project to monitor glaciers and the impact of global warming. | S3 & RDB | Golang |[Serverless Framework]|
This example demonstrates the deployment of a gRPC service on Scaleway Serverless Containers.
4
+
5
+
For this example, we will use the CLI to deploy the container, but you can use [other methods](https://www.scaleway.com/en/docs/serverless/containers/reference-content/deploy-container/).
6
+
You can also use the CLI directly from Scaleway console without having to use your credentials.
7
+
8
+
## Workflow
9
+
10
+
Here are the different steps we are going to proceed:
11
+
12
+
- Quick set-up of Container Registry to host our gRPC container
13
+
- Deploy the Serverless Container
14
+
- Run gRPC test command ot ensure everything is ok
15
+
16
+
## Deployment
17
+
18
+
### Requirements
19
+
20
+
To complete the actions presented below, you must have:
21
+
- installed and configured the [Scaleway CLI](https://www.scaleway.com/en/docs/developer-tools/scaleway-cli/quickstart/)
22
+
- installed [Docker](https://docs.docker.com/engine/install/) to build the image
23
+
- installed the common [gRPC stack](https://grpc.io/blog/installation/)) to test locally (optional)
24
+
25
+
### Building the image
26
+
27
+
1. Run the following command in a terminal to create Container Registry namespace to store the image:
28
+
29
+
```bash
30
+
scw registry namespace create name=hello-grpc
31
+
```
32
+
33
+
The registry namespace information displays.
34
+
35
+
1. Copy the namespace endpoint (in this case, `rg.fr-par.scw.cloud/hello-grpc`).
36
+
37
+
1. Log into the Container Registry namespace you created using Docker:
0 commit comments