Skip to content

Releases: graalvm/mandrel

Mandrel 20.3.0.0.Beta1

19 Nov 10:26
mandrel-20.3.0.0.Beta1
Compare
Choose a tag to compare
Pre-release

Mandrel

Mandrel 20.3.0.0.Beta1 is a downstream distribution of the GraalVM community edition 20.3.0.
Mandrel's main goal is to provide a native-image release specifically to support Quarkus.
The aim is to align the native-image capabilities from GraalVM with OpenJDK and Red Hat Enterprise Linux libraries to improve maintainability for native Quarkus applications.

How Does Mandrel Differ From Graal

Mandrel releases are built from a code base derived from the upstream GraalVM code base, with only minor changes but some significant exclusions.
They support the same native image capability as GraalVM with no significant changes to functionality.
They do not include support for Polyglot programming via the Truffle interpreter and compiler framework.
In consequence, it is not possible to extend Mandrel by downloading languages from the Truffle language catalogue.

Mandrel is also built slightly differently to GraalVM, using the standard OpenJDK project release of jdk11u.
This means it does not profit from a few small enhancements that Oracle have added to the version of OpenJDK used to build their own GraalVM downloads.
Most of these enhancements are to the JVMCI module that allows the Graal compiler to be run inside OpenJDK.
The others are small cosmetic changes to behaviour.
These enhancements may in some cases cause minor differences in the progress of native image generation.
They should not cause the resulting images themselves to execute in a noticeably different manner.

Prerequisites

Mandrel's native-image depends on the following packages:

  • glibc-devel
  • zlib-devel
  • gcc

On Fedora/CentOS/RHEL they can be installed with:

dnf install glibc-devel zlib-devel gcc libstdc++-static

Note the package might be called glibc-static instead of libstdc++-static.

On Ubuntu-like systems with:

apt install gcc zlib1g-dev build-essential

Quick start

$ tar -xf mandrel-java11-linux-amd64-20.3.0.0.Beta1.tar.gz
$ export JAVA_HOME="$( pwd )/mandrel-java11-20.3.0.0.Beta1"
$ export GRAALVM_HOME="${JAVA_HOME}"
$ export PATH="${JAVA_HOME}/bin:${PATH}"
$ curl -O -J  'https://code.quarkus.io/d?e=io.quarkus:quarkus-resteasy'
$ unzip code-with-quarkus.zip
$ cd code-with-quarkus/
$ ./mvnw package -Pnative
$ ./target/code-with-quarkus-1.0.0-SNAPSHOT-runner

Quarkus builder image

Mandrel Quarkus builder image can be used to build a Quarkus native Linux executable right away without any GRAALVM_HOME setup.

curl -O -J  'https://code.quarkus.io/d?e=io.quarkus:quarkus-resteasy'
unzip code-with-quarkus.zip
cd code-with-quarkus
./mvnw package -Pnative -Dquarkus.native.container-build=true -Dquarkus.native.builder-image=quay.io/quarkus/ubi-quarkus-mandrel:20.3.0.0.Beta1-java11
./target/code-with-quarkus-1.0.0-SNAPSHOT-runner

One can use the builder image on Windows with Docker Desktop (mind Resources-> File sharing settings so as Quarkus project directory is mountable).

powershell -c "Invoke-WebRequest -OutFile quarkus.zip -Uri https://code.quarkus.io/d?e=io.quarkus:quarkus-resteasy"
powershell -c "Expand-Archive -Path quarkus.zip -DestinationPath . -Force
cd code-with-quarkus
mvnw package -Pnative -Dquarkus.native.container-build=true -Dquarkus.native.builder-image=quay.io/quarkus/ubi-quarkus-mandrel:20.3.0.0.Beta1-java11
docker build -f src/main/docker/Dockerfile.native -t my-quarkus-mandrel-app .
docker run -i --rm -p 8080:8080 my-quarkus-mandrel-app

Changelog

  • #178 - Dynamically choose class delimiter for debug entries
  • Windows build

Backports

  • #174 - Add awt support
  • #167 - Work around the absence of SpeculationReasonEncoding in OpenJDK11

For a complete list of changes please visit vm-20.3.0...mandrel-20.3.0.0.Beta1


Mandrel 20.3.0.0.Beta1
OpenJDK used: 11.0.9+11

Mandrel 20.2.0.0.Final

