Annotation based docker extension implementation for ballerina.
- Dockerfile generation.
- Docker image generation.
- Docker based ballerina debug support.
- Copy file support.
- Download and install JDK 17
- Get a clone or download the source from this repository.
- Export github personal access token & user name as environment variables.
export packagePAT=<Token> export packageUser=<username>
- (optional) Specify the Java home path for JDK 17 ie;
export JAVA_HOME=/Library/Java/JavaVirtualMachines/adoptopenjdk-17.jdk/Contents/Home/
- (optional) Ensure Docker daemon is running (used for building tests).
- Run the corresponding Gradle command from within the
module-ballerina-docker
directory.
#To build the module:
./gradlew clean build
#To build the module without the tests:
./gradlew clean build -x test
- Copy
docker-extension/build/docker-generator-***.jar
file to<BALLERINA_HOME>/bre/lib
directory.
Use the "BAL_DOCKER_WINDOWS=true" environment variable to enable building docker images supporting Windows platform.
Use the "BAL_DOCKER_DEBUG=true" environment variable to enable docker related debug logs when building the ballerina source file.