Sign inSign up

ballerinalang/ballerina

By ballerinalang

•Updated over 8 years ago

DEPRECATED This image will no longer be maintained. Please use https://hub.docker.com/r/ballerina/

Image
4

4.7K

ballerinalang/ballerina repository overview

⁠**DEPRECATED **
⁠This image will no longer be maintained. Please use ballerina/ballerina-platform image instead. https://hub.docker.com/r/ballerina/ballerina⁠

⁠Ballerina Base Docker Image

This is a mirror of the official⁠ Docker image for Ballerina language runtime. This image can be used to run Ballerina archives and package Ballerina archives as distributable Docker images.

⁠Usage

To run a Ballerina package using the Ballerina Docker image, simply mount the folder containing the package(s) to /ballerina/files folder inside the container. For example, the following command runs a Ballerina main file mounted from ~/ballerina/packages.

# Create a directory and copy the file needed to be run.
mkdir -p ~/ballerina/packages/
cp mypackage.bal ~/ballerina/packages/
chmod +r ~/ballerina/packages/mypackage.bal

# Run container with the volume mount
docker run -v ~/ballerina/packages:/ballerina/files -it ballerinalang/ballerina

If you are running a Ballerina Service,

cp mysvcpackage.bsz ~/ballerina/packages/
chmod +r ~/ballerina/packages/mysvcpackage.bsz

docker run -v /tmp/testb:/ballerina/files -p 9090:9090 -it ballerinalang/ballerina

Please refer to the README [1] for more instructions on the usage.

[1] - https://github.com/ballerinalang/container-support⁠

Tag summary

Content type

Image

Digest

Size

82.4 MB

Last updated

over 8 years ago

docker pull ballerinalang/ballerina:0.964.0