Skip to content

Commit

Permalink
chore: bump amazon corretto windows
Browse files Browse the repository at this point in the history
SHAs and java versions
  • Loading branch information
carlossg committed May 27, 2024
1 parent 9c50f1c commit 7ea04a7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions amazoncorretto-11-windowsservercore/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPref

ARG zip=amazon-corretto-11-x64-windows-jdk.zip
ARG uri=https://corretto.aws/downloads/latest
ARG hash=fedd8fdd3bff520e455c1210fabcad1408e5eafbd5fcdec5836f6701a418d57b
ARG hash=519401037ff4d571f92f3fa471e577499b461fe8fd9cffedf983333f041f159a

RUN Invoke-WebRequest -Uri $('{0}/{1}' -f $env:uri,$env:zip) -OutFile C:/$env:zip ; `
if((Get-FileHash C:/$env:zip -Algorithm SHA256).Hash.ToLower() -ne $env:hash) { exit 1 } ; `
Expand-Archive -Path C:/$env:zip -Destination C:/ProgramData ; `
Remove-Item C:/${env:zip}

ENV JAVA_HOME=C:/ProgramData/jdk11.0.22_7
ENV JAVA_HOME=C:/ProgramData/jdk11.0.23_9

ARG USER_HOME_DIR="C:/Users/ContainerUser"
ARG MAVEN_VERSION=3.9.6
Expand Down
4 changes: 2 additions & 2 deletions amazoncorretto-17-windowsservercore/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPref

ARG zip=amazon-corretto-17-x64-windows-jdk.zip
ARG uri=https://corretto.aws/downloads/latest
ARG hash=5ad854ad8ae988958244c635bdc03f583b4406f8b3995829a268c43f08d5ce39
ARG hash=e785e2cbfedb33399ddde232bf3e2e8cf1a3cc3c811c5bbd2989fc6d6bea8c47

RUN Invoke-WebRequest -Uri $('{0}/{1}' -f $env:uri,$env:zip) -OutFile C:/$env:zip ; `
if((Get-FileHash C:/$env:zip -Algorithm SHA256).Hash.ToLower() -ne $env:hash) { exit 1 } ; `
Expand-Archive -Path C:/$env:zip -Destination C:/ProgramData ; `
Remove-Item C:/${env:zip}

ENV JAVA_HOME=C:/ProgramData/jdk17.0.10_7
ENV JAVA_HOME=C:/ProgramData/jdk17.0.11_9

ARG USER_HOME_DIR="C:/Users/ContainerUser"
ARG MAVEN_VERSION=3.9.6
Expand Down
4 changes: 2 additions & 2 deletions amazoncorretto-8-windowsservercore/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPref

ARG zip=amazon-corretto-8-x64-windows-jdk.zip
ARG uri=https://corretto.aws/downloads/latest
ARG hash=460b08c44b89ee82ed206374629a3c9422b2ce13b314bc335c910a3d564ee36e
ARG hash=ac7a2c1020b18c74c0155efac525b36827468e95bf343a721e12027066c16633

RUN Invoke-WebRequest -Uri $('{0}/{1}' -f $env:uri,$env:zip) -OutFile C:/$env:zip ; `
if((Get-FileHash C:/$env:zip -Algorithm SHA256).Hash.ToLower() -ne $env:hash) { exit 1 } ; `
Expand-Archive -Path C:/$env:zip -Destination C:/ProgramData ; `
Remove-Item C:/${env:zip}

ENV JAVA_HOME=C:/ProgramData/jdk1.8.0_402
ENV JAVA_HOME=C:/ProgramData/jdk1.8.0_412

ARG USER_HOME_DIR="C:/Users/ContainerUser"
ARG MAVEN_VERSION=3.9.6
Expand Down

0 comments on commit 7ea04a7

Please sign in to comment.