Terraform Assignment – 2 by Johnson

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 Ansible playbook demo.yaml -name= install nginxhosts= webservertasks=-name: install nginx in serveryum:name: httpdstate: latest Terraform script to insstall ansible and python provider “aws” {access_key = “*******************”secret_key = “*********************”region = “eu-west-3”} resource “aws_instance” “web” {ami = “ami-12345”instance_type = “t3.micro”count = 1tags = {Name = “Demo”}} provisioner “file” {source = “etc/demo.yaml” destination = “etc/demo.yaml”} provisioner “remote-exec” {inline

Read more

Terraform Assignment – 1by Johnson

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-west-3”} provider “github” {token = “*************”} variable “instance_count” {type = numberdescription = “This is for demo of number variable”default = 3} variable “reponame” {type = stringdescription = “This is for demo of string variable”default = “day3-broad”} variable “users” {type = “list”default = [“demo1”, “demo2”, “demo3”]description =

Read more

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

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 ps — To check running containers docker images — To check pulled images docker pull — To pull images from docker hub registry docker push — To push custom images to docker hub registry docker run — To start and run a container docker exec — To enter inside the container with shell

Read more

5. List of dockerfile instructions and its Brief Summary? by Johnson

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 create a base image such as an operating system RUN: A RUN instruction is used to run specified commands. We can use multiple RUN instructions to run different commands. CMD: If we need to run a default command that executed for all the containers of the image. If we want to

Read more

4. What is the differenet between docker exec and attach? by Johnson

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 exec command is used run a new process inside the container. Attach isn’t for running an extra thing in a container, it’s for attaching to the running process. Docker attach command is used to attaches to the process that runs in the container with PID. Docker exec is specifically for running new things in a

Read more

3. What is the differenet between docker stop and kill? by Johnson

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 Both docker stop and docker kill commands are stopped the container but docker stop command stops the process inside the container and safe. Docker kill command will kill the process inside the container and terminate the running container and unsafe exit for that container.

Read more

1.Components of Docker and its Brief Summary by Johnson

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 Components of docker are Docker engine Docker registry Docker image Docker container Docker engine Docker engine is a command-line and it is interact with docker daemon. When we run docker commands the instructions sends to the daemon and perform operation by other components. Docker registry Docker registry is a hosted service where the docker

Read more