Ballerina -
bal build --cloud=docker bal build --cloud=k8s This creates a Dockerfile , docker-image.yaml , or Kubernetes YAML.
import ballerina/test; @Test function testAddition() int result = 2 + 2; test:assertEquals(result, 4); ballerina
return a / b;
resource function post user(@http:Payload Person p) returns json return id: 123, name: p.name ; bal build --cloud=docker bal build --cloud=k8s This creates
Call:
int[] highSalaries = from var e in employees where e.salary > 5500 select e.salary; Generate Docker and Kubernetes artifacts using bal build . or Kubernetes YAML. import ballerina/test