From f96a9ca1d3d95521c2fbff525967e6890d7908b8 Mon Sep 17 00:00:00 2001 From: psy Date: Tue, 7 Jun 2022 15:40:05 +0200 Subject: [PATCH] spring-boot: fix missing folder for jdk17 (#7813) Fix missing folder for jdk17 --- projects/spring-boot/Dockerfile | 1 + projects/spring-boot/build.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/projects/spring-boot/Dockerfile b/projects/spring-boot/Dockerfile index 4cb3d863c..478299507 100644 --- a/projects/spring-boot/Dockerfile +++ b/projects/spring-boot/Dockerfile @@ -25,6 +25,7 @@ RUN git clone --depth 1 https://github.com/dvyukov/go-fuzz-corpus && \ rm -rf go-fuzz-corpus ARG java_home="/out/open-jdk-17" +RUN mkdir -p $JAVA_HOME RUN apt update && apt install -y openjdk-17-jdk ENV JAVA_HOME $java_home diff --git a/projects/spring-boot/build.sh b/projects/spring-boot/build.sh index 6e9b2d2d8..323a4a1fd 100755 --- a/projects/spring-boot/build.sh +++ b/projects/spring-boot/build.sh @@ -17,7 +17,7 @@ mv $SRC/{*.zip,*.dict} $OUT -cp -r "/usr/lib/jvm/java-17-openjdk-amd64/" "$JAVA_HOME" +cp -r "/usr/lib/jvm/java-17-openjdk-amd64/." "$JAVA_HOME" CURRENT_VERSION=$(./gradlew properties --no-daemon --console=plain | sed -nr "s/^version:\ (.*)/\1/p")