forked from vigneshkum/demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jenkins_ubuntu_installation
143 lines (104 loc) · 4.19 KB
/
jenkins_ubuntu_installation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
1) Update all software packages on Ubuntu server.
sudo apt-get update
sudo apt-get upgrade
2) Install Java on Ubuntu server.
sudo apt-get install default-jdk
java -version
3) Install Jenkins on Ubuntu server.
wget -q -O - https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo apt-key add -
sudo sh -c 'echo deb https://pkg.jenkins.io/debian-stable binary/ > \
/etc/apt/sources.list.d/jenkins.list'
sudo apt-get update
sudo apt-get install jenkins
https://pkg.origin.jenkins.io/debian-stable/
https://www.jenkins.io/doc/tutorials/tutorial-for-installing-jenkins-on-AWS/
sudo yum install java-11
yum list java*
sudo yum -y remove jenkins
https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/ec2.html
https://github.com/miztiik/AWS-Demos/tree/master/How-To/setup-s3-event-sns-notification
https://www.ipaddressguide.com/cidr
https://drive.google.com/file/d/1Ai82pBzIgqFC90_nl5FJ59JKwsCKmFlg/view
https://www.ambitionbox.com/salaries/take-home-salary-calculator?campaign=desig_sal
https://docs.ansible.com/ansible/2.9/modules/yum_module.html#yum-module
https://registry.terraform.io/
https://registry.terraform.io/modules/terraform-aws-modules/vpc/aws/latest
https://qiita.com/leechungkyu/items/86cad0396cf95b3b6973 nexus
http://52.66.190.245:8080/configure sonar
https://docs.docker.com/compose/compose-file/compose-versioning/ compose
https://github.com/compose-spec/compose-spec/blob/master/spec.md
https://www.ventoy.net/en/download.html
https://www.serverlab.ca/tutorials/linux/administration-linux/how-to-set-environment-variables-in-linux/
https://github.com/learnitguide/kubernetes-knote/blob/master/docker-compose.yaml
https://www.blogger.com/blog/posts/2264272755755883456
https://aws.amazon.com/blogs/storage/how-to-use-aws-datasync-to-migrate-data-between-amazon-s3-buckets/
https://github.com/TrieTreeTechnologies/hands-on-jenkins
===========================================
docker volume create name
docker volume ls
docker volume inspect volume name
docker images
docker ps -a
docker ps -a --filter "status=exited"
docker volume rm partcular name
docker volume prune
docker run -it -d -name conatinername -v src:desc imagename sh
docker run -it -d -name containername -mount source= ,destrination= sh
docker run --memory-reservated=500m -m=1000 -d -name conatienr name image
docker run --cpu-shares=1000 --cpus=1.5 -d -name con name imagename
deploys
resources:
limts:
cpu:
memory:
reservations:
cpu:
memory:
docker stack deploy --compose-file docker-compose.yaml name
docker network ls
docker network create network name
docker network inspect network name
docker network --help
ip a
docker run -d -it --name containername --network=networkname image
apt-get update
apt-get install telnets
apt-get install net-tools
apt-get install ping
apt-get install iputils-ping
apt-get install curl
docker swarm init --advertise-addr ip
token to connect
docker service create --replicas 2 -p 80:80 --name web1 httpd
docker service ps container name
docker service create --mode global -p 80:80 --name web1 httpd ===> monitor
docker network create -d overlay newoverlay
docker service scale containername=4
docker service update --image imagename service name
docker service rollback service name
promote and demote w node and m node
docker node promote node name
docker node demote node name
active pause drain
docker node update --availability drain nodename
docker node update --availability pause nodename
docker node update --availability active nodename
Hi
Thank you for interviewing me on March. it was great to speak to you about the
devops role and i'm convinced that the
position is a perfect fit for this stage in my
carrer. i was hoping to get an update
on the recruitment process.
so any information that you can
give me about the next steps
Looking forward to hearing from you
Regards
ECS ECR
cli command
aws ecr create-repository --respository-name ecstertcontainer --region ap-south-1
sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat/jenkins.repo
sudo rpm --import https://pkg.jenkins.io/redhat/jenkins.io.key
amazon-linux-extras install epel
amazon-linux-extras install java-openjdk11
yum install jenkins
systemctl start jenkins