ballerina/jvm-runtime
This repository contains the base image required for Ballerina Code to Cloud (c2c) implementation.
500K+
import ballerina/http;
import ballerina/log;
listener http:Listener helloEP = new(9090);
service /helloWorld on helloEP {
resource function get sayHello() returns string {
return "Hello, World from service helloWorld ! ";
}
}
Build the program with --cloud=k8s
or --cloud=docker
build option.
$ bal build --cloud=k8s <source_file>.bal
Refer samples for more info.
docker pull ballerina/jvm-runtime