Skip to content

Commit

Permalink
Merge pull request #248 from eclipse-cbi/use-adoptium-api
Browse files Browse the repository at this point in the history
Use Adoptium API to download JDK11
  • Loading branch information
fredg02 authored Feb 6, 2023
2 parents cad8afe + cb52170 commit 1882ddb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions webservice/deployment.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,9 @@ local newDeployment(name, artifactId, version) = {
RUN mkdir -p /opt/java/openjdk11 \
&& cd /opt/java/openjdk11 \
&& wget "https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.18%%2B10/OpenJDK11U-jdk_x64_linux_hotspot_11.0.18_10.tar.gz" \
&& tar xzf OpenJDK11*.tar.gz --strip-components=1
&& curl -L -o temurin11.tar.gz 'https://api.adoptium.net/v3/binary/latest/11/ga/linux/x64/jdk/hotspot/normal/eclipse?project=jdk' \
&& tar xzf temurin11.tar.gz --strip-components=1 \
&& rm -f temurin11.tar.gz
ENTRYPOINT [ "java", \
"-showversion", "-XshowSettings:vm", "-Xmx512m", \
Expand All @@ -236,4 +237,4 @@ local newDeployment(name, artifactId, version) = {
};
{
newDeployment:: newDeployment,
}
}

0 comments on commit 1882ddb

Please sign in to comment.