HL supports GraalVM EE native-image
via custom Dockerfile
recipe. Image out of the Dockerfile
has to be manually built and tagged by the user. This requirement is a result of GraalVM EE
licensing and I cannot/will not distribute Docker
image, that includes any of the GraalVM EE
component.
Create a folder which will be a docker build context.
mkdir -p graalvm-ee-hl && cd graalvm-ee-hl
Download latest Dockerfile.ee
from here
wget https://raw.githubusercontent.com/FieryCod/holy-lambda/master/docker/Dockerfile.ee -O Dockerfile.ee && \
wget https://raw.githubusercontent.com/FieryCod/holy-lambda/master/docker/download_pods -O download_pods && \
wget https://raw.githubusercontent.com/FieryCod/holy-lambda/master/docker/download_pods.clj -O download_pods.clj && \
chmod +x download_pods
Navigate to https://www.oracle.com/downloads/graalvm-downloads.html and choose GraalVM Enterprise 21 as shown on the screenshot.
Download two components and move them to graalvm-ee-hl
directory
Up to this step you should have following files in graalm-ee-hl
directory
~/graalvm-ee-hl
❯ ls -la
total 397332
drwxrwxr-x 2 fierycod fierycod 4096 Jun 16 08:26 .
drwxr-xr-x 70 fierycod fierycod 4096 Jun 16 08:27 ..
-rw-rw-r-- 1 fierycod fierycod 2755 Jun 16 08:26 Dockerfile.ee
-rwxrwxr-x 1 fierycod fierycod 56 Jun 16 08:26 download_pods
-rw-rw-r-- 1 fierycod fierycod 300 Jun 16 08:26 download_pods.clj
-rw-rw-r-- 1 fierycod fierycod 394055674 Jun 16 08:15 graalvm-ee-java8-linux-amd64-21.1.0.tar.gz
-rw-rw-r-- 1 fierycod fierycod 12787016 Jun 16 08:13 native-image-installable-svm-svmee-java8-linux-amd64-21.1.0.jar
As a last step you have to build docker image and reference it in bb.edn
of your project.
docker build -f Dockerfile.ee . -t graalvm-ee-local
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close