GithubHelp home page GithubHelp logo

devops-bootcamp's Introduction

Install Ubuntu Server Image

https://releases.ubuntu.com/18.04/ubuntu-18.04.5-live-server-amd64.iso

Install Putty

https://the.earth.li/~sgtatham/putty/latest/w64/putty-64bit-0.74-installer.msi

Create VirtualBox Ubuntu VM

VirtualBox VirtualBox

Install GitBash

https://git-scm.com/download/win

Jenkins

sudo apt-get install openjdk-8-jdk
wget -q -O - https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo apt-key add -
sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'
sudo apt update
sudo apt upgrade
sudo apt install jenkins
sudo systemctl start jenkins
sudo ufw allow 8080
sudo ufw allow 22/tcp
sudo ufw status : Status: inactive ise
sudo ufw enable
sudo ufw default deny
sudo ufw allow 22/tcp
sudo ufw allow 8443/tcp

Jenkins IP and Default Pasword

http://localhost:8080

cat /var/lib/jenkins/secrets/initialAdminPassword

Jenkins Plugins

  • CloudBees Docker Build and Publish CloudBees Docker Build and Publish
  • SonarQube Scanner SonarQube Scanner

Docker Install

sudo apt-get update
sudo apt-get upgrade

curl https://releases.rancher.com/install-docker/19.03.sh | sh
Jenkins user'ın docker grubuna eklenmesi
sudo usermod -aG docker jenkins

Kubectl Install

curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
sudo touch /etc/apt/sources.list.d/kubernetes.list 
echo "deb http://apt.kubernetes.io/ kubernetes-xenial main" | sudo tee -a /etc/apt/sources.list.d/kubernetes.list
sudo apt-get update
sudo apt-get install -y kubectl
sudo reboot

Choco Install

Set-ExecutionPolicy Bypass -Scope Process -Force; `
  iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))

Minikube

Powershell yönetici olarak çalıştırılır.
choco install minikube

minikube start --cpus 4 --driver=virtualbox

Minikube hata verirse.
bcdedit /set hypervisorlaunchtype off

Jenkins User

Jenkins User Home: /var/lib/jenkins
su jenkins
cd
mkdir .kube
cd .kube
vi config
Copy  configfile
[ESC] :wq!

Test için;
kubeclt get nodes

NAME       STATUS   ROLES                  AGE   VERSION
minikube   Ready    control-plane,master   20d   v1.20.2

Kubernetes

kubectl create namespace dev
kubectl create namespace test
kubectl create namespace prod

SonarQube Start

mkdir $HOME/sonarqube-test
docker run -d -v $(pwd)/sonarqube-test:/root/src --name sonarqube -p 9000:9000 -p 9092:9092 sonarqube

Others

  • Delete docker images
docker images -a | grep "days" | awk '{print $3}' | xargs docker rmi -f

devops-bootcamp's People

Contributors

fatihgedik avatar serkantasci avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.