Skip to content
Open

L1 #4

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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Binary file not shown.
Binary file not shown.
Binary file not shown.
33 changes: 33 additions & 0 deletions Devops_Files/10.AWSPart1/AWSLinks.rtf
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{\rtf1\ansi\ansicpg1252\cocoartf2636
\cocoatextscaling0\cocoaplatform0{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
{\colortbl;\red255\green255\blue255;}
{\*\expandedcolortbl;;}
\paperw11900\paperh16840\margl1440\margr1440\vieww11520\viewh8400\viewkind0
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural\partightenfactor0

\f0\fs24 \cf0 https://aws.amazon.com/what-is-cloud-computing/\
\
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/concepts.html\
\
https://aws.amazon.com/ec2/instance-types/\
\
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-security-groups.html\
\
https://awscli.amazonaws.com/v2/documentation/api/latest/index.html\
\
https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html\
\
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AmazonEBS.html\
\
https://docs.aws.amazon.com/elasticloadbalancing/\
\
https://docs.aws.amazon.com/cloudwatch/index.html\
\
https://docs.aws.amazon.com/efs/index.html\
\
https://docs.aws.amazon.com/autoscaling/ec2/userguide/what-is-amazon-ec2-auto-scaling.html\
\
https://docs.aws.amazon.com/AmazonS3/latest/userguide/Welcome.html\
\
https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_GettingStarted.html\
}
Binary file added Devops_Files/10.AWSPart1/AWSSlides.pdf
Binary file not shown.
15 changes: 15 additions & 0 deletions Devops_Files/10.AWSPart1/STRESSInstallAndCommands.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#STRESS Installation
# Centos
sudo yum install epel-release -y
sudo yum install stress -y

#Amazon Linux 2
sudo amazon-linux-extras install epel -y
sudo yum install stress -y

# Ubuntu
sudo apt update
sudo apt install stress -y

# stress command
stress -c 4 -t 60 && sleep 60 && stress -c 4 -t 60 && sleep 60 && stress -c 4 -t 360 && sleep && stress -c 4 -t 460 && sleep 30 && stress -c 4 -t 360 && sleep 60
6 changes: 6 additions & 0 deletions Devops_Files/10.AWSPart1/morInEec2_part1.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
sudo apt update
sudo apt install apache2 wget unzip -y
wget https://www.tooplate.com/zip-templates/2128_tween_agency.zip
unzip 2128_tween_agency.zip
sudo cp -r 2128_tween_agency/* /var/www/html/
sudo systemctl restart apache2
115 changes: 115 additions & 0 deletions Devops_Files/10.AWSPart1/multios_websetup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
#!/bin/bash

# Variable Declaration
#PACKAGE="httpd wget unzip"
#SVC="httpd"
URL='https://www.tooplate.com/zip-templates/2098_health.zip'
ART_NAME='2098_health'
TEMPDIR="/tmp/webfiles"

yum --help &> /dev/null

if [ $? -eq 0 ]
then
# Set Variables for CentOS
PACKAGE="httpd wget unzip"
SVC="httpd"

echo "Running Setup on CentOS"
# Installing Dependencies
echo "########################################"
echo "Installing packages."
echo "########################################"
sudo yum install $PACKAGE -y > /dev/null
echo

# Start & Enable Service
echo "########################################"
echo "Start & Enable HTTPD Service"
echo "########################################"
sudo systemctl start $SVC
sudo systemctl enable $SVC
echo

# Creating Temp Directory
echo "########################################"
echo "Starting Artifact Deployment"
echo "########################################"
mkdir -p $TEMPDIR
cd $TEMPDIR
echo

wget $URL > /dev/null
unzip $ART_NAME.zip > /dev/null
sudo cp -r $ART_NAME/* /var/www/html/
echo

# Bounce Service
echo "########################################"
echo "Restarting HTTPD service"
echo "########################################"
systemctl restart $SVC
echo

# Clean Up
echo "########################################"
echo "Removing Temporary Files"
echo "########################################"
rm -rf $TEMPDIR
echo

sudo systemctl status $SVC
ls /var/www/html/

else
# Set Variables for Ubuntu
PACKAGE="apache2 wget unzip"
SVC="apache2"

echo "Running Setup on CentOS"
# Installing Dependencies
echo "########################################"
echo "Installing packages."
echo "########################################"
sudo apt update
sudo apt install $PACKAGE -y > /dev/null
echo

# Start & Enable Service
echo "########################################"
echo "Start & Enable HTTPD Service"
echo "########################################"
sudo systemctl start $SVC
sudo systemctl enable $SVC
echo

# Creating Temp Directory
echo "########################################"
echo "Starting Artifact Deployment"
echo "########################################"
mkdir -p $TEMPDIR
cd $TEMPDIR
echo

wget $URL > /dev/null
unzip $ART_NAME.zip > /dev/null
sudo cp -r $ART_NAME/* /var/www/html/
echo

# Bounce Service
echo "########################################"
echo "Restarting HTTPD service"
echo "########################################"
systemctl restart $SVC
echo

# Clean Up
echo "########################################"
echo "Removing Temporary Files"
echo "########################################"
rm -rf $TEMPDIR
echo

sudo systemctl status $SVC
ls /var/www/html/
fi
Binary file not shown.
Binary file not shown.
98 changes: 98 additions & 0 deletions Devops_Files/13.Git/Git-Commands.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
476 cd /f/Bash_Scripts/
477 ls
478 vim remotexecmulti.sh
479 vim remotexecmulti.sh
480 vim MultiComRemExec.sh
481 clear
482 ls
483 cp remotexecmulti.sh remotexecmulti.sh_13123030_1040.bakup
484 ls
485 vim remotexecmulti.sh
486 cp remotexecmulti.sh_13123030_1040.bakup remotexecmulti.sh
487 vim remotexecmulti.sh
488 clear
489 ls
490 cp remotexecmulti.sh_14123030_1040.bakup remotexecmulti.sh
491 cp remotexecmulti.sh remotexecmulti.sh_14123030_1040.bakup
492 cp remotexecmulti.sh remotexecmulti.sh_12113030_1040.bakup
493 cp remotexecmulti.sh remotexecmulti.sh_12103030_1150.bakup
494 cp remotexecmulti.sh remotexecmulti.sh_05103030_1150.bakup
495 ls
496 tar
497 tar czvf remotexecmulti.Bakup *.bakup
498 ls
499 rm -rf *.bakup
500 ls
501 cd /f/gitrepos/titanwork/
502 rm -rf debug.log
503 rm -rf debug.log
504 git status
505 git merge sprint1
506 ls
507 git switch sprint1
508 ls
509 cd ..
510 ls
511 cd titanwork/
512 clear
513 git push --all origin
514 cd ..
515 rm -rf titanwork
516 clear
517 ls
518 git clone https://github.com/imranvisualpath/titanwork.git
519 ls
520 cd titanwork/
521 ls
522 ls
523 clear
524 ls
525 vim jupiter1.rb
526 cat jupiter1.rb
527 git checkout jupiter1.rb
528 cat jupiter1.rb
529 clear
530 vim jupiter1.rb
531 git status
532 git diff
533 git rm debug.log
534 clear
535 git diff
536 git status
537 git diff
538 git add.
539 git add .
540 git status
541 git diff
542 git diff --cached
543 git restore --staged jupiter1.rb
544 git status
545 git diff
546 git add .
547 git commit -m "playbook"
548 clear
549 git status
550 git diff
551 git diff --cached
552 git log --oneline
553 git diff 358d7f8..a886cb6
554 git revert HEAD
555 cat jupiter1.rb
556 git log --oneline
557 clear
558 git log --oneline
559 git reset --hard 358d7f8
560 git log --oneline
561 history
562 clear
563 cat .git/config
564 cd
565 rm -rf .ssh/*
566 ssh-keygen.exe
567 ls .ssh
568 ls .ssh/
569 cat .ssh/id_rsa.pub
570 cd /f/gitrepos/
571 git clone [email protected]:imranvisualpath/titanwork.git
572 rm -rf titanwork
573 git clone [email protected]:imranvisualpath/titanwork.git
Binary file added Devops_Files/13.Git/Git.pdf
Binary file not shown.
Binary file added Devops_Files/14.Maven/Maven.pdf
Binary file not shown.
61 changes: 61 additions & 0 deletions Devops_Files/14.Maven/maven-commands.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
1 sudo apt update
2 clear
3 sudo apt update
4 sudo apt install git -y
5 git clone https://github.com/devopshydclub/vprofile-repo.git
6 ls
7 cd vprofile-repo/
8 clear
9 ls
10 git checkout vp-rem
11 ls
12 sudo apt search jdk
13 clear
14 sudo apt install openjdk-8-jdk -y
15 clear
16 jave -version
17 java -version
18 sudo apt install maven -y
19 clear
20 mvn -version
21 ls
22 mvn test
23 ls
24 ls target/
25 mvn install
26 ls
27 ls target/
28 ls
29 rm -rf target
30 ls
31 mvn install
32 ls /home/ubuntu/.m2/repository/
33 clear
34 mvn clean
35 ls
36 clear
37 mvn install
38 clear
39 mvn clean
40 ls
41 mvn clean install
42 clean
43 clear
44 ls
45 mvn -version
46 cd
47 wget https://archive.apache.org/dist/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz
48 ls
49 pwd
50 tar xzvf apache-maven-3.3.9-bin.tar.gz
51 clear
52 ls
53 sudo mv apache-maven-3.3.9 /opt/
54 ls /opt/apache-maven-3.3.9/
55 ls /opt/apache-maven-3.3.9/bin/
56 /opt/apache-maven-3.3.9/bin/mvn -version
57 ls
58 cd vprofile-repo/
59 clear
60 ls
61 /opt/apache-maven-3.3.9/bin/mvn clean install
Binary file not shown.
Binary file added Devops_Files/15.CI-Jenkins/CI-Jenkins.pdf
Binary file not shown.
10 changes: 10 additions & 0 deletions Devops_Files/15.CI-Jenkins/JenkinsfileBuildTrigger.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
pipeline {
agent any
stages {
stage('Build') {
steps{
sh 'echo "Build completed."'
}
}
}
}
Loading