From 923f85961f09b7de45b57a79729d863dd9a6aa33 Mon Sep 17 00:00:00 2001 From: sunilsdeshpande <127104397+sunilsdeshpande@users.noreply.github.com> Date: Sat, 8 Jul 2023 21:33:36 +0530 Subject: [PATCH 1/5] Create sunil sd dummy file --- sunil sd dummy file | 1 + 1 file changed, 1 insertion(+) create mode 100644 sunil sd dummy file diff --git a/sunil sd dummy file b/sunil sd dummy file new file mode 100644 index 0000000..8b2fe54 --- /dev/null +++ b/sunil sd dummy file @@ -0,0 +1 @@ +echo hi From 71c2e3dcf291b4b13be579eda49a7e34acf66668 Mon Sep 17 00:00:00 2001 From: sunilsdeshpande <127104397+sunilsdeshpande@users.noreply.github.com> Date: Sat, 8 Jul 2023 21:40:56 +0530 Subject: [PATCH 2/5] Update sunil sd dummy file --- sunil sd dummy file | 1 + 1 file changed, 1 insertion(+) diff --git a/sunil sd dummy file b/sunil sd dummy file index 8b2fe54..2d30792 100644 --- a/sunil sd dummy file +++ b/sunil sd dummy file @@ -1 +1,2 @@ echo hi +ki From a29f34fa48bdb9a04b07f5323621954aac959a7f Mon Sep 17 00:00:00 2001 From: sunilsdeshpande <127104397+sunilsdeshpande@users.noreply.github.com> Date: Sat, 8 Jul 2023 21:49:39 +0530 Subject: [PATCH 3/5] Update sunil sd dummy file --- sunil sd dummy file | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sunil sd dummy file b/sunil sd dummy file index 2d30792..4759f86 100644 --- a/sunil sd dummy file +++ b/sunil sd dummy file @@ -1,2 +1,2 @@ -echo hi +llkkecho hi ki From 6a11240f39fac7489bcf173bc7efd7362d36c30c Mon Sep 17 00:00:00 2001 From: sunilsdeshpande <127104397+sunilsdeshpande@users.noreply.github.com> Date: Sun, 16 Jul 2023 12:54:02 +0530 Subject: [PATCH 4/5] Update Dockerfile --- Dockerfile | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0966445..a05e4e2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,17 @@ +#Stage 1: Checkout source code +FROM alpine/git as checkout +WORKDIR /app +RUN git clone https://github.com/artisantek/java-example.git + +# Stage 2: Build the Java application FROM maven:amazoncorretto as build -WORKDIR /javaapp -COPY . . +WORKDIR /app +COPY . . RUN mvn clean install +# Stage 3: Deploy the application to Tomcat FROM adhig93/tomcat-conf -COPY --from=build /javaapp/target/*.war /usr/local/tomcat/webapps/ +COPY --from=build /app/target/*.war /usr/local/tomcat/webapps/ + + +~ From 877b01794902f919f6c79dc74e72538041081f67 Mon Sep 17 00:00:00 2001 From: sunilsdeshpande <127104397+sunilsdeshpande@users.noreply.github.com> Date: Mon, 17 Jul 2023 13:30:19 +0530 Subject: [PATCH 5/5] Update Dockerfile --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index a05e4e2..9050f8e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,4 +14,4 @@ FROM adhig93/tomcat-conf COPY --from=build /app/target/*.war /usr/local/tomcat/webapps/ -~ +