-
Git commands git init, git log, git clone commands and syntax
For git commands git init, git log, git clone commands and syntax, please find youtube link below:
-
how to add your local git branch changes to remote branch
how to add your local git branch changes to remote branch // follow 3 steps 1. git add . 2. git commit -m “my commit” 3. git push stpe 1 add yourworking directoryfile to index area step 2. saves yourchanges to local repo step 3. pushesyour changes to remote branch
-
Most useful git commands
Most useful git commands are git init, git add ., git commit, git push, git pull, git feth 1. git init// to start local repo 2. git add .//to add local changesto staging area 3. git commit -m “change1″// to collect stagedchanges 4. git push// to push localcommittedchanges toremote branch 5. git fetch// will fetchremote […]
-
What is Blue/Green Deployment and its Pros/Cons
What is Blue/Green Deployment and its Pros/Cons t’s an AdvancedDeployment processwith following steps 1. While Blue environmentis active and supportingproduction users,Green environmentwill be upgraded,then smoke tested 2. After successfulsmoke test, Load balancerwill direct user trafficto Green environment 3. Now Blueenvironmentwill be upgraded Pros:Uninterruptedavailability of servicesduring deployment Cons:Expensive to maintainduplicateproduction environment
-
What is Rolling Updates – Advanced deployment strategy
DevOps #2 What is Rolling Updates or Deployment | Incremental node updates on multi node environment Rolling updates aredone for Multi nodeenvironment. Hereeach node willbe taken out, upgraded,smoke tested andthen redeployed.Process repeated untilall nodes are upgradedindividually Pros: Incremental,zero downtimeincrementaldeployement Cons: unpredictablebehaviormay be noticeddue to each nodelevel updates
-
How to create Molecule and test Ansible tasks
For Ansible Molecule setup the following commands needs to be executed:1.pip install2.virtualenv ansible(will create virtual envfor python with ansible name) cd ansible (to go to ansible folder) source bin/activate (to activate python env) pip install molecule anisble molecule[docker] docker Now, verify ansible and molecule version ansible –version molecule –version run command : molecule init role-r […]
-
How to create Ansible roles
Ansible Role is set of directory structures and yml files Roles help to organize set of tasks and group it command (to create role): Ansible-galaxy init /etc/ansible/roles/project1 –offline now, project1 directory has 8 directories:1.defaults2.files3.handlers4.meta5.tasks6.templates7.tests8.vars except files and templates, all other directories have main.yml file defaults and vars carry variables. priority goesto vars task stores all […]
-
How to setup Gradle project in Eclipse from scratch
Search &install Gradle pugin in Eclipse marketplace find the gradle installation directory map that with Eclipse Window > Preferences > Gradle > local installation directory File > New >Other > Gradle option to create new Gradle project File > import > Gradle project to load existing gradle project
-
How to create, test, run, build Angular app using CLI
Following are the commands npm install -g @angular/cli (to install cli) ng new my-angular-app (to create workspace) cd my-angular-app ng serve -o (to open app on localhost) ng test (to test using karma and jasmine) ng build –prod (to deploy app to dist folder)
-
Terraform Jenkins Declarative pipeline
Install Terraform plugin for Jenkins Download Terraform CLI and associate Terraform binary path to jenkins terraform section.