Skip to content

Commit

Permalink
Merge pull request #115 from ananjaykumar2/update/client-version
Browse files Browse the repository at this point in the history
Update/client version
  • Loading branch information
Gokul-KG authored Jan 15, 2025
2 parents 5e28b7b + 61297e0 commit 20a6e1d
Show file tree
Hide file tree
Showing 5 changed files with 512 additions and 488 deletions.
4 changes: 4 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ pipeline {
stage('Unit Tests and Code Coverage Test'){
steps{
script{
sh 'sudo update-alternatives --set java /usr/lib/jvm/java-21-openjdk-amd64/bin/java'
sh 'cp /home/ubuntu/configs/rs-proxy-config-test.json ./secrets/all-verticles-configs/config-test.json'
catchError(buildResult: 'SUCCESS', stageResult: 'UNSTABLE') {
sh "mvn clean test checkstyle:checkstyle pmd:pmd"
Expand Down Expand Up @@ -61,6 +62,7 @@ pipeline {
}
cleanup{
script{
sh 'sudo update-alternatives --set java /usr/lib/jvm/java-11-openjdk-amd64/bin/java'
sh 'sudo rm -rf target/'
}
}
Expand All @@ -70,6 +72,7 @@ pipeline {
stage('Start RS-Proxy for Integration Testing'){
steps{
script{
sh 'sudo update-alternatives --set java /usr/lib/jvm/java-21-openjdk-amd64/bin/java'
sh 'scp src/test/resources/ADEX-Resource-Proxy-Server-Consumer-APIs.postman_collection.json jenkins@jenkins-master:/var/lib/jenkins/iudx/rs-proxy/Newman/'
sh 'docker compose -f docker-compose.test.yml up -d integTest'
sh 'sleep 30'
Expand Down Expand Up @@ -110,6 +113,7 @@ pipeline {
}
cleanup{
script{
sh 'sudo update-alternatives --set java /usr/lib/jvm/java-11-openjdk-amd64/bin/java'
sh 'docker compose -f docker-compose.test.yml down --remove-orphans'
}
}
Expand Down
4 changes: 2 additions & 2 deletions docker/depl.dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ARG VERSION="0.0.1-SNAPSHOT"

# Using maven base image in builder stage to build Java code.
FROM maven:3-eclipse-temurin-11 as builder
FROM maven:3-eclipse-temurin-21-jammy as builder

WORKDIR /usr/share/app
COPY pom.xml .
Expand All @@ -12,7 +12,7 @@ COPY src src
RUN mvn clean package -Dmaven.test.skip=true

# Java Runtime as the base for final image
FROM eclipse-temurin:11-jre-focal
FROM eclipse-temurin:21.0.5_11-jre-jammy

ARG VERSION
ENV JAR="iudx.rs.proxy-cluster-${VERSION}-fat.jar"
Expand Down
4 changes: 2 additions & 2 deletions docker/dev.dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ARG VERSION="0.0.1-SNAPSHOT"

# Using maven base image in builder stage to build Java code.
FROM maven:3-eclipse-temurin-11 as builder
FROM maven:3-eclipse-temurin-21-jammy as builder

WORKDIR /usr/share/app
COPY pom.xml .
Expand All @@ -12,7 +12,7 @@ COPY src src
RUN mvn clean package -Dmaven.test.skip=true

# Java Runtime as the base for final image
FROM eclipse-temurin:11-jre-focal
FROM eclipse-temurin:21.0.5_11-jre-jammy

ARG VERSION
ENV JAR="iudx.rs.proxy-dev-${VERSION}-fat.jar"
Expand Down
Loading

0 comments on commit 20a6e1d

Please sign in to comment.