-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 09aa392
Showing
29 changed files
with
574 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/bash | ||
|
||
TOMCAT_HOST=192.168.1.2 | ||
TOMCAT_USER=gamut-idc-node1 | ||
TOMCAT_PWD=gamut | ||
TOMCAT_HOME=/home/gamut-idc-node1/Distros/apache-tomcat-8.5.11 | ||
# | ||
WAR_FILE_PATH=target/gamutkart.war | ||
|
||
echo "Bringing tomcat server down for deployment..." | ||
sleep 3 | ||
|
||
$TOMCAT_HOME/bin/shutdown.sh 1>/dev/null 2>&1 | ||
|
||
#1>file.log 2>&1 | ||
if [ -f $WAR_FILE_PATH ];then | ||
echo "deploying gamutkart application..." | ||
sleep 4 | ||
sshpass -p "Gamut" ssh $TOMCAT_USER@$TOMCAT_HOST | ||
scp $WAR_FILE_PATH $TOMCAT_USER@$TOMCAT_HOST:$TOMCAT_HOME/webapps | ||
else | ||
echo "war file doesn't exist! Please check the build" | ||
fi | ||
|
||
echo "starting tomcat server..." | ||
$TOMCAT_HOME/bin/startup.sh 1>/dev/null 2>&1 | ||
|
||
echo "deployment is successful! Email notification has been sent!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<project> | ||
<!-- this is comment --> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<groupId>com.gamutgurus</groupId> | ||
<artifactId>gamutkart</artifactId> | ||
<packaging>war</packaging> | ||
<version>1.1-RELEASE</version> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>junit</groupId> | ||
<artifactId>junit</artifactId> | ||
<version>4.12</version> | ||
<scope>test</scope> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>javax.servlet</groupId> | ||
<artifactId>javax.servlet-api</artifactId> | ||
<version>3.1.0</version> | ||
<scope>provided</scope> | ||
</dependency> | ||
|
||
</dependencies> | ||
|
||
<build> | ||
<finalName>gamutkart</finalName> | ||
</build> | ||
</project> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.gamutkart; | ||
|
||
/** | ||
* Hello world! | ||
* | ||
*/ | ||
public class App | ||
{ | ||
public static void main( String[] args ) | ||
{ | ||
System.out.println( "Hello World!" ); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<!DOCTYPE web-app PUBLIC | ||
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" | ||
"http://java.sun.com/dtd/web-app_2_3.dtd" > | ||
|
||
<web-app> | ||
<display-name>Archetype Created Web Application</display-name> | ||
</web-app> |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
div.container { | ||
width: 100%; | ||
border: 1px solid gray; | ||
} | ||
|
||
header, footer { | ||
padding: 1em; | ||
color: white; | ||
background-color: #337ab7; | ||
clear: left; | ||
text-align: center; | ||
} | ||
|
||
nav { | ||
float: left; | ||
max-width: 160px; | ||
margin: 0; | ||
padding: 1em; | ||
} | ||
|
||
nav ul { | ||
list-style-type: none; | ||
padding: 0; | ||
} | ||
|
||
nav ul a { | ||
text-decoration: none; | ||
} | ||
|
||
article { | ||
margin-left: 170px; | ||
border-left: 1px solid gray; | ||
padding: 1em; | ||
overflow: hidden; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* Sticky footer styles | ||
-------------------------------------------------- */ | ||
html { | ||
position: relative; | ||
min-height: 100%; | ||
} | ||
body { | ||
/* Margin bottom by footer height */ | ||
margin-bottom: 60px; | ||
} | ||
.footer { | ||
position: absolute; | ||
bottom: 0; | ||
width: 100%; | ||
/* Set the fixed height of the footer here */ | ||
height: 60px; | ||
line-height: 60px; /* Vertically center the text there */ | ||
background-color: #f5f5f5; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<title>GamutKart!</title> | ||
<link rel="stylesheet" | ||
href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css"> | ||
<link rel="stylesheet" href="/resources/demos/style.css"> | ||
<script src="https://code.jquery.com/jquery-1.12.4.js"></script> | ||
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script> | ||
|
||
<link rel="stylesheet" type="text/css" href="css/main.css"> | ||
<link href="css/sticky-footer-navbar.css" rel="stylesheet"> | ||
<link rel="stylesheet" href="css/bootstrap.min.css"> | ||
<script src="js/bootstrap.min.js"></script> | ||
<!-- <script src="js/jquery.min.js"></script> --> | ||
|
||
<script> | ||
$(function() { | ||
$("#tabs").tabs(); | ||
}); | ||
</script> | ||
</head> | ||
<body> | ||
|
||
<div class="container"> | ||
|
||
<header> | ||
<h1>GamutKart Retail Store . DEVOPS-TRAINING: 9739368768 ...</h1> | ||
</header> | ||
|
||
<div id="tabs"> | ||
<ul> | ||
<li><a href="#tabs-1">Fashion</a></li> | ||
<li><a href="#tabs-2">Electronics</a></li> | ||
<li><a href="#tabs-3">Groceries</a></li> | ||
<li><a href="#tabs-4">Mobiles</a></li> | ||
</ul> | ||
<div id="tabs-1"> | ||
<p>Jenkins is a powerful application that allows continuous | ||
integration and continuous delivery of projects, regardless of the | ||
platform you are working on. It is a free source that can handle | ||
any kind of build or continuous integration. You can integrate | ||
Jenkins with a number of testing and deployment technologies</p> | ||
<p>It is a great tool, but there are some issues regarding | ||
scaling and performance (which is not so unusual). Other cool | ||
solutions such as Travis and CircleCI, which are both hosted | ||
solutions that do not require any maintenance on our side.</p> | ||
<p>Jenkins is a software that allows continuous integration. | ||
Jenkins will be installed on a server where the central build will | ||
take place</p> | ||
</div> | ||
<div id="tabs-2"> | ||
<p> | ||
Docker has <a | ||
href="http://www.actonmagic.com/blog/container-vs-virtualization/">revolutionized | ||
containerization</a> of applications allowing Devops to package any | ||
application in a lightweight environment. The packaging is done in | ||
a way which makes it as easy as installing a mobile app.It is | ||
considered as most popular devops tools | ||
</p> | ||
<p>It is a application container platform for build, ship | ||
and run your distributed apps.Ecosystem includes:</p> | ||
<ol> | ||
<li>Docker Engine, a portable, lightweight run-time and | ||
packaging tool for building containerized apps.</li> | ||
<li>Docker Hub, a cloud service for sharing apps and | ||
automating workflows.</li> | ||
</ol> | ||
<p> | ||
It allows the developers containerize their apps and can run | ||
these apps anywhere. It is a powerful ecosystem where devops can | ||
leverage many apps available on Docker Hub. It is built on the | ||
top of Linux containers. <a href="http://docker">You can read | ||
more about Docker here</a> | ||
</p> | ||
</div> | ||
<div id="tabs-3"> | ||
<p>Ansible is a configuration management tool or devops tools | ||
that is similar to Puppet and Chef.</p> | ||
<p>Ansible is a very simple configuration language, I would say. | ||
A beginner can write a basic script and deploy a few cloud | ||
instances in just a day.</p> | ||
<p>For configuration management, its just too easy to learn and | ||
write in ANSIBLE as it understands “yaml” format. Developer | ||
friendly and Devops friendly.</p> | ||
<p>Ansible always runs in order and exits immediately when an | ||
error occurs. Also while using Ansible, one has to know about | ||
the commands that they need to give. For example yum for redhat | ||
distributions and apt-get for ubuntu etc. In chef or puppet, they | ||
take care of translating to individual distribution and user need | ||
not worry about specifying correct commands as per the | ||
distribution.</p> | ||
<p>Earlier windows was not supported in Ansible but with windows | ||
supported now, Ansible solves configuration problem at a small | ||
scale.</p> | ||
<p>But when it comes to scaling and complex configurations, of | ||
course chef and puppet scores. As long as one is having 3 digits in | ||
the number of servers, ansible looks to be ok and beyond that one | ||
has to choose Chef or Puppet.</p> | ||
</div> | ||
<div id="tabs-4"> | ||
<p>Motorola</p> | ||
<p>Apple</p> | ||
</div> | ||
</div> | ||
|
||
</div > | ||
|
||
<div class="container"> | ||
<footer> Copyright © gamutgurus software services Pvt. Ltd. </footer> | ||
</div> | ||
|
||
</body> | ||
</html> |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package com.gamutkart; | ||
|
||
import junit.framework.Test; | ||
import junit.framework.TestCase; | ||
import junit.framework.TestSuite; | ||
|
||
/** | ||
* Unit test for simple App. | ||
*/ | ||
public class AppTest | ||
extends TestCase | ||
{ | ||
/** | ||
* Create the test case | ||
* | ||
* @param testName name of the test case | ||
*/ | ||
public AppTest( String testName ) | ||
{ | ||
super( testName ); | ||
} | ||
|
||
/** | ||
* @return the suite of tests being tested | ||
*/ | ||
public static Test suite() | ||
{ | ||
return new TestSuite( AppTest.class ); | ||
} | ||
|
||
/** | ||
* Rigourous Test :-) | ||
*/ | ||
public void testApp() | ||
{ | ||
assertTrue( true ); | ||
} | ||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<!DOCTYPE web-app PUBLIC | ||
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" | ||
"http://java.sun.com/dtd/web-app_2_3.dtd" > | ||
|
||
<web-app> | ||
<display-name>Archetype Created Web Application</display-name> | ||
</web-app> |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
div.container { | ||
width: 100%; | ||
border: 1px solid gray; | ||
} | ||
|
||
header, footer { | ||
padding: 1em; | ||
color: white; | ||
background-color: #337ab7; | ||
clear: left; | ||
text-align: center; | ||
} | ||
|
||
nav { | ||
float: left; | ||
max-width: 160px; | ||
margin: 0; | ||
padding: 1em; | ||
} | ||
|
||
nav ul { | ||
list-style-type: none; | ||
padding: 0; | ||
} | ||
|
||
nav ul a { | ||
text-decoration: none; | ||
} | ||
|
||
article { | ||
margin-left: 170px; | ||
border-left: 1px solid gray; | ||
padding: 1em; | ||
overflow: hidden; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* Sticky footer styles | ||
-------------------------------------------------- */ | ||
html { | ||
position: relative; | ||
min-height: 100%; | ||
} | ||
body { | ||
/* Margin bottom by footer height */ | ||
margin-bottom: 60px; | ||
} | ||
.footer { | ||
position: absolute; | ||
bottom: 0; | ||
width: 100%; | ||
/* Set the fixed height of the footer here */ | ||
height: 60px; | ||
line-height: 60px; /* Vertically center the text there */ | ||
background-color: #f5f5f5; | ||
} |
Oops, something went wrong.