Skip to content

Commit

Permalink
Merge pull request #4382 from praneesha/update-cloud-bbes
Browse files Browse the repository at this point in the history
Update Docker & K8S BBEs
  • Loading branch information
praneesha authored May 3, 2023
2 parents 3b658ac + a7b33a1 commit 7f7c481
Show file tree
Hide file tree
Showing 19 changed files with 59 additions and 18 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Docker
# Docker

Ballerina supports generating Docker artifacts from code without any additional configuration. This simplifies the experience of developing and deploying Ballerina code in the cloud. Code to Cloud builds the containers and required artifacts by deriving the required values from the code. If you want to override the default values taken by the compiler, you can use a `Cloud.toml` file.
For more information, see [Code to Cloud Deployment](/learn/run-in-the-cloud/code-to-cloud/code-to-cloud-deployment/).
For more information, see [Code to Cloud Deployment](/learn/run-in-the-cloud/code-to-cloud-deployment/).

::: code c2c_docker_deployment.bal :::
::: code docker-hello-world.bal :::

Before you build the package, you need to override some default values taken by the compiler. To do this, create a filed named `Cloud.toml` in the package directory, and add the content below to it.
For all the supported key value properties, see [Code to Cloud specification](https://github.com/ballerina-platform/ballerina-spec/blob/master/c2c/code-to-cloud-spec.md).
Expand Down
File renamed without changes.
67 changes: 54 additions & 13 deletions examples/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -4313,23 +4313,30 @@
]
},
{
"title": "Code to Cloud",
"title": "Docker",
"column": 0,
"category": "Deployment",
"samples": [
{
"name": "Docker",
"url": "c2c-docker-deployment",
"name": "Hello world",
"url": "docker-hello-world",
"verifyBuild": true,
"verifyOutput": false,
"disableVerificationReason": "Needs prerequisite condition",
"disablePlayground": true,
"isLearnByExample": false
},
}
]
},
{
"title": "Kubernetes",
"column": 1,
"category": "Deployment",
"samples": [
{
"name": "Kubernetes",
"url": "c2c-k8s-deployment",
"verifyBuild": true,
"name": "Hello world",
"url": "kubernetes-hello-world",
"verifyBuild": false,
"verifyOutput": false,
"disableVerificationReason": "Needs prerequisite condition",
"disablePlayground": true,
Expand All @@ -4338,22 +4345,56 @@
]
},
{
"title": "Function as a Service",
"column": 1,
"title": "AWS Lambda",
"column": 2,
"category": "Deployment",
"samples": [
{
"name": "Azure Functions",
"url": "azure-functions-deployment",
"name": "Hello world",
"url": "aws-lambda-hello-world",
"verifyBuild": false,
"verifyOutput": false,
"disableVerificationReason": "Needs prerequisite condition",
"disablePlayground": true,
"isLearnByExample": false
},
{
"name": "Context execution",
"url": "aws-lambda-context-execution",
"verifyBuild": false,
"verifyOutput": false,
"disableVerificationReason": "Needs prerequisite condition",
"disablePlayground": true,
"isLearnByExample": false
},
{
"name": "AWS Lambda",
"url": "aws-lambda-deployment",
"name": "S3 trigger",
"url": "aws-lambda-s3-trigger",
"verifyBuild": false,
"verifyOutput": false,
"disableVerificationReason": "Needs prerequisite condition",
"disablePlayground": true,
"isLearnByExample": false
},
{
"name": "DynamoDB trigger",
"url": "aws-lambda-dynamodb-trigger",
"verifyBuild": false,
"verifyOutput": false,
"disableVerificationReason": "Needs prerequisite condition",
"disablePlayground": true,
"isLearnByExample": false
}
]
},
{
"title": "Azure Functions",
"column": 3,
"category": "Deployment",
"samples": [
{
"name": "Hello world",
"url": "azure-functions-hello-world",
"verifyBuild": false,
"verifyOutput": false,
"disableVerificationReason": "Needs prerequisite condition",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Kubernetes

Ballerina supports generating Kubernetes artifacts from code without any additional configuration. This simplifies the experience of developing and deploying Ballerina code in the cloud. Code to Cloud builds the containers and required artifacts by deriving the required values from the code. If you want to override the default values taken by the compiler, you can use a `Cloud.toml` file.
For more information, see [Code to Cloud Deployment](/learn/run-in-the-cloud/code-to-cloud/code-to-cloud-deployment/).
For more information, see [Code to Cloud deployment](/learn/run-in-the-cloud/code-to-cloud-deployment/).

::: code c2c_k8s_deployment.bal :::
::: code kubernetes-hello-world.bal :::

Before you build the package, you need to override some default values taken by the compiler. To do this, create a filed named `Cloud.toml` in the package directory, and add the content below to it.
For all the supported key value properties, see [Code to Cloud Specification](https://github.com/ballerina-platform/ballerina-spec/blob/master/c2c/code-to-cloud-spec.md).
Expand Down
File renamed without changes.

0 comments on commit 7f7c481

Please sign in to comment.