GithubHelp home page GithubHelp logo

ritreshgirdhar / quarkus-demo Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 6 KB

Why we should prefer Quarkus because It is a full-stack, Kubernetes-native, Java Framework tailored for OpenJDK HotSpot and GraalVM. Comparatively to other frameworks, such as Spring, it offers small memory footprint and reduced boot time.

Java 17.88% HTML 82.12%
quarkus microservice spring-boot quarkus-maven

quarkus-demo's Introduction

Quarkus Demo

This project uses Quarkus, the Supersonic Subatomic Java Framework.

This Dockerfile is used in order to build a container that runs the Quarkus application in JVM mode

Before building the container image run:

mvn package

Then, build the image with:

docker build -f src/main/docker/Dockerfile.jvm -t quarkus/code-with-quarkus-jvm .

Then run the container using:

docker run -i --rm -p 8080:8080 quarkus/code-with-quarkus-jvm

If you want to include the debug port into your docker image

you will have to expose the debug port (default 5005) like this : EXPOSE 8080 5050

Then run the container using :

docker run -i --rm -p 8080:8080 -p 5005:5005 -e JAVA_ENABLE_DEBUG="true" quarkus/code-with-quarkus-jvm

Running the application in dev mode

mvn compile quarkus:dev

Packaging and running the application

The application can be packaged using:

mvn package

It produces the quarkus-demo-1.0.0-SNAPSHOT-runner.jar file in the /target directory. The application is now runnable using java -jar target/quarkus-demo-1.0.0-SNAPSHOT-runner.jar.

Dockerize demo application

docker build -f src/main/docker/Dockerfile.jvm -t demo/quarkus-demo .

Run Dockerize application

docker run -i --rm -p 8080:8080 -p 5005:5005 -e JAVA_ENABLE_DEBUG="true"  demo/quarkus-demo

If you want to learn more about Quarkus, please visit its website: https://quarkus.io/

Thanks for reading. Happy Learning !!!

quarkus-demo's People

Contributors

ritreshgirdhar avatar

Stargazers

 avatar

Watchers

 avatar  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.