Skip to content

Commit

Permalink
Fix JDK 21 for Centos6
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperxpro committed Oct 26, 2023
1 parent ae7f332 commit efee5af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker/Dockerfile21.centos6
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ RUN rm -vf /usr/lib64/libstdc++.so.6.0.21-gdb.py
RUN yum -y install \
git

RUN export java_version=amazon-corretto@21.0.1.12.1 && \
RUN export java_version=amazon-corretto@21.0.1 && \
export JAVA_VERSION=$java_version && \
curl -sL https://github.com/shyiko/jabba/raw/master/install.sh | JABBA_COMMAND="install 21.0.1.12.1-custom=tgz+https://corretto.aws/downloads/resources/21.0.1.12.1/amazon-corretto-21.0.1.12.1-linux-x64.tar.gz -o /jdk" bash && \
curl -sL https://github.com/shyiko/jabba/raw/master/install.sh | JABBA_COMMAND="install 21.0.1-custom=tgz+https://corretto.aws/downloads/resources/21.0.1.12.1/amazon-corretto-21.0.1.12.1-linux-x64.tar.gz -o /jdk" bash && \
echo 'export JAVA_HOME="/jdk"' >> ~/.bashrc && \
echo 'PATH=/jdk/bin:$PATH' >> ~/.bashrc

Expand Down

0 comments on commit efee5af

Please sign in to comment.