This commit is contained in:
prasannakumar 2024-06-28 10:15:35 +05:30
parent 872b2651e8
commit 298eba671d
3 changed files with 2 additions and 9 deletions

View file

@ -8,11 +8,7 @@ WORKDIR /app/petclinic
COPY target/spring-petclinic-3.3.0-SNAPSHOT.jar .
# Expose the port your application runs on
EXPOSE 8888
EXPOSE 80
# Set the entry point to run the JAR file
<<<<<<< HEAD
ENTRYPOINT ["java", "-jar", "spring-petclinic-3.3.0-SNAPSHOT.jar"]
=======
ENTRYPOINT ["java", "-jar", "spring-petclinic-3.3.0-SNAPSHOT.jar"]
>>>>>>> 8307f0d9db8a3ee317049aaf2831afada88ce7f1

3
Jenkinsfile vendored
View file

@ -85,9 +85,6 @@ pipeline {
script {
withDockerRegistry(credentialsId: 'Docker_cred', toolName: 'Docker') {
sh "docker push prasannakumarsinganamalla431/petclinic:${BUILD_NUMBER}"
sh "docker run -d prasannakumarsinganamalla431/petclinic:${BUILD_NUMBER}"
}
}
}

View file

@ -24,4 +24,4 @@ logging.level.org.springframework=INFO
# Maximum time static resources should be cached
spring.web.resources.cache.cachecontrol.max-age=12h
server.port=8888
server.port=80