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

Additonal script for "How to use DCEVM image in existing jdk-11" #13

Open
markiewb opened this issue Apr 13, 2019 · 1 comment
Open

Comments

@markiewb
Copy link

Useful if you like to extend an existing JDK-Docker image with DCEVM.

#!/bin/sh

function download() {
    url=$1
    libToFind=$2
    filename=${url##*/}

    echo "Downloading $url as $filename"
    wget --no-verbose -O $filename $url
    
    pathWithinArchive=`tar -tf $filename | grep $libToFind` && echo "Found $libToFind at $pathWithinArchive in $filename"
    
    echo "Extracting $pathWithinArchive"
    tar -O -xf $filename $pathWithinArchive > $libToFind
    
    echo "TODO move $libToFind to the correct directory"
}
download 'https://github.com/TravaOpenJDK/trava-jdk-11-dcevm/releases/download/dcevm-11.0.1%2B8/java11-openjdk-dcevm-osx.tar.gz'   'libjvm.dylib'
download 'https://github.com/TravaOpenJDK/trava-jdk-11-dcevm/releases/download/dcevm-11.0.1%2B8/java11-openjdk-dcevm-linux.tar.gz' 'libjvm.so'
download 'https://github.com/TravaOpenJDK/trava-jdk-11-dcevm/releases/download/dcevm-11.0.1%2B8/java11-openjdk-dcevm-windows.zip'  'jvm.dll'
@skybber
Copy link
Contributor

skybber commented Apr 13, 2019

Thanks, good to know since https://github.com/anapsix/docker-alpine-java still does not support dcevm11.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants