Ubuntu/GraalVM: Difference between revisions
Jump to navigation
Jump to search
(→Docker) |
(→Docker) |
||
Line 100: | Line 100: | ||
|- | |- | ||
|valign='top'| | |valign='top'| | ||
ls -lah /opt/graalvm*/bin/|grep java | '''ls -lah /opt/graalvm*/bin/|grep java''' | ||
alternatives --config native-image | alternatives --config native-image | ||
alternatives --config jconsole | alternatives --config jconsole | ||
Line 110: | Line 110: | ||
|valign='top'| | |valign='top'| | ||
microdnf install httpd-tools | '''microdnf install httpd-tools''' | ||
microdnf install nginx | '''microdnf install nginx''' | ||
microdnf install wget | '''microdnf install wget''' | ||
microdnf install curl | '''microdnf install curl''' | ||
javac -version | javac -version | ||
java -version | java -version |
Revision as of 14:15, 4 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 rm -rf /opt/cli/graalvm-ce-java17-linux-amd64-22.0.0.2.tar.gz
| |
| |
update-alternatives --query native-image
update-alternatives --query jconsole
update-alternatives --query jshell
update-alternatives --query javac
update-alternatives --query java
update-alternatives --query jdb
update-alternatives --query jps
update-alternatives --query gu
update-alternatives --query js
sudo update-alternatives --install /usr/bin/javac javac\
$GRAALVM_HOME/bin/javac 3
sudo update-alternatives --install /usr/bin/java java\
$GRAALVM_HOME/bin/java 3
|
sudo update-alternatives --install /usr/bin/js js\
$GRAALVM_HOME/bin/js 1
sudo update-alternatives --install /usr/local/bin/gu gu\
$GRAALVM_HOME/bin/gu 1
sudo gu install native-image
sudo update-alternatives --install /usr/bin/native-image native-image\
$GRAALVM_HOME/bin/native-image 1
native-image --version
sudo gu --version
javac -version
java -version
js -version
|
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 --help |
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 --help |
Java 17 » GraalVM ?? » Oracle Linux 8: | |
ls -lah /opt/graalvm*/bin/|grep java alternatives --config native-image alternatives --config jconsole alternatives --config jshell alternatives --config javac alternatives --config java alternatives --config gu alternatives --config js |
microdnf install httpd-tools microdnf install nginx microdnf install wget microdnf install curl javac -version java -version gu --version js -version |
Maven
sudo wget -c https://archive.apache.org/dist/maven/maven-3/3.8.4/binaries/\
apache-maven-3.8.4-bin.tar.gz -P /opt/cli/
sudo tar -xvzf /opt/cli/apache-maven-3.8.4-bin.tar.gz\
-C /opt/cli/
export MAVEN_HOME=/opt/cli/apache-maven-3.8.4
sudo rm -rf /opt/cli/apache-maven-3.8.4-bin.tar.gz
| |
| |
update-alternatives --query mvn
sudo update-alternatives --install /usr/bin/mvn mvn\
$MAVEN_HOME/bin/mvn 1
|
update-alternatives --config mvn
update-alternatives --query mvn
mvn -v
|
Knowledge
sudo update-alternatives --remove-all javac |
sudo update-alternatives --remove-all java |
sudo update-alternatives --remove-all gu |
| ||
ssh-keygen -f "/home/chorke/.ssh/known_hosts" -R "10.19.83.111" ssh-keygen -f ~/.ssh/known_hosts -R 10.19.83.111 |
apt search upx sudo apt install upx-ucl | |
| ||
References
| ||
|
||
Getting Started: | ||