Open markiewb opened 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'
Thanks, good to know since https://github.com/anapsix/docker-alpine-java still does not support dcevm11.
Useful if you like to extend an existing JDK-Docker image with DCEVM.