Skip to content

Commit edad5c3

Browse files
committed
Apply fixes for Corretto runtime versions
1 parent 1bd6ad2 commit edad5c3

File tree

6 files changed

+13
-17
lines changed

6 files changed

+13
-17
lines changed

Diff for: al2/aarch64/standard/2.0/runtimes.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ runtimes:
4444
default:
4545
commands:
4646
- echo "Installing custom Corretto(OpenJDK) version $VERSION ..."
47-
- yum -y install java-$VERSION-amazon-corretto-devel
4847
- export JAVA_HOME="/usr/lib/jvm/java-$VERSION-amazon-corretto"
49-
- export JRE_HOME="/usr/lib/jvm/java-$VERSION-amazon-corretto"
50-
- export JDK_HOME="/usr/lib/jvm/java-$VERSION-amazon-corretto"
48+
- export JRE_HOME=$JAVA_HOME
49+
- export JDK_HOME=$JAVA_HOME
50+
- yum --disablerepo="*" --enablerepo="AmazonCorretto" -y install java-$VERSION-amazon-corretto-devel
5151
- |-
5252
for tool_path in "$JAVA_HOME"/bin/*;
5353
do tool=`basename "$tool_path"`;

Diff for: al2/aarch64/standard/3.0/runtimes.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,10 @@ runtimes:
7070
default:
7171
commands:
7272
- echo "Installing custom Corretto(OpenJDK) version $VERSION ..."
73-
- yum -y install java-$VERSION-amazon-corretto-devel
7473
- export JAVA_HOME="/usr/lib/jvm/java-$VERSION-amazon-corretto"
75-
- export JRE_HOME="/usr/lib/jvm/java-$VERSION-amazon-corretto"
76-
- export JDK_HOME="/usr/lib/jvm/java-$VERSION-amazon-corretto"
74+
- export JRE_HOME=$JAVA_HOME
75+
- export JDK_HOME=$JAVA_HOME
76+
- yum --disablerepo="*" --enablerepo="AmazonCorretto" -y install java-$VERSION-amazon-corretto-devel
7777
- |-
7878
for tool_path in "$JAVA_HOME"/bin/*;
7979
do tool=`basename "$tool_path"`;

Diff for: al2/x86_64/standard/4.0/runtimes.yml

+2-5
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,11 @@ runtimes:
2525
- |
2626
if [ "$VERSION" = "8" ]; then
2727
JAVA_VERSION="1.8.0"
28-
JAVA_HOME="/usr/lib/jvm/java-$JAVA_VERSION-amazon-corretto.x86_64"
29-
else
30-
JAVA_HOME="/usr/lib/jvm/java-$JAVA_VERSION-amazon-corretto"
3128
fi
32-
- export JAVA_HOME
29+
- export JAVA_HOME="/usr/lib/jvm/java-$JAVA_VERSION-amazon-corretto"
3330
- export JRE_HOME=$JAVA_HOME
3431
- export JDK_HOME=$JAVA_HOME
35-
- yum -y install java-$JAVA_VERSION-amazon-corretto-devel
32+
- yum --disablerepo="*" --enablerepo="AmazonCorretto" -y install java-$JAVA_VERSION-amazon-corretto-devel
3633
- |
3734
for tool_path in "$JAVA_HOME"/bin/*; do
3835
tool=`basename "$tool_path"`

Diff for: al2/x86_64/standard/5.0/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ RUN set -ex \
3636
perl-DBI perl-HTTP-Date perl-TimeDate perl-YAML-LibYAML \
3737
postgresql-devel procps-ng python-configobj readline-devel rsync sgml-common \
3838
subversion-perl tar tcl tk vim wget which xfsprogs xmlto xorg-x11-server-Xvfb xz-devel \
39-
amazon-ecr-credential-helper git-lfs acl \
39+
amazon-ecr-credential-helper git-lfs acl glibc-langpack-en glibc-common \
4040
&& rm /etc/yum.repos.d/mono-centos7-stable.repo
4141

4242
RUN useradd codebuild-user

Diff for: al2/x86_64/standard/5.0/runtimes.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,10 @@ runtimes:
6666
default:
6767
commands:
6868
- echo "Installing custom Corretto(OpenJDK) version $VERSION ..."
69-
- yum -y install java-$VERSION-amazon-corretto-devel.x86_64
7069
- export JAVA_HOME="/usr/lib/jvm/java-$VERSION-amazon-corretto"
71-
- export JRE_HOME="/usr/lib/jvm/java-$VERSION-amazon-corretto"
72-
- export JDK_HOME="/usr/lib/jvm/java-$VERSION-amazon-corretto"
70+
- export JRE_HOME=$JAVA_HOME
71+
- export JDK_HOME=$JAVA_HOME
72+
- yum --disablerepo="*" --enablerepo="AmazonCorretto" -y install java-$VERSION-amazon-corretto-devel
7373
- |-
7474
for tool_path in "$JAVA_HOME"/bin/*;
7575
do tool=`basename "$tool_path"`;

Diff for: ubuntu/standard/7.0/Dockerfile

+1-2
Original file line numberDiff line numberDiff line change
@@ -483,8 +483,7 @@ RUN set -ex \
483483
ENV PATH "/usr/local/bin/sbt/bin:$PATH"
484484
RUN sbt version -Dsbt.rootdir=true
485485
# Cleanup
486-
RUN rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/* \
487-
&& apt-get clean
486+
RUN rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/* && apt-get clean && apt-get update
488487
#**************** END JAVA ****************************************************
489488

490489
#=======================End of stage: runtimes =================

0 commit comments

Comments
 (0)