Skip to content

Commit

Permalink
Fix GraalVM container pull URL #1644
Browse files Browse the repository at this point in the history
  • Loading branch information
utkuaydn committed Dec 8, 2024
1 parent c882ac2 commit c22f8a0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ object GraalVMNativeImagePlugin extends AutoPlugin {

import autoImport._

private val GraalVMBaseImage = "ghcr.io/graalvm/graalvm-ce"
private val GraalVMBaseImage = "ghcr.io/graalvm/graalvm-community"

override def requires: Plugins = JavaAppPackaging

Expand Down Expand Up @@ -191,7 +191,7 @@ object GraalVMNativeImagePlugin extends AutoPlugin {
Cmd("FROM", baseImage),
Cmd("WORKDIR", "/opt/graalvm"),
ExecCmd("RUN", "gu", "install", "native-image"),
ExecCmd("RUN", "sh", "-c", "ln -s /opt/graalvm-ce-*/bin/native-image /usr/local/bin/native-image"),
ExecCmd("RUN", "sh", "-c", "ln -s /opt/graalvm-community-*/bin/native-image /usr/local/bin/native-image"),
ExecCmd("ENTRYPOINT", "native-image")
).makeContent

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ enablePlugins(GraalVMNativeImagePlugin)

name := "docker-test"
version := "0.1.0"
graalVMNativeImageGraalVersion := Some("22.3.3")
graalVMNativeImageGraalVersion := Some("23.0.1")
6 changes: 3 additions & 3 deletions src/sphinx/formats/graalvm-native-image.rst
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,14 @@ customized using the following settings.
``graalVMNativeImageGraalVersion``
Setting this enables generating a Docker container to build the native image, and then building it in that container.
It must correspond to a valid version of the
`Oracle GraalVM Community Edition Docker image <https://github.com/graalvm/container/pkgs/container/graalvm-ce/>`_. This setting has no
`Oracle GraalVM Community Edition Docker image <https://github.com/graalvm/container/pkgs/container/graalvm-community/>`_. This setting has no
effect if ``containerBuildImage`` is explicitly set.

For example:

.. code-block:: scala
graalVMNativeImageGraalVersion := Some("19.1.1")
graalVMNativeImageGraalVersion := Some("23.0.1")
``containerBuildImage``

Expand All @@ -83,7 +83,7 @@ customized using the following settings.

.. code-block:: scala
containerBuildImage := Some("my-docker-username/graalvm-ce-native-image:19.1.1")
containerBuildImage := Some("my-docker-username/graalvm-community-native-image:23.0.1")
A helper is provided to automatically generate a container build image from a base image that contains a Graal
installation. For example, if you have a GraalVM enterprise edition docker image, you can turn it into a native
Expand Down

0 comments on commit c22f8a0

Please sign in to comment.