Skip to content

Commit

Permalink
Fix missing Graalvm native-image binary symlink in generated containe…
Browse files Browse the repository at this point in the history
…r image (#1500)

* Fix native image tests to use latest docker image & add symlink to native image binary

* Fix typo

* Try java 11 instead

* Fix wildcard interpolation

* Remove unnecessary java dependency in test runner for graalvm

Co-authored-by: Nepomuk Seiler <[email protected]>
  • Loading branch information
kgston and muuki88 authored Feb 21, 2022
1 parent f031841 commit df35f5f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/validate-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -251,14 +251,10 @@ jobs:
key: ${{ runner.os }}-ivy-${{ hashFiles('**/*.sbt') }}
restore-keys: |
${{ runner.os }}-ivy-
- name: Set up Azul JDK 1.8 and SBT
uses: olafurpg/setup-scala@v10
with:
java-version: [email protected]
- name: Setup GraalVM environment
uses: olafurpg/setup-scala@v10
with:
java-version: graalvm@21.0.0
java-version: graalvm@22.0.0=tgz+https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.0.0.2/graalvm-ce-java11-linux-amd64-22.0.0.2.tar.gz
- name: Install native-image
run: gu install native-image
- name: Validate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,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("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("21.0.0")
graalVMNativeImageGraalVersion := Some("22.0.0.2")

0 comments on commit df35f5f

Please sign in to comment.