26 Oct 22:37
mandrel-20.2.0.0.Final
Compare
Choose a tag to compare

Mandrel

Mandrel 20.2.0.0.Final is a downstream distribution of the GraalVM community edition 20.2.0.
Mandrel's main goal is to provide a native-image release specifically to support Quarkus.
The aim is to align the native-image capabilities from GraalVM with OpenJDK and Red Hat Enterprise Linux libraries to improve maintainability for native Quarkus applications.

How Does Mandrel Differ From Graal

Mandrel releases are built from a code base derived from the upstream GraalVM code base, with only minor changes but some significant exclusions.
They support the same native image capability as GraalVM with no significant changes to functionality.
They do not include support for Polyglot programming via the Truffle interpreter and compiler framework.
In consequence, it is not possible to extend Mandrel by downloading languages from the Truffle language catalogue.

Mandrel is also built slightly differently to GraalVM, using the standard OpenJDK project release of jdk11u.
This means it does not profit from a few small enhancements that Oracle have added to the version of OpenJDK used to build their own GraalVM downloads.
Most of these enhancements are to the JVMCI module that allows the Graal compiler to be run inside OpenJDK.
The others are small cosmetic changes to behaviour.
These enhancements may in some cases cause minor differences in the progress of native image generation.
They should not cause the resulting images themselves to execute in a noticeably different manner.

Prerequisites

Mandrel's native-image depends on the following packages:

  • glibc-devel
  • zlib-devel
  • gcc

On Fedora/CentOS/RHEL they can be installed with:

dnf install glibc-devel zlib-devel gcc libstdc++-static

Note the package might be called glibc-static instead of libstdc++-static.

On Ubuntu-like systems with:

apt install gcc zlib1g-dev libffi-dev build-essential

Quick start

$ tar -xf mandrel-java11-linux-amd64-20.2.0.0.Final.tar.gz
$ export JAVA_HOME="$( pwd )/mandrel-java11-20.2.0.0.Final"
$ export GRAALVM_HOME="${JAVA_HOME}"
$ export PATH="${JAVA_HOME}/bin:${PATH}"
$ curl -O -J  https://code.quarkus.io/d\?e\=io.quarkus:quarkus-resteasy
$ unzip code-with-quarkus.zip
$ cd code-with-quarkus/
$ ./mvnw package -Pnative
$ ./target/code-with-quarkus-1.0.0-SNAPSHOT-runner

Quarkus builder image

Mandrel Quarkus builder image can be used to build a Quarkus native Linux executable right away without any GRAALVM_HOME setup.

curl -O -J  https://code.quarkus.io/d\?e\=io.quarkus:quarkus-resteasy
unzip code-with-quarkus.zip
cd code-with-quarkus
        ./mvnw package -Pnative -Dquarkus.native.container-build=true -Dquarkus.native.builder-image=quay.io/quarkus/ubi-quarkus-mandrel:20.2.0.0.Final-java11
        ./target/code-with-quarkus-1.0.0-SNAPSHOT-runner

One can use the builder image on Windows with Docker Desktop (mind Resources-> File sharing settings so as Quarkus project directory is mountable).

powershell -c "Invoke-WebRequest -OutFile quarkus.zip -Uri https://code.quarkus.io/api/download"
powershell -c "Expand-Archive -Path quarkus.zip -DestinationPath . -Force
cd code-with-quarkus
mvnw package -Pnative -Dquarkus.native.container-build=true -Dquarkus.native.builder-image=quay.io/quarkus/ubi-quarkus-mandrel:20.2.0.0.Final-java11
docker build -f src/main/docker/Dockerfile.native -t my-quarkus-mandrel-app .
        docker run -i --rm -p 8080:8080 my-quarkus-mandrel-app

Changelog

Backports

  • #155 - Clear lower half of two-slot value when upper half is not live
  • #127 - [20.2] Unify source caches
  • #117 - [20.2] Backports included in Mandrel/20.1

For a complete list of changes please visit mandrel-20.2.0.0.Beta2...mandrel-20.2.0.0.Final


Mandrel 20.2.0.0.Final
OpenJDK used: 11.0.9+11

Mandrel 20.1.0.3.Final

21 Oct 11:22
mandrel-20.1.0.3.Final
Compare
Choose a tag to compare

Mandrel

