Sign inSign up

ballerina/ballerina-runtime

By ballerina

•Updated almost 7 years ago

Ballerina Runtime distribution Docker image.

Image
1

9.1K

ballerina/ballerina-runtime repository overview

Supported with the latest release of docker⁠ (down to 1.6 on a best-effort basis)

⁠Quick reference

⁠What is Ballerina?

Ballerina makes it easy to create resilient services that integrate and orchestrate transactions across distributed endpoints.

The future apps we write increasingly depend upon programmable endpoints. The discipline of resilient communication between endpoints is integration. It is a domain of hard problems.

Ballerina is a simple programming language whose syntax and runtime address the hard problems of integration. Ballerina is a general purpose, concurrent, transactional, statically and strongly typed programming language with both textual and graphical syntaxes. Its specialization is integration - it brings fundamental concepts, ideas and tools of distributed system integration into the language and offers a type-safe, concurrent environment to implement such applications. These include distributed transactions, reliable messaging, stream processing, workflows and container management platforms.

Refer Ballerina Philosophy⁠ and Ballerina Documentation⁠ for more info.

⁠How to use this image

This image contains a Ballerina runtime distribution for running a Ballerina file (.bal) or a compiled Ballerina program (.balx). The runtime distribution cannot be used to compile a Ballerina program. The ballerina-platform image⁠ is an image with Ballerina toolset included and can be used to compile and run Ballerina programs.

  • Run a Ballerina program:
docker run -v <path source dir>:/home/ballerina -it ballerina/ballerina-runtime:<tag> ballerina run <.bal(x) file>

eg:- Following command runs the demo.balx file in current directory.

docker run -v `pwd`:/home/ballerina -it ballerina/ballerina-runtime:0.970.1 ballerina run demo.balx
  • With Dockerfiles: Use ballerina/ballerina-runtime as a base for your own Dockerfiles. For instance, something along the lines of the following will run your ballerina program:
FROM ballerina/ballerina-runtime:0.970.1
COPY hello_world_docker.bal /home/ballerina 
EXPOSE  9090
CMD ballerina run hello_world_docker.balx

⁠License

View Ballerina license⁠ information for the software contained in this image.

As with all Docker images, these likely also contain other software which may be under other licenses (such as Bash, etc from the base distribution, along with any direct or indirect dependencies of the primary software being contained).

As for any pre-built image usage, it is the image user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within.

Tag summary

Content type

Image

Digest

Size

102.5 MB

Last updated

over 7 years ago

docker pull ballerina/ballerina-runtime