/graal-containers

Using GraalVM Enterprise container images (native-image and jdk) to build and run a Spring application (Kris' Jabberwocky app) on local as well as in OCI DevOps service. Thank you Kris Foster!

Primary LanguageShellMIT LicenseMIT

graal-containers

Introduction

Credits: @krisfoster https://github.com/krisfoster/graal-containers

This repo will walk you through building containerised apps with GraalVM JDK and Native Image.

We will be using a Spring Boot application as our test-bed. This is a fairly simple app that generates a nonsense verse, in the style of the poem Jabberwocky (by Lewis Carrol). To do this remarkable feat it uses a Markov chain to model the text of the original poem and this model is then used to generate random text that appear to be like the original.

Table of contents

  1. GraalVM Enterprise container images

  2. App Native Executable: Use GraalVM native-image to build the app native executable on local

    GraalVM Enterprise GraalVM Community
    Build app native executable Build app native executable
  3. App JAR: Use GraalVM JDK to build the app JAR on local

    GraalVM Enterprise GraalVM Community
    Build app JAR Build app JAR
  4. Clean up

  5. OCI DevOps