Ubuntu/GraalVM: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
Line 1: Line 1:
==Install==
==Install==
{|
|valign="top" colspan="2"|
<source lang="bash">
<source lang="bash">
sudo mkdir -p /opt/cli
sudo mkdir -p /opt/cli
Line 10: Line 12:
export GRAALVM_HOME=/opt/cli/graalvm-ce-java17-22.0.0.2
export GRAALVM_HOME=/opt/cli/graalvm-ce-java17-22.0.0.2
</source>
</source>
|-
|colspan="2"|
----
|-
|valign="top"|
<source lang="bash">
sudo update-alternatives --config native-image
sudo update-alternatives --config javac
sudo update-alternatives --config java
sudo update-alternatives --config gu
sudo update-alternatives --config js
sudo update-alternatives --install /usr/bin/javac javac\
/opt/cli/graalvm-ce-java17-22.0.0.2/bin/javac 3
sudo update-alternatives --install /usr/bin/java java\
/opt/cli/graalvm-ce-java17-22.0.0.2/bin/java 3
sudo update-alternatives --install /usr/bin/gu gu\
/opt/cli/graalvm-ce-java17-22.0.0.2/bin/gu 0
</source>
|valign="top"|
<source lang="bash">
</source>
|}


==Docker==
==Docker==

Revision as of 08:12, 3 March 2022

Install

sudo mkdir -p /opt/cli
sudo wget -c https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.0.0.2/\
graalvm-ce-java17-linux-amd64-22.0.0.2.tar.gz -P /opt/cli/

sudo tar -xvzf /opt/cli/\
graalvm-ce-java17-linux-amd64-22.0.0.2.tar.gz -C /opt/cli/

export GRAALVM_HOME=/opt/cli/graalvm-ce-java17-22.0.0.2

sudo update-alternatives --config native-image
sudo update-alternatives --config javac
sudo update-alternatives --config java
sudo update-alternatives --config gu
sudo update-alternatives --config js

sudo update-alternatives --install /usr/bin/javac javac\
 /opt/cli/graalvm-ce-java17-22.0.0.2/bin/javac 3

sudo update-alternatives --install /usr/bin/java java\
 /opt/cli/graalvm-ce-java17-22.0.0.2/bin/java 3

sudo update-alternatives --install /usr/bin/gu gu\
 /opt/cli/graalvm-ce-java17-22.0.0.2/bin/gu 0

Docker

Java 17 » GraalVM ??:


docker pull ghcr.io/graalvm/jdk:ol8-java17
docker pull ghcr.io/graalvm/nodejs:ol8-java17
docker pull ghcr.io/graalvm/graalvm-ce:ol8-java17
docker pull ghcr.io/graalvm/native-image:ol8-java17
docker run -it --rm ghcr.io/graalvm/jdk:ol8-java17 bash
docker run -it --rm ghcr.io/graalvm/nodejs:ol8-java17 bash
docker run -it --rm ghcr.io/graalvm/graalvm-ce:ol8-java17 bash
docker run -it --rm ghcr.io/graalvm/native-image:ol8-java17 bash

Java 17 » GraalVM 22:


docker pull ghcr.io/graalvm/jdk:ol8-java17-22
docker pull ghcr.io/graalvm/nodejs:ol8-java17-22
docker pull ghcr.io/graalvm/graalvm-ce:ol8-java17-22
docker pull ghcr.io/graalvm/native-image:ol8-java17-22
docker run -it --rm ghcr.io/graalvm/jdk:ol8-java17-22 bash
docker run -it --rm ghcr.io/graalvm/nodejs:ol8-java17-22 bash
docker run -it --rm ghcr.io/graalvm/graalvm-ce:ol8-java17-22 bash
docker run -it --rm ghcr.io/graalvm/native-image:ol8-java17-22 bash

Java 17 » GraalVM ?? » Oracle Linux 8:


alternatives --config native-image
alternatives --config javac
alternatives --config java
alternatives --config gu
alternatives --config js
ls -lah /opt/graalvm*/bin/|grep java
javac -version
java -version
gu --version
js -version

References




Getting Started: