Preface

As an application developer, you can use Red Hat build of Quarkus to create microservices written in Java that run on OpenShift and serverless environments. Applications compiled to native executables have small memory footprints and fast startup times.

This guide shows you how to compile the Quarkus Getting Started project into a native executable and how to configure and test the native executable. You will need the application created in Getting started with Quarkus.

Building a native executable with Red Hat build of Quarkus covers:

  • Building a native executable with a single command using a container runtime such as Podman or Docker
  • Creating a custom container image using the produced native executable
  • Creating a container image using the OpenShift Docker build strategy
  • Deploying the Quarkus native application to OpenShift
  • Configuring the native executable
  • Testing the native executable

Prerequisites

  • Have OpenJDK (JDK) 11 installed and the JAVA_HOME environment variable set to specify the location of the Java SDK.

    • Log in to the Red Hat Customer Portal to download Red Hat build of Open JDK from the Software Downloads page.
  • An OCI (Open Container Initiative) compatible container runtime, such as Podman or Docker.
  • A completed Quarkus Getting Started project.