From d2a6f965ca992ef3aef1d3a470808d8736aad861 Mon Sep 17 00:00:00 2001 From: nareshcloud Date: Sat, 8 Apr 2023 22:12:55 -0400 Subject: [PATCH 1/2] Created Dockerfile --- Dockerfile | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..4e4c8e8b3 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +FROM anapsix/alpine-java +LABEL maintainer="nareshkalluri.99@gmail.com" +COPY /target/spring-petclinic-1.5.1.jar /home/spring-petclinic-1.5.1.jar +FROM anapsix/alpine-java +LABEL maintainer="shanem@liatrio.com" +COPY /target/spring-petclinic-1.5.1.jar /home/spring-petclinic-1.5.1.jar +CMD ["java","-jar","/home/spring-petclinic-1.5.1.jar"] From a7c02211886a02327f5856a0fa6794a14e879832 Mon Sep 17 00:00:00 2001 From: nareshcloud Date: Sat, 8 Apr 2023 22:14:17 -0400 Subject: [PATCH 2/2] created Jenkinsfile with Maven Install Stage --- Jenkinsfile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 000000000..802f5fb2c --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,16 @@ +#!groovy +pipeline { + agent none + stages { + stage('Maven Install') { + agent { + docker { + image 'maven:3.5.0' + } + } + steps { + sh 'mvn clean install' + } + } + } +}