-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
79 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
be-java-springboot/files/gradle/wrapper/gradle-wrapper.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.2-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
--- | ||
name: OpenJDK | ||
description: "OpenJDK is a free and open-source implementation of the Java Platform, Standard Edition. Technologies: Spring Boot 2.1, OpenJDK 17" | ||
description: "OpenJDK is a free and open-source implementation of the Java Platform, Standard Edition. Technologies: Spring Boot 3.2.0, OpenJDK 21" | ||
supplier: https://openjdk.java.net/ | ||
version: 4.x | ||
type: ods |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ LABEL com.redhat.component="jenkins-agent-jdk-35-rhel7-container" \ | |
name="openshift4/jenkins-agent-jdk-35-rhel7" \ | ||
architecture="x86_64" \ | ||
io.k8s.display-name="Jenkins Agent JDK" \ | ||
io.k8s.description="The jenkins agent jdk image has java 11 and 17 installed on top of the jenkins agent base image." \ | ||
io.k8s.description="The jenkins agent jdk image has java 11, 17 and 21 installed on top of the jenkins agent base image." \ | ||
io.openshift.tags="openshift,jenkins,agent,jdk" \ | ||
maintainer="[email protected]" | ||
|
||
|
@@ -31,11 +31,12 @@ RUN sh -c "echo 'rhel' > /etc/yum/vars/osname" && \ | |
sed -i 's@^\s*enabled\s*=.*$@enabled = 0@g' /etc/yum.repos.d/adoptium-temurin.repo && \ | ||
grep -ri '^\s*\(name\|enabled\)\s*=' /etc/yum.repos.d/* | ||
|
||
# Install Java 11, 17 and binutils | ||
# Note: use java scripts are executed to test the scripts but also use-j11.sh in called 2nd place to set is as default version | ||
# Install Java 11, 17, 21 and binutils | ||
# Note: use java scripts are executed to test the scripts but also use-j11.sh in called 3nd place to set is as default version | ||
RUN yum -y --nobest --skip-broken update && \ | ||
yum install -y java-11-openjdk-devel && \ | ||
yum install -y --enablerepo Adoptium temurin-17-jdk && \ | ||
yum install -y --enablerepo Adoptium temurin-21-jdk && \ | ||
yum install -y binutils && \ | ||
yum updateinfo -y && \ | ||
yum repolist -y && \ | ||
|
@@ -48,10 +49,11 @@ RUN chmod +x /usr/local/bin/use-j*.sh && \ | |
chmod ugo+s /usr/local/bin/use-j*.sh && \ | ||
sh -c 'chmod ugo+s $(which alternatives)' && \ | ||
ls -la /usr/local/bin/use-j*.sh && \ | ||
echo "--- STARTS JDK 11/17 TESTS ---" && \ | ||
echo "--- STARTS JDK 11/17/21 TESTS ---" && \ | ||
use-j21.sh && \ | ||
use-j17.sh && \ | ||
use-j11.sh && \ | ||
echo "--- ENDS JDK 11/17 TESTS ---" && \ | ||
echo "--- ENDS JDK 11/17/21 TESTS ---" && \ | ||
## Needed in case base and jdk agents has a mismatch in java versions | ||
rm -fv /etc/profile.d/set-default-java.sh && \ | ||
echo "export JAVA_HOME=/usr/lib/jvm/$(ls -lah /usr/lib/jvm | grep "java-11-openjdk-11.*\.x86_64" | awk '{print $NF}' | head -1)" >> /etc/profile.d/set-default-java.sh && \ | ||
|
@@ -89,7 +91,7 @@ RUN chown -R 1001:0 $HOME && \ | |
chmod -c 666 /etc/pki/ca-trust/extracted/java/cacerts && \ | ||
ls -la /etc/pki/ca-trust/extracted/java/cacerts | ||
|
||
# temporary java17 switch bugfix | ||
# temporary java version switch bugfix | ||
USER root | ||
RUN chgrp -R 0 /var/lib/alternatives && \ | ||
chmod -R g=u /var/lib/alternatives && \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#!/bin/bash | ||
|
||
JAVA_HOME_FOLDER=$(ls -lah /usr/lib/jvm | grep "temurin-21" | awk '{print $NF}' | head -1) | ||
JAVA_VERSION="21" | ||
|
||
function msg_and_exit() { | ||
echo "ERROR: ${1}" | ||
exit 1 | ||
} | ||
|
||
echo "Switching to java ${JAVA_VERSION}:" | ||
JAVA_HOME="/usr/lib/jvm/${JAVA_HOME_FOLDER}" | ||
|
||
alternatives --set java ${JAVA_HOME}/bin/java || \ | ||
msg_and_exit "Cannot configure java ${JAVA_VERSION} as the alternative to use for java." | ||
java -version 2>&1 | grep -q "\s\+${JAVA_VERSION}" || msg_and_exit "Java version is not ${JAVA_VERSION}." | ||
|
||
if [ -x ${JAVA_HOME}/bin/javac ]; then | ||
alternatives --set javac ${JAVA_HOME}/bin/javac || \ | ||
msg_and_exit "Cannot configure javac ${JAVA_VERSION} as the alternative to use for javac." | ||
javac -version 2>&1 | grep -q "\s\+${JAVA_VERSION}" || msg_and_exit "Javac version is not ${JAVA_VERSION}." | ||
else | ||
echo "WARNING: Not found binary for javac in path ${JAVA_HOME}/bin/javac " | ||
fi | ||
|
||
java -version 2>&1 | ||
if which 'javac'; then | ||
javac -version 2>&1 | ||
else | ||
echo "WARNING: Binary javac is not available." | ||
fi | ||
|
||
if [ -d ${JAVA_HOME}/bin/ ]; then | ||
export JAVA_HOME | ||
else | ||
msg_and_exit "Cannot configure JAVA_HOME environment variable to ${JAVA_HOME}" | ||
fi | ||
echo "JAVA_HOME: $JAVA_HOME" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.2-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
--- | ||
name: e2e-spock-geb | ||
description: "Spock is a highly expressive testing and specification framework for Java and Groovy. Geb is a browser automation solution for functional/web/acceptance testing. Technologies: Spock 1.3, Geb 3.2, Selenium 3.141" | ||
description: "Spock is a highly expressive testing and specification framework for Java and Groovy. Geb is a browser automation solution for functional/web/acceptance testing. Technologies: Spock 2.3-groovy-4.0, Geb 7.0, Selenium 4.15.0" | ||
supplier: http://spockframework.org | ||
version: 4.x | ||
type: ods-test |