Mandrel 20.1.0.3.Final is a downstream distribution of the GraalVM community edition 20.1.0.
Mandrel's main goal is to provide a native-image release specifically to support Quarkus.
The aim is to align the native-image capabilities from GraalVM with OpenJDK and Red Hat Enterprise Linux libraries to improve maintainability for native Quarkus applications.

How Does Mandrel Differ From Graal

Mandrel releases are built from a code base derived from the upstream GraalVM code base, with only minor changes but some significant exclusions.
They support the same native image capability as GraalVM with no significant changes to functionality.
They do not include support for Polyglot programming via the Truffle interpreter and compiler framework.
In consequence, it is not possible to extend Mandrel by downloading languages from the Truffle language catalogue.

Mandrel is also built slightly differently to GraalVM, using the standard OpenJDK project release of jdk11u.
This means it does not profit from a few small enhancements that Oracle have added to the version of OpenJDK used to build their own GraalVM downloads.
Most of these enhancements are to the JVMCI module that allows the Graal compiler to be run inside OpenJDK.
The others are small cosmetic changes to behaviour.
These enhancements may in some cases cause minor differences in the progress of native image generation.
They should not cause the resulting images themselves to execute in a noticeably different manner.

Prerequisites

Mandrel's native-image depends on the following packages:

  • glibc-devel
  • zlib-devel
  • gcc
  • libffi-devel

On Fedora/CentOS/RHEL they can be installed with:

dnf install glibc-devel zlib-devel gcc libffi-devel libstdc++-static

Note the package might be called glibc-static instead of libstdc++-static.

On Ubuntu-like systems with:

apt install gcc zlib1g-dev libffi-dev build-essential

Quick start

$ tar -xf mandrel-java11-linux-amd64-20.1.0.3.Final.tar.gz
$ export JAVA_HOME="$( pwd )/mandrel-java11-20.1.0.3.Final"
$ export GRAALVM_HOME="${JAVA_HOME}"
$ export PATH="${JAVA_HOME}/bin:${PATH}"
$ curl -O -J  https://code.quarkus.io/d\?e\=io.quarkus:quarkus-resteasy
$ unzip code-with-quarkus.zip
$ cd code-with-quarkus/
$ ./mvnw package -Pnative
$ ./target/code-with-quarkus-1.0.0-SNAPSHOT-runner

Quarkus builder image (pending upload)

The Quarkus builder image for this release is still being prepared, please try again later.

Changelog

  • Upgraded JDK from 11.0.8 to 11.0.9.

Backports

  • #136 - Refactor static library search paths
  • #126 - Unify source caches

For a complete list of changes please visit mandrel-20.1.0.2.Final...mandrel-20.1.0.3.Final


Mandrel 20.1.0.3.Final
OpenJDK used: 11.0.9 GA

Mandrel 20.2.0.0.Beta2

12 Oct 20:01
mandrel-20.2.0.0.Beta2
Compare
Choose a tag to compare
Pre-release

Mandrel

Mandrel 20.2.0.0.Beta2 is a downstream distribution of the GraalVM community edition 20.2.0.
Mandrel's main goal is to provide a native-image release specifically to support Quarkus.
The aim is to align the native-image capabilities from GraalVM with OpenJDK and Red Hat Enterprise Linux libraries to improve maintainability for native Quarkus applications.

How Does Mandrel Differ From Graal

Mandrel releases are built from a code base derived from the upstream GraalVM code base, with only minor changes but some significant exclusions.
They support the same native image capability as GraalVM with no significant changes to functionality.
They do not include support for Polyglot programming via the Truffle interpreter and compiler framework.
In consequence, it is not possible to extend Mandrel by downloading languages from the Truffle language catalogue.

Mandrel is also built slightly differently to GraalVM, using the standard OpenJDK project release of jdk11u.
This means it does not profit from a few small enhancements that Oracle have added to the version of OpenJDK used to build their own GraalVM downloads.
Most of these enhancements are to the JVMCI module that allows the Graal compiler to be run inside OpenJDK.
The others are small cosmetic changes to behaviour.
These enhancements may in some cases cause minor differences in the progress of native image generation.
They should not cause the resulting images themselves to execute in a noticeably different manner.

Prerequisites

Mandrel's native-image depends on the following packages:

  • glibc-devel
  • zlib-devel
  • gcc
  • libffi-devel

On Fedora/CentOS/RHEL they can be installed with:

