ubuntu subsystem for windows10 # https://www.windowscentral.com/install-windows-subsystem-linux-windows-10
ssh localhost
sudo apt-get install openssh-server openssh-client -y
ssh localhost
sudo apt-get install openssh-server openssh-client -y
cd ~
ssh-keygen -t rsa -P ""
(press enter without typing anything)
cp .ssh/id_rsa.pub .ssh/authorized_keys
ssh localhost
sudo su
cd ~
ssh-keygen -t rsa -P ""
(press enter without typing anything)
cp .ssh/id_rsa.pub .ssh/authorized_keys
ssh localhost
docker build -t sathyadev/ubuntu-ansible:18.04 .
sudo docker run --net=host --rm -it -v $(pwd)/app/:/app:ro -v $HOME/.ssh:/root/.ssh 07acb63e26a9 bash
sudo apt install python-pip
pip install ansible
ansible --version
ansible 2.8.5
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/lib/python2.7/dist-packages/ansible
executable location = /usr/local/bin/ansible
python version = 2.7.17 (default, Sep 30 2020, 13:38:04) [GCC 7.5.0]
git clone https://github.com/Sathiyarajan/devops-pipeline.git
cd devops-pipeline/ansible
ansible-playbook install-site.yml -vv -i hosts
pip list
pip uinstall docker
pip uninstall docker
pip install docker==="2.5.1"
pip install dockerpty==="0.4.1"
sudo apt-get remove docker docker-engine docker.io containerd runc
sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io
git clone https://github.com/Sathiyarajan/devops-pipeline.git
cd devops-pipeline/docker
docker build -t <dockerhub_username>/flaskapp:1.1 .
docker run -ti 5103c1f975dc /bin/bash
docker run -d -p 5000:5000 8f6adb7689b5
docker logs 5103c1f975dc
docker logout
docker login
curl http://localhost:5000
Hello World!#
docker push sathyadev/flaskapp:1.1
docker pull sathyadev/flaskapp:1.1
docker rmi -f <imaegeId>
docker rm -f <containerId>
https://medium.com/@Marklon/how-to-install-jenkins-on-ubuntu-16-04-on-aws-e584c45c2684
sudo apt install default-jdk
sudo apt install default-jdk
sudo 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
sudo systemctl status jenkins
sudo ufw allow 8080
sudo ufw status
sudo ufw enable
sudo systemctl start jenkins
https://localhost:8080
sudo cat /var/lib/jenkins/secrets/initialAdminPassword
git clone https://github.com/Sathiyarajan/best-project.git
git checkout -b besant_sathya
git status
git diff
git add .
git commit -m "commit message"
git push origin besant_sathya