-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathproject-setup-process
More file actions
105 lines (33 loc) · 1.15 KB
/
project-setup-process
File metadata and controls
105 lines (33 loc) · 1.15 KB
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
# CREATING SERVERS:
master node,node-1,node-2
for master node: t2.medium
for worker nodes: t2.micro
------------------------------
#CONNECT THEM TO TERMINAL AND IN MULTI EXEC MODE:
------------------------------
#INSATLL DOCKER:
cmnd: yum install docker -y
cmnd: systemctl start docker
cmnd: systemctl status docker
---------------------------
# SWARM CONNECTION:
In master node run:
cmnd: docker swarm init
# You will get a token copy it "docker swarm-----------2377" and run in all the worker nodes.
# After running in nodes you will see "This node joined the swarm as a worker".
---------------------------
# IN MASTER NODE RUN:
cmnd: docker node ls
#To check no of nodes connected.
---------------------------
# INSTALLING JENKINS IN MASTER NODE:
cmnd: vim jenkins.sh
copy code from all-setups "jenkins.sh"
cmnd: sh jenkins.sh
and connect to jenkins server.
-----------------------------
NOTE: here you are INTEGRATING JENKINS AND DOCKER, so PERMISSION is required.
cmnd: chmod 777 /var/run/docker.sock
cmnd: systemctl daemon-reload
cmnd: systemctl restart docker.service
-----------------------------