dnf install glibc-devel zlib-devel gcc libffi-devel libstdc++-static

Note the package might be called glibc-static instead of libstdc++-static.

On Ubuntu-like systems with:

apt install gcc zlib1g-dev libffi-dev build-essential

Quick start

$ tar -xf mandrel-java11-linux-amd64-20.2.0.0.Beta2.tar.gz
$ export JAVA_HOME="$( pwd )/mandrel-java11-20.2.0.0.Beta2"
$ export GRAALVM_HOME="${JAVA_HOME}"
$ export PATH="${JAVA_HOME}/bin:${PATH}"
$ curl -O -J  https://code.quarkus.io/d\?e\=io.quarkus:quarkus-resteasy
$ unzip code-with-quarkus.zip
$ cd code-with-quarkus/
$ ./mvnw package -Pnative
$ ./target/code-with-quarkus-1.0.0-SNAPSHOT-runner

Quarkus builder image

Mandrel Quarkus builder image can be used to build a Quarkus native Linux executable right away without any GRAALVM_HOME setup.

curl -O -J  https://code.quarkus.io/d\?e\=io.quarkus:quarkus-resteasy
unzip code-with-quarkus.zip
cd code-with-quarkus
        ./mvnw package -Pnative -Dquarkus.native.container-build=true -Dquarkus.native.builder-image=quay.io/quarkus/ubi-quarkus-mandrel:20.2.0.0.Beta2-java11
        ./target/code-with-quarkus-1.0.0-SNAPSHOT-runner

One can use the builder image on Windows with Docker Desktop (mind Resources-> File sharing settings so as Quarkus project directory is mountable).

powershell -c "Invoke-WebRequest -OutFile quarkus.zip -Uri https://code.quarkus.io/api/download"
powershell -c "Expand-Archive -Path quarkus.zip -DestinationPath . -Force
cd code-with-quarkus
mvnw package -Pnative -Dquarkus.native.container-build=true -Dquarkus.native.builder-image=quay.io/quarkus/ubi-quarkus-mandrel:20.2.0.0.Beta2-java11
docker build -f src/main/docker/Dockerfile.native -t my-quarkus-mandrel-app .
        docker run -i --rm -p 8080:8080 my-quarkus-mandrel-app

Changelog

For a complete list of changes please visit mandrel-20.2.0.0.Beta1...mandrel-20.2.0.0.Beta2


Mandrel 20.2.0.0.Beta2
OpenJDK used: 11.0.9+10 EA

Mandrel 20.2.0.0.Beta1

09 Sep 11:46
mandrel-20.2.0.0.Beta1
Compare
Choose a tag to compare
Pre-release

Mandrel

Mandrel 20.2.0.0.Beta1 is a downstream distribution of the GraalVM community edition 20.2.
Mandrel's main goal is to provide a native-image release specifically to support Quarkus.
The aim is to align the native-image capabilities from GraalVM with OpenJDK and Red Hat Enterprise Linux libraries to improve maintainability for native Quarkus applications.

How Does Mandrel Differ From Graal

Mandrel releases are built from a code base derived from the upstream GraalVM code base, with only minor changes but some significant exclusions.
They support the same native image capability as GraalVM with no significant changes to functionality.
They do not include support for Polyglot programming via the Truffle interpreter and compiler framework.
In consequence, it is not possible to extend Mandrel by downloading languages from the Truffle language catalogue.

Mandrel is also built slightly differently to GraalVM, using the standard OpenJDK project release of jdk11u.
This means it does not profit from a few small enhancements that Oracle have added to the version of OpenJDK used to build their own GraalVM downloads.
Most of these enhancements are to the JVMCI module that allows the Graal compiler to be run inside OpenJDK.
The others are small cosmetic changes to behaviour.
These enhancements may in some cases cause minor differences in the progress of native image generation.
They should not cause the resulting images themselves to execute in a noticeably different manner.

Prerequisites

Mandrel's native-image depends on the following packages:

  • glibc-devel
  • zlib-devel
  • gcc
  • libffi-devel

On Fedora/CentOS/RHEL they can be installed with:

dnf install glibc-devel zlib-devel gcc libffi-devel libstdc++-static

Note the package might be called glibc-static instead of libstdc++-static.

On Ubuntu-like systems with:

apt install gcc zlib1g-dev libffi-dev build-essential

