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

Fixes feature graalvm #35

Merged
merged 3 commits into from
Oct 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 5 additions & 9 deletions src/graalvm/devcontainer-feature.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"id": "graalvm",
"version": "1.0.5",
"version": "1.0.6",
"name": "Graal VM",
"installsAfter": [
"ghcr.io/devcontainers/features/common-utils",
Expand All @@ -14,15 +14,11 @@
"java": {
"type": "string",
"enum": [
"17",
"20"
"21",
"23"
],
"default": "17",
"description": "Java version to install. Valid values are 11, 17"
},
"components": {
"type": "string",
"default": "native-image"
"default": "21",
"description": "Java version to install. Valid values are 21, 23; if further versions are published, other values will work as well."
}
},
"customizations": {
Expand Down
6 changes: 1 addition & 5 deletions src/graalvm/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,4 @@ JAVA_SHA256=$(curl "$JAVA_PKG".sha256)
curl --output /tmp/jdk.tgz "$JAVA_PKG"
echo "$JAVA_SHA256 */tmp/jdk.tgz" | sha256sum -c
mkdir -p "$JAVA_HOME"
tar --extract --file /tmp/jdk.tgz --directory "$JAVA_HOME" --strip-components 1

if [[ -n "$COMPONENTS" ]]; then
gu install $COMPONENTS
fi
tar --extract --file /tmp/jdk.tgz --directory "$JAVA_HOME" --strip-components 1
Loading