Skip to main content
Redhat Developers  Logo
  • AI

    Get started with AI

    • Red Hat AI
      Accelerate the development and deployment of enterprise AI solutions.
    • AI learning hub
      Explore learning materials and tools, organized by task.
    • AI interactive demos
      Click through scenarios with Red Hat AI, including training LLMs and more.
    • AI/ML learning paths
      Expand your OpenShift AI knowledge using these learning resources.
    • AI quickstarts
      Focused AI use cases designed for fast deployment on Red Hat AI platforms.
    • No-cost AI training
      Foundational Red Hat AI training.

    Featured resources

    • OpenShift AI learning
    • Open source AI for developers
    • AI product application development
    • Open source-powered AI/ML for hybrid cloud
    • AI and Node.js cheat sheet

    Red Hat AI Factory with NVIDIA

    • Red Hat AI Factory with NVIDIA is a co-engineered, enterprise-grade AI solution for building, deploying, and managing AI at scale across hybrid cloud environments.
    • Explore the solution
  • Learn

    Self-guided

    • Documentation
      Find answers, get step-by-step guidance, and learn how to use Red Hat products.
    • Learning paths
      Explore curated walkthroughs for common development tasks.
    • Guided learning
      Receive custom learning paths powered by our AI assistant.
    • See all learning

    Hands-on

    • Developer Sandbox
      Spin up Red Hat's products and technologies without setup or configuration.
    • Interactive labs
      Learn by doing in these hands-on, browser-based experiences.
    • Interactive demos
      Click through product features in these guided tours.

    Browse by topic

    • AI/ML
    • Automation
    • Java
    • Kubernetes
    • Linux
    • See all topics

    Training & certifications

    • Courses and exams
    • Certifications
    • Skills assessments
    • Red Hat Academy
    • Learning subscription
    • Explore training
  • Build

    Get started

    • Red Hat build of Podman Desktop
      A downloadable, local development hub to experiment with our products and builds.
    • Developer Sandbox
      Spin up Red Hat's products and technologies without setup or configuration.

    Download products

    • Access product downloads to start building and testing right away.
    • Red Hat Enterprise Linux
    • Red Hat AI
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform
    • See all products

    Featured

    • Red Hat build of OpenJDK
    • Red Hat JBoss Enterprise Application Platform
    • Red Hat OpenShift Dev Spaces
    • Red Hat Developer Toolset

    References

    • E-books
    • Documentation
    • Cheat sheets
    • Architecture center
  • Community

    Get involved

    • Events
    • Live AI events
    • Red Hat Summit
    • Red Hat Accelerators
    • Community discussions

    Follow along

    • Articles & blogs
    • Developer newsletter
    • Videos
    • Github

    Get help

    • Customer service
    • Customer support
    • Regional contacts
    • Find a partner

    Join the Red Hat Developer program

    • Download Red Hat products and project builds, access support documentation, learning content, and more.
    • Explore the benefits

Deploy Quarkus applications directly to OpenShift using S2I

June 7, 2023
Yashwanth Maheshwaram
Related topics:
JavaKubernetesQuarkus
Related products:
Developer SandboxRed Hat build of QuarkusRed Hat OpenShift

Quarkus is a Kubernetes-native Java framework that offers a great developer experience, providing extensions for most modern development and management needs while enabling you to write imperative and reactive code. Red Hat OpenShift is a unified platform to run your applications at scale while offering a great developer experience for managing applications and their infrastructure. Quarkus and OpenShift are a great combination. Simply put, the combination of OpenShift and Quarkus helps application engineering teams to become highly productive and have a reliable runtime for their applications at scale.

This article shows how you can quickly deploy your applications to OpenShift without worrying about build configs, pipelines, YAML, and deployment configs. We'll use the Source2Image (S2I) approach, in which you specify only the Git repo where the code sits, and OpenShift automatically deploys and make the application available at a URL.

Deploy your Quarkus application to OpenShift

For the demonstration, we'll use the Developer Sandbox for Red Hat OpenShift (available as a no-cost subscription) to deploy our Quarkus application to OpenShift.