Quick start

tar -xf mandrel-java11-linux-amd64-20.2.0.0.Beta1.tar.gz
export JAVA_HOME="$( pwd )/mandrel-java11-20.2.0.0.Beta1"
export GRAALVM_HOME="${JAVA_HOME}"
export PATH="${JAVA_HOME}/bin:${PATH}"
curl -O -J  https://code.quarkus.io/api/download
unzip code-with-quarkus.zip
cd code-with-quarkus/
./mvnw package -Pnative
./target/code-with-quarkus-1.0.0-SNAPSHOT-runner

Quarkus builder image

Mandrel Quarkus builder image can be used to build a Quarkus native Linux executable right away without any GRAALVM_HOME setup.

curl -O -J  https://code.quarkus.io/api/download
unzip code-with-quarkus.zip
cd code-with-quarkus
./mvnw package -Pnative -Dquarkus.native.container-build=true -Dquarkus.native.builder-image=quay.io/quarkus/ubi-quarkus-mandrel:20.2.0.0.Beta1-java11
./target/code-with-quarkus-1.0.0-SNAPSHOT-runner

One can use the builder image on Windows with Docker Desktop (mind Resources-> File sharing settings so as Quarkus project directory is mountable).

powershell -c "Invoke-WebRequest -OutFile quarkus.zip -Uri https://code.quarkus.io/api/download"
powershell -c "Expand-Archive -Path quarkus.zip -DestinationPath . -Force
cd code-with-quarkus
mvnw package -Pnative -Dquarkus.native.container-build=true -Dquarkus.native.builder-image=quay.io/quarkus/ubi-quarkus-mandrel:20.2.0.0.Beta1-java11
docker build -f src/main/docker/Dockerfile.native -t my-quarkus-mandrel-app .
docker run -i --rm -p 8080:8080 my-quarkus-mandrel-app

Mandrel 20.2.0.0.Beta1
OpenJDK used: OpenJDK 11.0.9+6 EA

Mandrel 20.1.0.2.Final

08 Sep 13:31
mandrel-20.1.0.2.Final
Compare
Choose a tag to compare

Mandrel

Mandrel 20.1.0.2.Final is a downstream distribution of the GraalVM community edition 20.1.
Mandrel's main goal is to provide a native-image release specifically to support Quarkus.
The aim is to align the native-image capabilities from GraalVM with OpenJDK and Red Hat Enterprise Linux libraries to improve maintainability for native Quarkus applications.

How Does Mandrel Differ From Graal

Mandrel releases are built from a code base derived from the upstream GraalVM code base, with only minor changes but some significant exclusions.
They support the same native image capability as GraalVM with no significant changes to functionality.
They do not include support for Polyglot programming via the Truffle interpreter and compiler framework.
In consequence, it is not possible to extend Mandrel by downloading languages from the Truffle language catalogue.

Mandrel is also built slightly differently to GraalVM, using the standard OpenJDK project release of jdk11u.
This means it does not profit from a few small enhancements that Oracle have added to the version of OpenJDK used to build their own GraalVM downloads.
Most of these enhancements are to the JVMCI module that allows the Graal compiler to be run inside OpenJDK.
The others are small cosmetic changes to behaviour.
These enhancements may in some cases cause minor differences in the progress of native image generation.
They should not cause the resulting images themselves to execute in a noticeably different manner.

Prerequisites

Mandrel's native-image depends on the following packages:

  • glibc-devel
  • zlib-devel
  • gcc
  • libffi-devel

On Fedora/CentOS/RHEL they can be installed with:

dnf install glibc-devel zlib-devel gcc libffi-devel libstdc++-static

Note the package might be called glibc-static instead of libstdc++-static.

On Ubuntu-like systems with:

apt install gcc zlib1g-dev libffi-dev build-essential

Quick start

$ tar -xf mandrel-java11-linux-amd64-20.1.0.2.Final.tar.gz
$ export JAVA_HOME="$( pwd )/mandrel-java11-20.1.0.2.Final"
$ export GRAALVM_HOME="${JAVA_HOME}"
$ export PATH="${JAVA_HOME}/bin:${PATH}"
$ curl -O -J  https://code.quarkus.io/api/download
$ unzip code-with-quarkus.zip
$ cd code-with-quarkus/
$ ./mvnw package -Pnative
$ ./target/code-with-quarkus-1.0.0-SNAPSHOT-runner

