Download, Install, and Deploy the Red Hat build of Quarkus

Kubernetes-native Java with low memory footprint and fast boot times for microservices and serverless applications. Explore all Java content.

Red Hat build of Quarkus 3.8 is now available.  Click here to view more details.

Getting started with Red Hat build of Quarkus

1. Install the Red Hat build of Quarkus

You can get up and running with the Red Hat build of Quarkus in just a few simple steps using your command-line interface (CLI). Open your favorite terminal and use JBang to install the Quarkus CLI. You do not need to have Java installed first. See below for instructions specific to your environment.

Quarkus requires Java to be installed on your machine for it to run. To install Java on your machine, get the Red Hat build of OpenJDK from here.

Choose your Operating System for installation instructions

2. Create the Getting Started application

Quick start

Start building in seconds using this Quarkus quick start. Choose from the download options based on your preferred build tool. 

Log in and download a Quarkus quickstart for Maven

Log in and download a Quarkus quickstart for Gradle

Generate your Quarkus starter project

The Quarkus project generator generates a boilerplate for you to get started with your application in seconds. It enables you to select your Quarkus extensions, Quarkus version, and build tool. By taking advantage of Red Hat-generated projects, you can gain a significant boost to your product velocity.

Generate your application

3. Run the app

Run the Quarkus app in development mode on your machine by running the following command:

quarkus dev

4. Live coding

Quarkus makes it easy to change your code on the fly. Let's see this in action by modifying the RESTful endpoint.

Open src/main/java/org/acme/GreetingResource.java in a text editor or your favorite IDE and change Hello from RESTEasy Reactive to Hola from RESTEasy Reactive. Then refresh the browser to view the changes.

@Path("/hello")
public class GreetingResource {

    @GET
    @Produces(MediaType.TEXT_PLAIN)
    public String hello() {
        return "Hello from RESTEasy Reactive";
    }
}

Cool stuff right? Learn more about Quarkus's dev mode.

5. Deploy a Quarkus Application

There are multiple ways to deploy the Quarkus applications to OpenShift. Explore popular approaches below and choose the option that fits your needs.

Deploy directly from Git

OpenShift’s developer experience enables teams to simply deploy the source without having to deal with complex deployment configs. This approach uses a Red Hat build of OpenJDK runtime.
 

Quarkus Command-line interface (CLI)

You can deploy Quarkus applications using the oc CLI tool. This option is preferred by developers who prefer working with the CLI and integrating with toolchains.
 

Deploy a container

This option is best suited for teams that have containerized their application and have an image deployed to an image registry like Red Hat Quay or Docker Hub. 
 

6. Enhance your application capabilities

Quarkus is cloud-native, making your deployment process a breeze. Discover additional capabilities below.

Data sources

Configure data sources and obtain a reference to those data sources in code
with pool tuning configuration properties.
 

Kafka

Apache Kafka is a popular open source-distributed event streaming platform. Quarkus provides support for Apache Kafka through SmallRye Reactive Messaging framework.
 

Reactive

Reactive is an essential tenet of the Quarkus architecture. Quarkus includes many reactive features and offers a broad ecosystem.
 

Security

The Quarkus security framework provides built-in security authentication mechanisms for basic, form-based, and mutual TLS (mTLS) authentication.
 

Get access to Quarkus your way

When we say Quarkus is everywhere, we mean everywhere. Quarkus is a flexible and powerful Java framework that makes it easy for developers to integrate and incorporate a variety of application services. Quarkus is both integrated with supported via a number of Red Hat product bundles.

Red Hat product bundles with Quarkus

Featured image for Red Hat Enterprise Linux.
Article
Jun 21, 2021

Bringing your favorite runtimes to Red Hat Enterprise Linux 8.4

Don Pinto

Learn about Red Hat Enterprise Linux 8.4 and how it helps with new time zone...

Red Hat Integration

Red Hat Integration

Flexible integration products to connect your applications across hybrid...

Red Hat OpenShift

Red Hat OpenShift

Open, hybrid-cloud Kubernetes platform to build, run, and scale...

RHEL

Red Hat Enterprise Linux

A stable, proven foundation that’s versatile enough for rolling out new...