TravaOpenJDK / trava-jdk-11-dcevm

dcevm-11 built on Travis
Apache License 2.0
407 stars 56 forks source link

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

Open markiewb opened 5 years ago

markiewb commented 5 years ago

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 commented 5 years ago

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