Quarkus builder image

Mandrel Quarkus builder image can be used to build a Quarkus native Linux executable right away without any GRAALVM_HOME setup.

curl -O -J  https://code.quarkus.io/api/download
unzip code-with-quarkus.zip
cd code-with-quarkus
./mvnw package -Pnative -Dquarkus.native.container-build=true -Dquarkus.native.builder-image=quay.io/quarkus/ubi-quarkus-mandrel:20.1.0.2.Final-java11
./target/code-with-quarkus-1.0.0-SNAPSHOT-runner

One can use the builder image on Windows with Docker Desktop (mind Resources-> File sharing settings so as Quarkus project directory is mountable).

powershell -c "Invoke-WebRequest -OutFile quarkus.zip -Uri https://code.quarkus.io/api/download"
powershell -c "Expand-Archive -Path quarkus.zip -DestinationPath . -Force
cd code-with-quarkus
mvnw package -Pnative -Dquarkus.native.container-build=true -Dquarkus.native.builder-image=quay.io/quarkus/ubi-quarkus-mandrel:20.1.0.2.Final-java11
docker build -f src/main/docker/Dockerfile.native -t my-quarkus-mandrel-app .
docker run -i --rm -p 8080:8080 my-quarkus-mandrel-app

Changelog

Backports

  • #109 - Remove jdk, graal, and src subdirectories from sources cache
  • #115 - Prints JDK build number along with java.version
  • #118 - Fix missing localization info issue for timezones

For a complete list of changes please visit mandrel-20.1.0.1.Final...mandrel-20.1.0.2.Final


Mandrel 20.1.0.2.Final
OpenJDK used: 11.0.8+10

Mandrel 20.1.0.1.Final

11 Aug 23:05
mandrel-20.1.0.1.Final
Compare
Choose a tag to compare

Mandrel

Mandrel 20.1.0.1.Final is a downstream distribution of the GraalVM community edition 20.1.
Mandrel's main goal is to provide a native-image release specifically to support Quarkus.
The aim is to align the native-image capabilities from GraalVM with OpenJDK and Red Hat Enterprise Linux libraries to improve maintainability for native Quarkus applications.

How Does Mandrel Differ From Graal

Mandrel releases are built from a code base derived from the upstream GraalVM code base, with only minor changes but some significant exclusions.
They support the same native image capability as GraalVM with no significant changes to functionality.
They do not include support for Polyglot programming via the Truffle interpreter and compiler framework.
In consequence, it is not possible to extend Mandrel by downloading languages from the Truffle language catalogue.

Mandrel is also built slightly differently to GraalVM, using the standard OpenJDK project release of jdk11u.
This means it does not profit from a few small enhancements that Oracle have added to the version of OpenJDK used to build their own GraalVM downloads.
Most of these enhancements are to the JVMCI module that allows the Graal compiler to be run inside OpenJDK.
The others are small cosmetic changes to behaviour.
These enhancements may in some cases cause minor differences in the progress of native image generation.
They should not cause the resulting images themselves to execute in a noticeably different manner.

Prerequisites

Mandrel's native-image depends on the following packages:

  • glibc-devel
  • zlib-devel
  • gcc
  • libffi-devel

On Fedora/CentOS/RHEL they can be installed with:

dnf install glibc-devel zlib-devel gcc libffi-devel libstdc++-static

On Ubuntu-like systems with:

apt install gcc zlib1g-dev libffi-dev build-essential

Quick start

$ tar -xf mandrel-java11-linux-amd64-20.1.0.1.Final.tar.gz
$ export JAVA_HOME="$( pwd )/mandrel-java11-20.1.0.1.Final"
$ export GRAALVM_HOME="${JAVA_HOME}"
$ export PATH="${JAVA_HOME}/bin:${PATH}"
$ curl -O -J  https://code.quarkus.io/api/download
$ unzip code-with-quarkus.zip
$ cd code-with-quarkus/
$ ./mvnw package -Pnative
$ ./target/code-with-quarkus-1.0.0-SNAPSHOT-runner

Quarkus builder image

Mandrel Quarkus builder image can be used to build a Quarkus native Linux executable right away without any GRAALVM_HOME setup.

