Devops Day1 April22
Devops Day1 April22
Devops Day1 April22
ON UBUNTU
student@student-virtual-machine:~$ history
1 exit
2 ip a
3 ssh student@192.168.29.150
4 sudo apt install vim git
5 git clone https://github.com/sandervanvugt/devopsin3weeks
6 git clone https://github.com/sandervanvugt/devopsin3week
7 git clone https://github.com/sandervanvugt/devopsinfourweeks
8 cd devopsinfourweeks/
9 ls
10 vim pv-pvc-pod.yaml
11 history
12 sudo apt install openjdk-11-jdk
13 wget -q -O https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo apt-
key add -
14 wget -q -O - https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo apt-
key add -
15 sudo sh -c 'echo deb https://pkg.jenkins.io/debian-stable binary/ >
/etc/apt/sources.list.d/jenkins.list'
16 sudo apt update
17 history
18 rm /etc/apt/sources.list.d/jenkins.list
19 sudo rm /etc/apt/sources.list.d/jenkins.list
20 sudo apt update
21 sudo apt upgrade
22 sudo apt install ca-certificates
23 wget -q -O - https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo apt-
key add
24 sudo sh -c 'echo deb https://pkg.jenkins.io/debian-stable binary/ >
/etc/apt/sources.list.d/jenkins.list'
25 sudo apt install jenkins
26 sudo apt update
27 sudo apt install jenkins
28 ./counter.sh 6
29 sud -i
30 sudo -i
31 sudo apt install apt-transport-https ca-certificates curl gnupg-agent
software-properties-common
32 curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
33 sudo apt-key fingerprint 0EBFCD88
34 sudo add-apt-repository "deb [arch=amd64]
https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
35 sudo apt update
36 sudo apt install docker-ce docker-ce-cli containerd.io
37 sudo docker run hello-world
38 sudo usermod -aG docker jenkins
39 sudo systemctl restart jenkins
40 sudo systemctl status jenkins
41 free -m
42 top
43 vim firstpipeline
44 sudo docker images
45 vim secondpipeline
46 cat secondpipeline
47 sudo apt install openssh-server
48 docker run ubuntu
49 newgrp docker
50 sudo reboot
51 docker run ubuntu
52 echo $?
53 docker ps
54 docker ps -a
55 docker run -d nginx
56 docker ps
57 docker run -it ubuntu sh
58 docker ps aux
59 docker ps -a
60 docker run -it ubuntu sh
61 docker inspect ubuntu:latest | less
62 docker inspect nginx:latest
63 docker inspect nginx:latest | less
64 docker ps
65 docker inspect compassionate_varahamihira
66 docker inspect compassionate_varahamihira | less
67 curl 172.17.0.3
68 docker run --name webserver --memory="128m" -d -p 8080:80 nginx
69 docker run --name webserver --memory="128m" -d -p 8081:80 nginx
70 docker rm webserver
71 docker run --name webserver --memory="128m" -d -p 8081:80 nginx
72 curl localhost:8081
73 history