Skip to content

Commit c22f8a0

Browse files
committed
Fix GraalVM container pull URL #1644
1 parent c882ac2 commit c22f8a0

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/main/scala/com/typesafe/sbt/packager/graalvmnativeimage/GraalVMNativeImagePlugin.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ object GraalVMNativeImagePlugin extends AutoPlugin {
2828

2929
import autoImport._
3030

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

3333
override def requires: Plugins = JavaAppPackaging
3434

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

src/sbt-test/graalvm-native-image/docker-native-image/build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ enablePlugins(GraalVMNativeImagePlugin)
22

33
name := "docker-test"
44
version := "0.1.0"
5-
graalVMNativeImageGraalVersion := Some("22.3.3")
5+
graalVMNativeImageGraalVersion := Some("23.0.1")

src/sphinx/formats/graalvm-native-image.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,14 @@ customized using the following settings.
6767
``graalVMNativeImageGraalVersion``
6868
Setting this enables generating a Docker container to build the native image, and then building it in that container.
6969
It must correspond to a valid version of the
70-
`Oracle GraalVM Community Edition Docker image <https://github.com/graalvm/container/pkgs/container/graalvm-ce/>`_. This setting has no
70+
`Oracle GraalVM Community Edition Docker image <https://github.com/graalvm/container/pkgs/container/graalvm-community/>`_. This setting has no
7171
effect if ``containerBuildImage`` is explicitly set.
7272

7373
For example:
7474

7575
.. code-block:: scala
7676
77-
graalVMNativeImageGraalVersion := Some("19.1.1")
77+
graalVMNativeImageGraalVersion := Some("23.0.1")
7878
7979
``containerBuildImage``
8080

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

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

0 commit comments

Comments
 (0)