curl -O -J  https://code.quarkus.io/api/download
unzip code-with-quarkus.zip
cd code-with-quarkus
./mvnw package -Pnative -Dquarkus.native.container-build=true -Dquarkus.native.builder-image=quay.io/quarkus/ubi-quarkus-mandrel:20.1.0.1.Final-java11
./target/code-with-quarkus-1.0.0-SNAPSHOT-runner

One can use the builder image on Windows with Docker Desktop (mind Resources-> File sharing settings so as Quarkus project directory is mountable).

powershell -c "Invoke-WebRequest -OutFile quarkus.zip -Uri https://code.quarkus.io/api/download"
powershell -c "Expand-Archive -Path quarkus.zip -DestinationPath . -Force
cd code-with-quarkus
mvnw package -Pnative -Dquarkus.native.container-build=true -Dquarkus.native.builder-image=quay.io/quarkus/ubi-quarkus-mandrel:20.1.0.1.Final-java11
docker build -f src/main/docker/Dockerfile.native -t my-quarkus-mandrel-app .
docker run -i --rm -p 8080:8080 my-quarkus-mandrel-app

Mandrel 20.1.0.1.Final
OpenJDK used: 11.0.8+10

Mandrel 20.1.0.1.Alpha2

24 Jul 21:35
mandrel-20.1.0.1.Alpha2
Compare
Choose a tag to compare
Pre-release

Mandrel

Mandrel 20.1.0.1.Alpha2 is a downstream distribution of the GraalVM community edition 20.1.
Mandrel's main goal is to provide a native-image release specifically to support Quarkus.
The aim is to align the native-image capabilities from GraalVM with OpenJDK and Red Hat Enterprise Linux libraries to improve maintainability for native Quarkus applications.

How Does Mandrel Differ From Graal

Mandrel releases are built from a code base derived from the upstream GraalVM code base, with only minor changes but some significant exclusions.
They support the same native image capability as GraalVM with no significant changes to functionality.
They do not include support for Polyglot programming via the Truffle interpreter and compiler framework.
In consequence, it is not possible to extend Mandrel by downloading languages from the Truffle language catalogue.

Mandrel is also built slightly differently to GraalVM, using the standard OpenJDK project release of jdk11u.
This means it does not profit from a few small enhancements that Oracle have added to the version of OpenJDK used to build their own GraalVM downloads.
Most of these enhancements are to the JVMCI module that allows the Graal compiler to be run inside OpenJDK.
The others are small cosmetic changes to behaviour.
These enhancements may in some cases cause minor differences in the progress of native image generation.
They should not cause the resulting images themselves to execute in a noticeably different manner.

Prerequisites

Mandrel's native-image depends on the following packages:

  • glibc-devel
  • zlib-devel
  • gcc
  • libffi-devel

On Fedora/CentOS/RHEL they can be installed with:

dnf install glibc-devel zlib-devel gcc libffi-devel libstdc++-static

On Ubuntu-like systems with:

apt install gcc zlib1g-dev libffi-dev build-essential

Quick start

$ tar -xf mandrel-java11-linux-amd64-20.1.0.1.Alpha2.tar.gz
$ export JAVA_HOME="$( pwd )/mandrel-java11-20.1.0.1.Alpha2"
$ export GRAALVM_HOME="${JAVA_HOME}"
$ export PATH="${JAVA_HOME}/bin:${PATH}"
$ curl -O -J  https://code.quarkus.io/api/download
$ unzip code-with-quarkus.zip
$ cd code-with-quarkus/
$ ./mvnw package -Pnative
$ ./target/code-with-quarkus-1.0.0-SNAPSHOT-runner

Quarkus builder image

Mandrel Quarkus builder image can be used to build a Quarkus native Linux executable right away without any GRAALVM_HOME setup.

curl -O -J  https://code.quarkus.io/api/download
unzip code-with-quarkus.zip
cd code-with-quarkus
./mvnw package -Pnative -Dquarkus.native.container-build=true -Dquarkus.native.builder-image=quay.io/quarkus/ubi-quarkus-mandrel:20.1.0.1.Alpha2-java11
./target/code-with-quarkus-1.0.0-SNAPSHOT-runner

One can use the builder image on Windows with Docker Desktop (mind Resources-> File sharing settings so as Quarkus project directory is mountable).

