Giter Site home page Giter Site logo

lakshanweerasinghe / module-ballerina-docker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ballerina-platform/module-ballerina-docker

0.0 0.0 0.0 50.65 MB

License: Apache License 2.0

Shell 4.42% Java 84.05% Dockerfile 5.13% Ballerina 6.40%

module-ballerina-docker's Introduction

Ballerina Docker Extension

Annotation based docker extension implementation for ballerina.

Daily build Build Trivy Scan codecov License

Features:

  • Dockerfile generation.
  • Docker image generation.
  • Docker based ballerina debug support.
  • Copy file support.

How to run

Prerequisites

  1. Download and install JDK 11
  2. Get a clone or download the source from this repository.
  3. Export github personal access token & user name as environment variables.
        export packagePAT=<Token>
        export packageUser=<username>
  4. (optional) Specify the Java home path for JDK 11 ie;
        export JAVA_HOME=/Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/Home/
  5. (optional) Ensure Docker daemon is running (used for building tests).

Building

  1. 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
  1. Copy docker-extension/build/docker-generator-***.jar file to <BALLERINA_HOME>/bre/lib directory.

Enable building for Windows Platform

Use the "BAL_DOCKER_WINDOWS=true" environment variable to enable building docker images supporting Windows platform.

Enabling debug logs

Use the "BAL_DOCKER_DEBUG=true" environment variable to enable docker related debug logs when building the ballerina source file.

module-ballerina-docker's People

Contributors

anupama-pathirage avatar anuruddhal avatar azinneera avatar ballerina-bot avatar buddhiwathsala avatar gayaldassanayake avatar hemikak avatar hevayo avatar inzamam-iqbal avatar jamesjj avatar keizer619 avatar kishanthan avatar lafernando avatar lakwarus avatar maheshika avatar manuranga avatar manuri avatar mattclegg avatar natashawso2 avatar nipunaranasinghe avatar niveathika avatar pubudu91 avatar shafreenanfar avatar suganyasuven avatar thisaruguruge avatar uthaiyashankar avatar vinok88 avatar xlight05 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.