Red Hat OpenShift Workshop For Developers
  • OpenShift Workshop For Developers
    • Getting Started
  • Application Containerization
    • Building Application
    • Application Packaging
    • Running Application Container
    • Externalize Application Configurations
  • Deployment On OpenShift
    • Database Deployment Via Web Console
    • Build And Deploy Application Using S2I
    • Configure Application With ConfigMap
    • Simple Application Scaling
  • Monitoring And Logging
    • View Application Logs
    • Application Monitoring
  • Scaling
    • Resources Allocation For Application
    • Scale Application Automatically
  • Resiliency
    • Application Health Checks
    • Self Healing
Powered by GitBook
On this page
  1. Application Containerization

Building Application

  1. Clone application repository from GitHub

    git clone https://github.com/audomsak/quarkus-todo-app.git
  2. Get into the application project directory

    cd quarkus-todo-app/todo
  3. Build the application using Maven (mvnw is Maven Wrapper)

    ./mvnw clean package -Dquarkus.package.type=uber-jar

    You should be able to see build logs similar to this at the end when the build is completed.

    [INFO] [io.quarkus.deployment.QuarkusAugmentor] Quarkus augmentation completed in 8040ms
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD SUCCESS
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time:  01:10 min
    [INFO] Finished at: 2023-02-27T13:33:16+07:00
    [INFO] ------------------------------------------------------------------------
  4. Check if application artifact(s) were produced

    ls -lrt target

    Example output

    total 79016
    drwxr-xr-x  3 dom  staff        96 Feb 27 13:32 generated-sources
    drwxr-xr-x  3 dom  staff        96 Feb 27 13:32 maven-status
    drwxr-xr-x  8 dom  staff       256 Feb 27 13:32 classes
    drwxr-xr-x  3 dom  staff        96 Feb 27 13:32 generated-test-sources
    drwxr-xr-x  3 dom  staff        96 Feb 27 13:32 quarkus
    drwxr-xr-x  4 dom  staff       128 Feb 27 13:33 surefire-reports
    drwxr-xr-x  4 dom  staff       128 Feb 27 13:33 test-classes
    drwxr-xr-x  3 dom  staff        96 Feb 27 13:33 maven-archiver
    -rw-r--r--  1 dom  staff   1061413 Feb 27 13:33 quarkus-todo-apps-1.0.0.jar.original
    -rw-r--r--  1 dom  staff  39386241 Feb 27 13:33 quarkus-todo-apps-1.0.0-runner.jar
    -rw-r--r--  1 dom  staff       124 Feb 27 13:33 quarkus-artifact.properties
PreviousGetting StartedNextApplication Packaging

Last updated 2 years ago