powershell -c "Invoke-WebRequest -OutFile quarkus.zip -Uri https://code.quarkus.io/api/download"
powershell -c "Expand-Archive -Path quarkus.zip -DestinationPath . -Force
cd code-with-quarkus
mvnw package -Pnative -Dquarkus.native.container-build=true -Dquarkus.native.builder-image=quay.io/quarkus/ubi-quarkus-mandrel:20.1.0.1.Alpha2-java11
docker build -f src/main/docker/Dockerfile.native -t my-quarkus-mandrel-app .
docker run -i --rm -p 8080:8080 my-quarkus-mandrel-app

Mandrel 20.1.0.1.Alpha2
OpenJDK used: 11.0.8+10

Mandrel 20.1.0.0.Alpha1

18 Jun 07:49
mandrel-20.1.0.0.Alpha1
Compare
Choose a tag to compare
Pre-release

Mandrel

Mandrel 20.1.0.0.Alpha1 is a downstream distribution of the GraalVM community edition 20.1.
Mandrel's main goal is to provide a native-image release specifically to support Quarkus.
The aim is to align the native-image capabilities from GraalVM with OpenJDK and Red Hat Enterprise Linux libraries to improve maintainability for native Quarkus applications.

How Does Mandrel Differ From Graal

Mandrel releases are built from a code base derived from the upstream GraalVM code base, with only minor changes but some significant exclusions.
They support the same native image capability as GraalVM with no significant changes to functionality.
They do not include support for Polyglot programming via the Truffle interpreter and compiler framework.
In consequence, it is not possible to extend Mandrel by downloading languages from the Truffle language catalogue.

Mandrel is also built slightly differently to GraalVM, using the standard OpenJDK project release of jdk11u.
This means it does not profit from a few small enhancements that Oracle have added to the version of OpenJDK used to build their own GraalVM downloads.
Most of these enhancements are to the JVMCI module that allows the Graal compiler to be run inside OpenJDK.
The others are small cosmetic changes to behaviour.
These enhancements may in some cases cause minor differences in the progress of native image generation.
They should not cause the resulting images themselves to execute in a noticeably different manner.

Prerequisites

Mandrel's native-image depends on the following packages:

  • glibc-devel
  • zlib-devel
  • gcc
  • libffi-devel

On Fedora/CentOS/RHEL they can be installed with:

dnf install glibc-devel zlib-devel gcc libffi-devel libstdc++-static

On Ubuntu-like systems with:

apt install gcc zlib1g-dev libffi-dev build-essential

Quick start

$ tar -xf mandrel-java11-linux-amd64-20.1.0.0.Alpha1.tar.gz
$ export JAVA_HOME="$( pwd )/mandrelJDK"
$ export GRAALVM_HOME="${JAVA_HOME}"
$ export PATH="${JAVA_HOME}/bin:${PATH}"
$ curl -O -J  https://code.quarkus.io/api/download
$ unzip code-with-quarkus.zip
$ cd code-with-quarkus/
$ ./mvnw package -Pnative
$ ./target/code-with-quarkus-1.0.0-SNAPSHOT-runner

Quarkus builder image

Mandrel Quarkus builder image can be used to build a Quarkus native Linux executable right away without any GRAALVM_HOME setup.

curl -O -J  https://code.quarkus.io/api/download
unzip code-with-quarkus.zip
cd code-with-quarkus
./mvnw package -Pnative -Dquarkus.native.container-build=true -Dquarkus.native.builder-image=quay.io/quarkus/ubi-quarkus-mandrel:20.1.0.0.Alpha1-java11
./target/code-with-quarkus-1.0.0-SNAPSHOT-runner

One can use the builder image on Windows with Docker Desktop (mind Resources-> File sharing settings so as Quarkus project directory is mountable).

powershell -c "Invoke-WebRequest -OutFile quarkus.zip -Uri https://code.quarkus.io/api/download"
powershell -c "Expand-Archive -Path quarkus.zip -DestinationPath . -Force
cd code-with-quarkus
mvnw package -Pnative -Dquarkus.native.container-build=true -Dquarkus.native.builder-image=quay.io/quarkus/ubi-quarkus-mandrel:20.1.0.0.Alpha1-java11
docker build -f src/main/docker/Dockerfile.native -t my-quarkus-mandrel-app .
docker run -i --rm -p 8080:8080 my-quarkus-mandrel-app

Mandrel 20.1.0.0.Alpha1
OpenJDK used: 11.0.8-ea+7