Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions MultistageDocFile.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#git
FROM alpine/git as repo

MAINTAINER [email protected]

WORKDIR /app
RUN git clone https://github.com/femiog/maven-web-application

#Maven
FROM maven:3.5-jdk-8-alpine as build
WORKDIR /app
COPY --from=repo /app/maven-web-application /app
RUN mvn install

#Tomcat
FROM tomcat:8.0.20-jre8
#COPY /app/target/*war /usr/local/tomcat/webapps/maven-web-app.war
COPY --from=build /app/target/*war /usr/local/tomcat/webapps/

5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# maven-web-application
maven-web-application
#mv web app
#mv web app v2
mv web app v3
8 changes: 4 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<artifactId>maven-web-application</artifactId>
<packaging>war</packaging>

<version>0.0.1-SNAPSHOT</version>
<version>0.0.1.1</version>

<name>maven-web-application</name>

Expand All @@ -22,7 +22,7 @@
<spring.version>5.1.2.RELEASE</spring.version>
<junit.version>4.11</junit.version>
<log4j.version>1.2.17</log4j.version>
<sonar.host.url>http:3.22.166.76:9000/</sonar.host.url>
<sonar.host.url>http://3.92.211.188:9000/</sonar.host.url>
<sonar.login>admin</sonar.login>
<sonar.password>admin</sonar.password>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down Expand Up @@ -96,13 +96,13 @@
<repository>
<id>nexus</id>
<name>Landmark Technologies Releases Nexus Repository</name>
<url>http://100.26.133.141:8081/repository/paypal-releases/</url>
<url>http://44.211.153.161:8081/repository/tesla-releases/</url>
</repository>

<snapshotRepository>
<id>nexus</id>
<name>Landmark Technologies Snapshot Nexus Repository </name>
<url>http://18.118.29.219:8081/repository/paypal-snapshots/</url>
<url>http://44.211.153.161:8081/repository/Tesla-snapshots/</url>
</snapshotRepository>

</distributionManagement>
Expand Down
2 changes: 1 addition & 1 deletion src/main/webapp/jsps/home.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</head>
<body>
<h1 align="center">Welcome to Landmark Technologies.</h1>
<h1 align="center">We are developing and supporting quality Software Solutions to millions of clients.
<h1 align="center">We are developing and supporting quality Software Solutions to millions of clients around the world.
We are raising over 1m millionaires by 2030.
We offer Training for DevOps with Linux and Cloud equipping IT Engineers for best performance.</h1>
<hr>
Expand Down