You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/getting-started/container-images/graalvm-ce-container-images.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,10 +14,10 @@ To support container-based development, GraalVM Community Edition container imag
14
14
15
15
There are different GraalVM Community Edition container images provided depending on the architecture and the Java version, and have `-community` as part of their names.
16
16
These are: **native-image-community**, **jdk-community**, **truffleruby-community**, **nodejs-community**, and **graalpy-community**.
17
-
The container images are multi-arch, for x64 and AArch64 processor architectures, with a choice of Oracle Linux versions 8 or 9.
17
+
The container images are multi-arch, for x64 and AArch64 processor architectures, with a choice of Oracle Linux versions 8, 9, and 10.
18
18
19
19
GraalVM is installed in _/usr/lib64/graalvm/graalvm-community-java<$FeatureVersion>/_ where `<$FeatureVersion>` is `17`, `21`, `24`, and so on.
20
-
For instance, GraalVM for JDK 24 is installed in _/usr/lib64/graalvm/graalvm-community-java24/_.
20
+
For instance, GraalVM for JDK 24 is installed in _/usr/lib64/graalvm/graalvm-community-java24/_.
21
21
All binaries, including `java`, `javac`, `native-image`, and other binaries are available as global commands via the `alternatives` command.
22
22
23
23
> Note: For GraalVM non-RPM based images (**graalvm-community**, **python-community**, **truffleruby-community**), the installation location is under _/opt/_ (_/opt/graalvm-community-java<$FeatureVersion>/_, _/opt/truffleruby-<$GRAALVM_VERSION>/_, and _/opt/graalpy-<$GRAALVM_VERSION>/_ respectively).
@@ -28,13 +28,13 @@ See a full list of GraalVM Community Edition container images [here](https://git
28
28
29
29
## Tags
30
30
31
-
Each repository provides multiple tags that let you choose the level of stability you need including the Java version, build number, and the Oracle Linux version.
31
+
Each repository provides multiple tags that let you choose the level of stability you need including the Java version, build number, and the Oracle Linux version.
Alternatively, to pull the container image with the `native-image` utility with the `musl libc` toolchain to create fully statically linked executables, use:
Oracle GraalVM container images are published in the [Oracle Container Registry](https://container-registry.oracle.com/ords/ocr/ba/graalvm) under the [GraalVM Free Terms and Conditions (GFTC) license](https://www.oracle.com/downloads/licenses/graal-free-license.html).
105
-
Learn more at the [Oracle Help Center](https://docs.oracle.com/en/graalvm/jdk/24/docs/getting-started/container-images/).
104
+
Oracle GraalVM container images are published in the [Oracle Container Registry (OCR)](https://container-registry.oracle.com/ords/ocr/ba/graalvm) and include [GFTC-licensed](https://www.oracle.com/downloads/licenses/graal-free-license.html) Oracle GraalVM.
105
+
Learn more in the [Oracle GraalVM Container Images documentation](https://docs.oracle.com/en/graalvm/jdk/24/docs/getting-started/container-images/).
Oracle GraalVM container images are available in [Oracle Container Registry (OCR)](https://container-registry.oracle.com/ords/ocr/ba/graalvm)under the [GraalVM Free Terms and Conditions (GFTC) license](https://www.oracle.com/downloads/licenses/graal-free-license.html).
10
+
Oracle GraalVM container images are published in the [Oracle Container Registry (OCR)](https://container-registry.oracle.com/ords/ocr/ba/graalvm) and include [GFTC-licensed](https://www.oracle.com/downloads/licenses/graal-free-license.html) Oracle GraalVM.
11
11
12
12
## Repositories
13
13
14
-
Oracle GraalVM container images are published in two OCR repositories: **jdk** and **native-image**.
14
+
Oracle GraalVM container images are published in two OCR repositories: **jdk** and **native-image**.
15
15
16
16
| Repository | Description |
17
17
|------------------|-------------|
18
18
|**jdk**| Provides container images with Oracle GraalVM JDK (without the `native-image` utility) which can be used to both compile and deploy a Java application. Use the container image tags to select the appropriate Java version and Oracle Linux version. |
19
19
|**native-image**| Provides Oracle GraalVM container images with the `native-image` utility along with all tools required to compile an application into a native Linux executable. These images are commonly used in multistage builds to compile an application into an executable that is then packaged in a lightweight container image. Use the container image tags to select the Java version and Oracle Linux version as well as variants that include the `musl` toolchain for the creation of a fully statically linked executable. |
20
20
21
-
Both repositories provide container images for x64 and AArch64 processor architectures, with a choice of Oracle Linux versions 8 or 9.
21
+
Both repositories provide container images for x64 and AArch64 processor architectures, with a choice of Oracle Linux versions 8, 9, and 10.
22
22
23
23
Oracle GraalVM is installed in _/usr/lib64/graalvm/graalvm-java<$FeatureVersion>/_ where `<$FeatureVersion>` is `17`, `21`, `24`, and so on.
24
24
@@ -27,13 +27,13 @@ All binaries, including `java`, `javac`, `native-image`, and other binaries are
27
27
28
28
## Tags
29
29
30
-
Each repository provides multiple tags that let you choose the level of stability you need including the Java version, build number, and the Oracle Linux version.
30
+
Each repository provides multiple tags that let you choose the level of stability you need including the Java version, build number, and the Oracle Linux version.
31
31
Oracle GraalVM container image tags use the following naming convention:
The following tags are listed from the most-specific tag (at the top) to the least-specific tag (at the bottom).
36
+
The following tags are listed from the most-specific tag (at the top) to the least-specific tag (at the bottom).
37
37
The most-specific tag is unique and always points to the same container image, while the less-specific tags point to newer container image variants over time.
38
38
```
39
39
24.0.1-ol9-20250318
@@ -49,27 +49,27 @@ The most-specific tag is unique and always points to the same container image, w
Alternatively, to pull the container image for Oracle GraalVM `native-image` utility with the `musl libc` toolchain to create fully statically linked executables, run:
Alternatively, to use the container image as the base image in your Dockerfile, use:
69
69
```bash
70
70
FROM container-registry.oracle.com/graalvm/native-image:24-muslib
71
71
```
72
-
72
+
73
73
3. To verify, start the container and enter a Bash session:
74
74
```bash
75
75
docker run -it --rm --entrypoint /bin/bash container-registry.oracle.com/graalvm/native-image:24
@@ -86,13 +86,13 @@ The most-specific tag is unique and always points to the same container image, w
86
86
java -version
87
87
```
88
88
The output shows the installed Oracle GraalVM Java runtime environment and version information.
89
-
89
+
90
90
To check the `native-image` version, run the following command from the Bash prompt:
91
91
```bash
92
92
native-image --version
93
93
```
94
94
The output shows the installed Oracle GraalVM `native-image` utility version information.
95
-
95
+
96
96
4. A `docker pull`command that omits a processor architecture pulls a container image for the processor architecture that matches your Docker client. To pull a container image for a different platform architecture, specify the desired platform architecture with the `--platform` option and either `linux/amd64` or `linux/aarch64` as follows:
# Oracle GraalVM on an OCI Compute Instance with Oracle Linux
7
7
8
-
This guide describes how to install Oracle GraalVM on an Oracle Cloud Infrastructure (OCI) Compute instance with Oracle Linux 7, 8, and 9.
8
+
This guide describes how to install Oracle GraalVM on an Oracle Cloud Infrastructure (OCI) Compute instance with Oracle Linux 7, 8, 9, and 10.
9
9
For complete beginners, [start with this tutorial to create and launch your first Linux instance](https://docs.oracle.com/iaas/Content/GSG/Reference/overviewworkflow.htm).
10
10
11
11
> Note: Oracle GraalVM license and support are included in the Oracle Cloud Infrastructure subscription at no additional cost.
Where `.ssh/id_rsa` is the full path and name of the file containing your 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.
31
31
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.
32
32
33
-
The installation steps may differ per Oracle Linux version or package manager.
33
+
The installation steps may differ per Oracle Linux version or package manager.
34
34
35
-
### Oracle Linux 7
36
-
37
-
1. Install a newer devtoolset with GCC version 10 (required by Oracle GraalVM Native Image):
3. Enter a new bash session with the newer devtoolset enabled:
124
+
```
125
+
bash
126
+
```
127
+
4. Install the latest Oracle GraalVM:
128
+
```
129
+
sudo yum install graalvm-24-native-image
130
+
```
131
+
Confirm that the installed package size is correct by entering `yes` at the prompt.
132
+
133
+
134
+
## Configure Environment Variables
109
135
110
-
Configure environment variables to point to the Oracle GraalVM installation for this SSH session.
136
+
Configure environment variables to point to the Oracle GraalVM installation for this SSH session.
111
137
After installation, the package files are placed in the _/usr/lib64/graalvm_ directory, and binaries in _bin_ accordingly.
112
138
113
139
1. Set the values of the `PATH` and `JAVA_HOME` environment variables in the bash configuration to point to the location of the Oracle GraalVM installation with the following commands:
Copy file name to clipboardExpand all lines: docs/getting-started/oci/installation-devops-build-pipeline.md
+6-3Lines changed: 6 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ This guide describes how to use Oracle GraalVM in the Oracle Cloud Infrastructur
10
10
11
11
> Note: Oracle GraalVM license and support are included in the Oracle Cloud Infrastructure subscription at no additional cost.
12
12
13
-
OCI DevOps service provides build runners with Oracle Linux 7 as the base container image along with a number of [runtimes and tools](https://docs.oracle.com/en-us/iaas/Content/devops/using/runtime_details.htm).
13
+
OCI DevOps service provides build runners with Oracle Linux 8 as the base container image along with a number of [runtimes and tools](https://docs.oracle.com/en-us/iaas/Content/devops/using/runtime_details.htm).
14
14
15
15
Oracle GraalVM RPMs are available in the Oracle YUM repository.
16
16
Each RPM is self-contained and will automatically pull in all its required dependencies.
@@ -26,12 +26,13 @@ To work with a Build Pipeline, add statements to a [build specification file](ht
26
26
The DevOps CI/CD platform reads the file and runs the commands one by one.
27
27
You do not need to run a YUM package manager command manually.
28
28
29
-
The RPM package for Oracle GraalVM for JDK 24 is available with the package name`graalvm-24-native-image`.
29
+
RPMs for Oracle GraalVM are available with the package names `graalvm-17-native-image`, `graalvm-21-native-image`, and`graalvm-24-native-image`.
30
30
Each package includes the JDK and the Native Image tool.
31
31
32
32
To install and use Oracle GraalVM in your DevOps Build Pipeline, update your build specification file as shown in the following example.
33
33
34
34
1. Add a command to install Oracle GraalVM for JDK 24 with Native Image and Java Development Kit (JDK):
35
+
35
36
```yml
36
37
steps:
37
38
- type: Command
@@ -41,13 +42,15 @@ To install and use Oracle GraalVM in your DevOps Build Pipeline, update your bui
41
42
```
42
43
43
44
2. Add a command to set the value of the `JAVA_HOME` environment variable for Oracle GraalVM for JDK 24:
45
+
44
46
```yml
45
47
env:
46
48
variables:
47
49
"JAVA_HOME" : "/usr/lib64/graalvm/graalvm-java24"
48
50
```
49
51
50
52
3. Add the command to set the value of the `PATH` environment variable:
53
+
51
54
```yml
52
55
env:
53
56
variables:
@@ -71,7 +74,7 @@ yum list graalvm-24*
71
74
...
72
75
```
73
76
74
-
To try this feature out, use the sample project: [Using Oracle GraalVM in OCI DevOps Build Pipelines](https://github.com/oracle-devrel/oci-devops-examples/tree/main/oci-build-examples/oci_devops_build_with_graalenterprise).
77
+
To try this feature out, use the sample project: [Using Oracle GraalVM in OCI DevOps Build Pipelines](https://github.com/oracle-devrel/oci-devops-examples/tree/main/oci-build-examples/oci_devops_build_with_graalenterprise).
75
78
It describes how to set up Oracle GraalVM in OCI DevOps service, create a Build Pipeline, add build stages, and so on.
0 commit comments