DevOps Training Program that will provide you with in-depth knowledge of various DevOps tools including Git, Jenkins, Docker, Ansible, Puppet, Kubernetes and Nagios. This training is completely hands-on and designed in a way to help you become a certified practitioner through best practices in Continuous Development, Continuous Testing, Configuration Management and Continuous Integration, and finally, Continuous Monitoring of software throughout its development life cycle.
To
install Apache Maven on
Windows, you just need to download the Maven’s zip file, unzip it to a folder,
and configure the Windows environment variables.
Tested
with :
1.JDK 10
2.Maven 3.6
3.Windows 10
Note
1.Maven 3.3+ requires JDK
1.7+
2.Maven 3.2 requires JDK
1.6+
3.Maven 3.0/3.1 requires
JDK 1.5+
1. JDK and JAVA_HOME
Make
sure JDK is installed, and JAVA_HOME environment
variable is configured. To download Open JDK go to
Extract the zip file to a folder: Eg C:\Program
Files\jdk-14.0.2
Next in the windows search Type Edit Enviroment Variables---
Enter Variable: JAVA_HOMEValue: your_file_path_to_java_folder
2. Download Apache Maven
2.1
Visit Maven official website,
download the Maven zip file, for example : apache-maven-3.6.0-bin.zip.
2.2
Unzip it to any folder
Note
That’s all, just download and unzip, installation is NOT required.
3. Add MAVEN_HOME system
variable
Add
a MAVEN_HOME system variables, and point it to the
Maven folder.
3.1
Press Windows key, type adva and clicks on
the View advanced system settings
3.2 In
System Properties dialog, select Advanced tab and clicks on
the Environment Variables... button.
3.3 In
“Environment variables” dialog, System variables, Clicks on the New... button and add a MAVEN_HOME variable and point
it to c:\opt\apache-maven-3.6.0
4. Add %MAVEN_HOME%\bin
To PATH
In
system variables, find PATH, clicks on the Edit... button. In “Edit environment variable” dialog, clicks on
the New button and add this %MAVEN_HOME%\bin
REPEAT SAME for %JAVA_HOME%\bin
5. Verification
Done,
start a new command prompt, type mvn –version :
We will see how to setup Java Web App using Maven in BitBucket and also how to setup SSH keys in Bitbucket.
Pre-requistes:
If you don't have an bitbucket account, You need to create an account in bitbucket.org.
Implementation steps:
1. after login into bitbucket, click on + and Click on Create Repository
2. enter the repo name as MyBitbucketRepo, make sure it is private, Include read me option - choose yes with template. Click Git as version control system.
3. Click on create repository.
4. now click on your avatar (left bottom of the screen, BitBucket settings-> security--> ssh keys
5. now go to your laptop, open git bash for windows laptop
6. Now type ssh-keygen (and then simply enter four times, do not give any password)
7. copy the content of public key executing below command in Gitbash.
cat ~/.ssh/id_ed25519.pub
8. go to click on Add key from step # 3, and paste the content of public key. give some name as mySSH key. click on Add key.
9. Now click on repo you created in step # 1. Click on Clone and copy the SSH url. Do not select HTTPS Url. The url will be from your repo you created under Clone link.
OpenJDK 64-Bit Server VM (build 21.0.8+9-Debian-1, mixed mode, sharing)
Now lets do Jenkins
installation
Installing Jenkins
Installing Jenkins on Ubuntu is relatively straightforward. We’ll enable the Jenkins APT repository, import the repository GPG key, and install the Jenkins package.
Import the GPG keys of the Jenkins repository using the following wget command:
you need to scroll
down by clicking down arrow button in this file change the port no from 8080
to 8090 at line starting with
<Connector port="8080"
protocol="HTTP/1.1"
setup an user in
tomcat
sudo vi /var/lib/tomcat8/conf/tomcat-users.xml
Scroll down all the
way to the end of the file,
Add the below lines in second last line above (above </tomcat-users>)
you may get message
that says tomcat is active running.
press q for
quitting from that window.
Now go to browser,
copy public DNS http://Ec2_public_dns_name:8090 Note: Open port 8090 in AWS for this to work follow the steps on Next Make Sure Port 8080 is Open above
You
should see a page that says. It
works!!!!
That's it. You have setup Jenkins and Tomcat successfully!!
Watch installation videos Below
Part 1
Part 2
Part 3
IF YOU MISCONFIGURED YOUR TOMCAT USER PLEASE USE BELOW
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and