Skip to content

Commit

Permalink
Merge pull request #635 from AndreKurait/FixDeprecatedImage
Browse files Browse the repository at this point in the history
Update base java image to amazoncorretto:11-al2023-headless
  • Loading branch information
AndreKurait authored May 9, 2024
2 parents 4fe92d0 + eee8d47 commit 995d240
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion RFS/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Using same base image as other Java containers in this repo
FROM openjdk:11-jre
FROM amazoncorretto:11-al2023-headless
# Requires Gradle to genearte runtime jars initially
COPY ./build/runtimeJars /rfs-app/jars
WORKDIR /rfs-app
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,8 @@ class CommonUtils {
from "migrations/${dependentDockerImageName}:${hashNonce}"
dependsOn "buildDockerImage_${baseImageOverrideProjectName}"
runCommand("sed -i -e \"s|mirrorlist=|#mirrorlist=|g\" /etc/yum.repos.d/CentOS-* ; sed -i -e \"s|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g\" /etc/yum.repos.d/CentOS-*")
runCommand("yum -y install nmap-ncat")
} else {
from 'openjdk:11-jre'
runCommand("apt-get update && apt-get install -y netcat")
from 'amazoncorretto:11-al2023-headless'
}

copyFile("jars", "/jars")
Expand Down

0 comments on commit 995d240

Please sign in to comment.