Looking for Easy Open Source Projects to Dockerize

devops

Well-known member
  • Apr 3, 2023
    605
    463
    63
    colombo
    Can anyone suggest simple open-source projects in languages like PHP, Node.js, Ruby, Java, Go, C#, C++, Rust, Swift, Kotlin, TypeScript, or others that are easy to Dockerize without requiring a backend or database? I’m looking for something quick and beginner-friendly.
     

    Jack_Sparrow

    Well-known member
  • Jun 16, 2008
    42,522
    1
    16,927
    113
    Black Pearl
    You can write any code using in Ballerina and create a docker image with one command

    Java:
    import ballerina/http;
    
    
    // This code is completely focused on the business logic and it does not depend on the deployment.
    
    
    listener http:Listener helloEP = new(9090);
    
    
    service http:Service /helloWorld on helloEP {
    
        resource function get sayHello() returns string {
    
            return "Hello from Docker!";
    
        }
    
    }

    Code:
    bal build --cloud="docker"


    https://ballerina.io/learn/by-example/docker-hello-world/