-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathjdk-8-linux.cmd
9 lines (8 loc) · 1010 Bytes
/
jdk-8-linux.cmd
1
2
3
4
5
6
7
8
9
@REM Create output directory; abort if directory cannot be created (e.g. when file with this name exists)
IF NOT EXIST "databases/" mkdir databases || EXIT 1
@REM Build image, then start container (with `--rm` to remove it once finished)
@REM Note: https://hg.openjdk.java.net/jdk8/jdk8/raw-file/tip/README-builds.html#bootjdk says JDK 7 should
@REM be used as boot JDK, but using JDK 8 seems to work as well
@REM Uses Adoptium repository because https://github.com/openjdk/jdk8u is not updated anymore
@REM EDIT: Apparently openjdk/jdk8u is updated again?
docker build .. -t codeql-jdk:8-linux --build-arg BOOT_JDK_URL=https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u345-b01/OpenJDK8U-jdk_x64_linux_hotspot_8u345b01.tar.gz && docker container run --rm --name "codeql-jdk-8-linux-db-build" --mount type=bind,source="%cd%/databases",target=/codeql-jdk/codeql-jdk-databases codeql-jdk:8-linux --jdk-git-repo https://github.com/adoptium/jdk8u --make-target all --jdk-version-name 8-linux %*