Skip to content

Commit

Permalink
Apply fixes for Corretto runtime versions
Browse files Browse the repository at this point in the history
  • Loading branch information
leoherran-aws committed Oct 2, 2024
1 parent 1bd6ad2 commit edad5c3
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 17 deletions.
6 changes: 3 additions & 3 deletions al2/aarch64/standard/2.0/runtimes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ runtimes:
default:
commands:
- echo "Installing custom Corretto(OpenJDK) version $VERSION ..."
- yum -y install java-$VERSION-amazon-corretto-devel
- export JAVA_HOME="/usr/lib/jvm/java-$VERSION-amazon-corretto"
- export JRE_HOME="/usr/lib/jvm/java-$VERSION-amazon-corretto"
- export JDK_HOME="/usr/lib/jvm/java-$VERSION-amazon-corretto"
- export JRE_HOME=$JAVA_HOME
- export JDK_HOME=$JAVA_HOME
- yum --disablerepo="*" --enablerepo="AmazonCorretto" -y install java-$VERSION-amazon-corretto-devel
- |-
for tool_path in "$JAVA_HOME"/bin/*;
do tool=`basename "$tool_path"`;
Expand Down
6 changes: 3 additions & 3 deletions al2/aarch64/standard/3.0/runtimes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@ runtimes:
default:
commands:
- echo "Installing custom Corretto(OpenJDK) version $VERSION ..."
- yum -y install java-$VERSION-amazon-corretto-devel
- export JAVA_HOME="/usr/lib/jvm/java-$VERSION-amazon-corretto"
- export JRE_HOME="/usr/lib/jvm/java-$VERSION-amazon-corretto"
- export JDK_HOME="/usr/lib/jvm/java-$VERSION-amazon-corretto"
- export JRE_HOME=$JAVA_HOME
- export JDK_HOME=$JAVA_HOME
- yum --disablerepo="*" --enablerepo="AmazonCorretto" -y install java-$VERSION-amazon-corretto-devel
- |-
for tool_path in "$JAVA_HOME"/bin/*;
do tool=`basename "$tool_path"`;
Expand Down
7 changes: 2 additions & 5 deletions al2/x86_64/standard/4.0/runtimes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,11 @@ runtimes:
- |
if [ "$VERSION" = "8" ]; then
JAVA_VERSION="1.8.0"
JAVA_HOME="/usr/lib/jvm/java-$JAVA_VERSION-amazon-corretto.x86_64"
else
JAVA_HOME="/usr/lib/jvm/java-$JAVA_VERSION-amazon-corretto"
fi
- export JAVA_HOME
- export JAVA_HOME="/usr/lib/jvm/java-$JAVA_VERSION-amazon-corretto"
- export JRE_HOME=$JAVA_HOME
- export JDK_HOME=$JAVA_HOME
- yum -y install java-$JAVA_VERSION-amazon-corretto-devel
- yum --disablerepo="*" --enablerepo="AmazonCorretto" -y install java-$JAVA_VERSION-amazon-corretto-devel
- |
for tool_path in "$JAVA_HOME"/bin/*; do
tool=`basename "$tool_path"`
Expand Down
2 changes: 1 addition & 1 deletion al2/x86_64/standard/5.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ RUN set -ex \
perl-DBI perl-HTTP-Date perl-TimeDate perl-YAML-LibYAML \
postgresql-devel procps-ng python-configobj readline-devel rsync sgml-common \
subversion-perl tar tcl tk vim wget which xfsprogs xmlto xorg-x11-server-Xvfb xz-devel \
amazon-ecr-credential-helper git-lfs acl \
amazon-ecr-credential-helper git-lfs acl glibc-langpack-en glibc-common \
&& rm /etc/yum.repos.d/mono-centos7-stable.repo

RUN useradd codebuild-user
Expand Down
6 changes: 3 additions & 3 deletions al2/x86_64/standard/5.0/runtimes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ runtimes:
default:
commands:
- echo "Installing custom Corretto(OpenJDK) version $VERSION ..."
- yum -y install java-$VERSION-amazon-corretto-devel.x86_64
- export JAVA_HOME="/usr/lib/jvm/java-$VERSION-amazon-corretto"
- export JRE_HOME="/usr/lib/jvm/java-$VERSION-amazon-corretto"
- export JDK_HOME="/usr/lib/jvm/java-$VERSION-amazon-corretto"
- export JRE_HOME=$JAVA_HOME
- export JDK_HOME=$JAVA_HOME
- yum --disablerepo="*" --enablerepo="AmazonCorretto" -y install java-$VERSION-amazon-corretto-devel
- |-
for tool_path in "$JAVA_HOME"/bin/*;
do tool=`basename "$tool_path"`;
Expand Down
3 changes: 1 addition & 2 deletions ubuntu/standard/7.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -483,8 +483,7 @@ RUN set -ex \
ENV PATH "/usr/local/bin/sbt/bin:$PATH"
RUN sbt version -Dsbt.rootdir=true
# Cleanup
RUN rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/* \
&& apt-get clean
RUN rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/* && apt-get clean && apt-get update
#**************** END JAVA ****************************************************

#=======================End of stage: runtimes =================
Expand Down

0 comments on commit edad5c3

Please sign in to comment.