Skip to content

Commit 8c029fd

Browse files
olyagplsoufianenassih
authored andcommitted
Follow Sachin Pikle comments
1 parent 69b3637 commit 8c029fd

File tree

2 files changed

+25
-16
lines changed

2 files changed

+25
-16
lines changed

ci.jsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ local javadoc = import "ci_includes/publish-javadoc.jsonnet";
3232
local vm = import 'vm/ci_includes/vm.jsonnet';
3333

3434
# Add a guard to `build` that prevents it from running in the gate
35-
# for a PR that only touches *.md files, the docs, are config files for GitHub.
35+
# for a PR that only touches *.md files, the docs, are config files for GitHub
3636
local add_excludes_guard(build) = build + {
3737
guard+: {
3838
excludes+: ["**.md", "docs/**", ".github/**"]

docs/getting-started/graalvm-enterprise/oci/compute-instances.md

Lines changed: 24 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,19 @@ To replicate the steps in this guide, [create a compute VM instance and connect
1818

1919
## Install GraalVM Enterprise
2020

21-
For convenient installation, GraalVM Enterprise RPMs have been made available in the OCI YUM repository.
21+
For convenience, GraalVM Enterpriise RPMs are available in the Oracle YUM repository.
22+
Each RPM is self-contained and will automatically pull in all the required dependencies.
23+
2224
That means that OCI customers can use the GraalVM Enterprise environment in their cloud instances by installing it with `yum` - a package-management utility for the Linux operating systems.
2325

24-
For demonstration purposes, a demo-instance of the **VM.Standard.E4.Flex** shape with the **Oracle Linux 7.9** pre-built image was created.
25-
The following SSH command is then used to connect to a Linux instance from a Unix-style system:
26-
```shell
27-
ssh -i .ssh/id_rsa opc@INSTANCE_PUBLIC_IP
28-
```
26+
The following instructions have been tested on an OCI Compute Instance with **Oracle Linux 7.9** and **VM.Standard.E4.Flex** with 1 OCPU and 16 GB RAM.
27+
Use the following command to connect to the OCI Compute Instance from a Unix-style system:
28+
29+
```shell
30+
ssh -i .ssh/id_rsa opc@INSTANCE_PUBLIC_IP
31+
```
2932

30-
In this instance, `.ssh/id_rsa` is the full path and name of the file containing the private SSH key, `opc` is the default name for the Oracle Linux image, and `INSTANCE_PUBLIC_IP` is the instance IP address provisioned from the console.
33+
The `.ssh/id_rsa` part is the full path and name of the file containing the private SSH key, `opc` is the default name for the Oracle Linux image, and `INSTANCE_PUBLIC_IP` is the instance IP address provisioned from the console.
3134
For more details, refer to the [Connecting to Your Linux Instance Using SSH](https://docs.cloud.oracle.com/iaas/Content/GSG/Tasks/testingconnection.htm) tutorial.
3235

3336
1. Having connected to the instance, verify which GraalVM Enterprise RPMs are available for the installation, narrowing down the search to the latest release, and Java 11.
@@ -44,7 +47,7 @@ For example, to install the latest version of "Oracle GraalVM Enterprise Edition
4447
sudo yum install graalvm22-ee-11-jdk
4548
```
4649
Confirm if the installed package size is okay by typing `yes` at the prompt.
47-
It will install the latest version of **graalvm22-ee-11-jdk** which includes the JVM runtime, the Graal compiler, and all dependent packages, for example, `libpolyglot`, `llvm`, etc.
50+
It will install the latest version of **graalvm22-ee-11-jdk** which includes the JVM runtime with the Graal compiler.
4851

4952
After the installation, the GraalVM Enterprise binary is placed in _/usr/lib64/graalvm_. You can check this with:
5053

@@ -69,18 +72,24 @@ For example, to install the latest version of "Oracle GraalVM Enterprise Edition
6972
source ~/.bashrc
7073
```
7174

72-
- Verify the values of `PATH` and `JAVA_HOME` to check if it was successful:
75+
- Verify the values of `PATH` and `JAVA_HOME`:
7376

7477
```shell
7578
echo $JAVA_HOME
7679
echo $PATH
7780
```
81+
- Run the following command to confirm the version of GraalVM Enterprise JDK installed:
82+
83+
```shell
84+
java -version
85+
```
7886

7987
Now you have a ready-to-go VM instance with GraalVM Enterprise installed.
8088

8189
## Install Additional Features
8290

83-
GraalVM Enterprise is shipped with core components (to save the filesize) and can be extended with more features on demand. For example, you can install Native Image, the Node.js runtime, the LLVM toolchain, etc. Find information on available features [here](https://docs.oracle.com/en/graalvm/enterprise/22/docs/overview/architecture/).
91+
GraalVM Enterprise consists of different features and components - JDK, Native Image, Python runtime, Node.js runtime, LLVM toolchain, etc. - each of which can be installed separately or as an add-on to an existing component.
92+
See [Distribution Components List](https://docs.oracle.com/en/graalvm/enterprise/22/docs/overview/architecture/#distribution-components-list) for more information.
8493

8594
To add additional features to GraalVM Enterprise, use the `yum install <package_name>` command.
8695

@@ -92,7 +101,7 @@ To add additional features to GraalVM Enterprise, use the `yum install <package_
92101
The printed list is enormous. If you are interested in a particular component, for example, the Python runtime, narrow down the search providing the exact package name:
93102

94103
```shell
95-
sudo yum provides graalvm21-ee-11-python*
104+
sudo yum provides graalvm22-ee-11-python*
96105
```
97106

98107
2. Install the component to GraalVM Enterprise with the `yum install <package_name> command` command. To install the Python runtime, run:
@@ -110,7 +119,7 @@ To add additional features to GraalVM Enterprise, use the `yum install <package_
110119
1. Search for Native Image PRMs available for your installation:
111120

112121
```shell
113-
sudo yum provides graalvm21-ee-11-native-image*
122+
sudo yum provides graalvm22-ee-11-native-image*
114123
```
115124
2. Install Native Image using the `yum install <package_name> command` command. All required dependencies will be automatically resolved.
116125

@@ -153,16 +162,16 @@ The `yum` package manager for Oracle Linux can be used to update an existing Gra
153162
java -version
154163
```
155164

156-
The **graalvm22-ee-17-jdk** package is installed alongside **graalvm21-ee-11-jdk** in the _/usr/lib64/graalvm_ directory. Note that regardless the version printed to the console, the `PATH` and `JAVA_HOME` environment variables still point to the old version. Reset the variables as described in [Install GraalVM Enterprise](#install-graalvm-enterprise), step 3.
165+
The **graalvm22-ee-17-jdk** package is installed alongside **graalvm22-ee-11-jdk** in the _/usr/lib64/graalvm_ directory. Note that regardless the version printed to the console, the `PATH` and `JAVA_HOME` environment variables still point to the old version. Reset the variables as described in [Install GraalVM Enterprise](#install-graalvm-enterprise), step 3.
157166

158167
### Note on `yum upgrade`
159168

160169
The `yum upgrade` command can be used to update on the same year package line, for example, to upgrade from GraalVM Enterprise 22.0.0 to version 22.0.1 when this RPM package becomes available:
161170

162171
```shell
163-
sudo yum upgrade graalvm22-ee-17-jdk
172+
sudo yum upgrade graalvm22-ee-11-jdk
164173
```
165-
If there is no newer package available, you will see the `No packages marked for update` message.
174+
As there are no newer package available, you will see the `No packages marked for update` message.
166175

167176
It will update the whole system and remove the obsolete GraalVM Enterprise installation.
168177

0 commit comments

Comments
 (0)