Skip to content

Commit

Permalink
XDOCKER-316: Set java 17 to be the default java version in the docker…
Browse files Browse the repository at this point in the history
… build image
  • Loading branch information
vmassol committed Mar 13, 2024
1 parent a9c6b79 commit d0ed9f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -140,15 +140,15 @@ RUN wget --no-check-certificate https://archive.apache.org/dist/maven/maven-3/$M
# - Java8 to be available at /home/hudsonagent/java8
# - Java7 to be available at /home/hudsonagent/java7
# - Maven to be available at /home/hudsonagent/maven
# - Default java to be Java 11
# - Default java to be Java 17
# - "mvn" to be on the path
RUN mkdir -p /home/hudsonagent && \
ln -fs $JAVA_HOME /home/hudsonagent/java11 && \
ln -fs /usr/lib/jvm/zulu17 /home/hudsonagent/java17 && \
ln -fs /usr/lib/jvm/jdk-14 /home/hudsonagent/java14 && \
ln -fs /usr/lib/jvm/jdk8u312-b07 /home/hudsonagent/java8 && \
ln -fs /usr/lib/jvm/zulu-7-amd64 /home/hudsonagent/java7 && \
ln -fs /home/hudsonagent/java11 /home/hudsonagent/java && \
ln -fs /home/hudsonagent/java17 /home/hudsonagent/java && \
ln -fs /home/hudsonagent/java/bin/java /usr/bin/java && \
ln -fs /root/apache-maven-$MAVEN_VERSION /home/hudsonagent/maven && \
# Use /etc/profile.d so that Maven is in all paths for all shells (sh, bash, etc), when using login, for example
Expand Down

0 comments on commit d0ed9f6

Please sign in to comment.