Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GraalVM to Java 11+ containers #165

Open
lesv opened this issue Aug 25, 2021 · 2 comments
Open

Add GraalVM to Java 11+ containers #165

lesv opened this issue Aug 25, 2021 · 2 comments
Labels
priority: p3 Desirable enhancement or fix. May not be included in next release. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.

Comments

@lesv
Copy link

lesv commented Aug 25, 2021

curl --fail --show-error --silent --location \
  https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-21.2.0/graalvm-ce-java11-linux-amd64-21.2.0.tar.gz \
  | tar xz --directory ${graalvmDir} --strip-components=1

@suztomo @Neenu1995 @dzou

@lesv lesv added type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. priority: p3 Desirable enhancement or fix. May not be included in next release. labels Aug 25, 2021
@dzou
Copy link
Contributor

dzou commented Sep 8, 2021

Full sequence of commands:

    graalvmDir=${KOKORO_ARTIFACTS_DIR}/graalvm
    mkdir ${graalvmDir}
    retry_with_backoff 3 10 \
      curl --fail --show-error --silent --location \
      https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-21.2.0/graalvm-ce-java11-linux-amd64-21.2.0.tar.gz \
      | tar xz --directory ${graalvmDir} --strip-components=1

    # Set GraalVM as the Java installation
    export JAVA_HOME=${graalvmDir}
    export PATH="$JAVA_HOME/bin:$PATH"

    # Install Native Image
    gu install native-image

@lesv
Copy link
Author

lesv commented Sep 10, 2021

It appears we might be able to use graalvm-ce-deb
update-java-alternatives --set /usr/lib/jvm/graalvm-ce-java8
Using this SOq

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: p3 Desirable enhancement or fix. May not be included in next release. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.
Projects
None yet
Development

No branches or pull requests

2 participants