Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Docker & K8S BBEs #4382

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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",
praneesha marked this conversation as resolved.
Show resolved Hide resolved
"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
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