Follow the instructions below to create a basic application. Once your application is ready, you'll publish it to a Git repository. For the sake of simplicity, let’s use a readily available Quarkus repository from https://github.com/quarkusio/quarkus-quickstarts.

  1. Sign up for the free Developer Sandbox for Red Hat OpenShift.
  2. Start your Developer Sandbox (Figure 1).
    Getting started in the Developer Sandbox for Red Hat OpenShift.
    Figure 1: Starting your free Developer Sandbox instance.
  3. Choose the Import from Git option under the +Add section (Figure 2).
    Import code from your Git repository to the Developer Sandbox for Red Hat OpenShift.
    Figure 2: Select the Import from Git option in the Developer Sandbox.
  4. Input your Git repo URL (Figure 3). Once you input the repo URL, OpenShift automatically fills in the config to run your application. In this case, we are working with a directory in a larger repository and hence we specify the directory path where our application exists.
    Enter the Git repo URL for the Quarkus quick start.
    Figure 3: Enter the Git repository URL.
  5. Click Create (Figure 4).
    The Create button is marked in the Developer Sandbox UI.
  6. Wait for OpenShift to build your application (Figure 5).
    Waiting for the application to build in OpenShift.
    Figure 5: The build in progress.
  7. Once the process is done, click on the upper-right icon to open your application URL, as shown in Figure 7.
    The URL icon displayed in the upper-right corner of the Quarkus application.
    Figure 7: Click the icon to open the application URL.
  8. Congrats—your Quarkus application is now available on OpenShift! (Figure 8).
    The Quarkus application upon successful creation.
    Figure 8: The Quarkus application upon successful deployment.

Conclusion

You can replicate the same steps on the cluster to deploy Quarkus applications on OpenShift. For more information and to stay updated about Quarkus on OpenShift, visit the Red Hat build of Quarkus product page.

Last updated: September 19, 2023

Related Posts

  • Build smaller container images using S2I

  • Getting started with OpenShift Java S2I

  • Pipenv and S2I: A better way to manage Python dependencies in containers

  • How to add libraries to a Node.js container with S2I

  • Maven mirrors on OpenShift with and without Source to Image (S2I)

Recent Posts

  • Tekton joins the CNCF as an incubating project

  • Federated identity across the hybrid cloud using zero trust workload identity manager

  • Confidential virtual machine storage attack scenarios

  • Introducing virtualization platform autopilot

  • Integrate zero trust workload identity manager with Red Hat OpenShift GitOps

What’s up next?

Quarkus for Spring Developers

Learn how to optimize Java for today’s compute and runtime demands with Quarkus. Quarkus for Spring Developers introduces Quarkus to Java developers, with a special eye for helping those familiar with Spring’s conventions make a quick and easy transition.

Get the e-book
Red Hat Developers logo LinkedIn YouTube Twitter Facebook

Platforms

  • Red Hat AI
  • Red Hat Enterprise Linux
  • Red Hat OpenShift
  • Red Hat Ansible Automation Platform
  • See all products

Build

  • Developer Sandbox
  • Developer tools
  • Interactive tutorials
  • API catalog

Quicklinks

  • Learning resources
  • E-books
  • Cheat sheets
  • Blog
  • Events
  • Newsletter

Communicate

  • About us
  • Contact sales
  • Find a partner
  • Report a website issue
  • Site status dashboard
  • Report a security problem

RED HAT DEVELOPER

Build here. Go anywhere.

We serve the builders. The problem solvers who create careers with code.

Join us if you’re a developer, software engineer, web designer, front-end designer, UX designer, computer scientist, architect, tester, product manager, project manager or team lead.

Sign me up

Red Hat legal and privacy links

  • About Red Hat
  • Jobs
  • Events
  • Locations
  • Contact Red Hat
  • Red Hat Blog
  • Inclusion at Red Hat
  • Cool Stuff Store
  • Red Hat Summit
© 2026 Red Hat

Red Hat legal and privacy links

  • Privacy statement
  • Terms of use
  • All policies and guidelines
  • Digital accessibility

Chat Support

Please log in with your Red Hat account to access chat support.