Terraform assignment-1 by Bharath Srinivas

Limited Time Offer! For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly. Master DevOps, SRE, DevSecOps Skills! Enroll Now provider “aws” {region = “ap-south-1”access_key = “”secret_key = “”} provider “github” {token = “”organization = “”} variable “instance_count” {type = numberdescription = “This is for demo of number variable”default = 2 }variable “users” {type = “list”default = [“bharath”, “sharath”, “nikhil”]description = “This is for demo of list variable”} variable “amis” {type = “map”default =

Read more

Terraform-Assignment2 by Bharath Srinivas

Limited Time Offer! For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly. Master DevOps, SRE, DevSecOps Skills! Enroll Now provider “aws” {access_key = “”secret_key = “”region = “eu-east-2”} resource “aws_instance” “web” {ami = “ami-xbbsj”instance_type = “t2.micro”count = 1tags = {Name = “Demo”}} provisioner “file” {source = “conf/install-apache.yml”destination = “/etc/install-apache.yml”} provisioner “remote-exec” {inline = [“sudo apt update”, “sudo apt install python3 -y”, “sudo apt install ansible -y”] } provisioner “local-exec” {command = “ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook

Read more

7. List of 20 docker commands and its use cases with example? by Bharath Srinivas

Limited Time Offer! For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly. Master DevOps, SRE, DevSecOps Skills! Enroll Now docker info: displays information about docker installation docker ps : to check the running containers docker ps -a : to check all the containers which are running and exited docker images: to check the list of images docker pull: to pull the image from registry docker push: to push the created image to registry

Read more

5. List of Docker file instructions and its Brief Summary? by Bharath Srinivas

Limited Time Offer! For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly. Master DevOps, SRE, DevSecOps Skills! Enroll Now FROM : To get the base image MAINTAINER: author of the generated image ADD: It is similar to COPY but it supports get remote URLs and also unzips tar balls RUN: Run is used to run specific commands. CMD: This is similar to ENTRYPOINT it allows the override the command ENTRYPOINT: after starting the

Read more

4. What is the difference between docker exec and attach? by Bharath Srinivas

Limited Time Offer! For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly. Master DevOps, SRE, DevSecOps Skills! Enroll Now when we use Docker attach it will takes to PID 1 and it will wait for input and when we exit the terminal the container is no longer up. When you use docker exec and if you exit the container is still running. Both are used to check the running container if you want

Read more

1. Components of Docker and its Brief Summary by Bharath Srinivas

Limited Time Offer! For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly. Master DevOps, SRE, DevSecOps Skills! Enroll Now Docker Engine:It is the main part of docker system. It follows client-server architecture.It is installed on host machine. It contains:1.Server: It is called as dockerd used to manage images containers network2.Rest API: used to instruct daemon3.CLI: where we run the docker commands Docker Client:when you run commandon CLI client sends to daemon which makes

Read more