Posts

Showing posts from August, 2024

Docker

  What are the various commands of docker file? From It defines which image to download and start from. Entry point Specifies the starting of expression to use when starting your container. CMD Command specifies the whole command to run. ADD When we want to add some files ADD statement is used. Add new files from system to the file system of image, example local files: ADD run.sh/ run.sh Tar Archieves : ADD project tar. COPY Copy the current directory contains into a container at current directory. Copy Between different environments Dev/Stage/Prod etc. What is bind mount? They will rely on host machine operating system and directory structure. A route from host computer must be supplied. What is docker persistent volume? Docker volumes provide persistent storage.Docker manages data separately.This can be shared with multiple containers separately.CLI can access docker volume. What is docker Prune command? Docker prune command Is used to Remove all containers, network images, et ce...

AWS

How do we deploy our application in AWS? We use Jenkins or docker to deploy our application in AWS. Using Jenkins docker pipeline We create docker images.We deploy images in ECS or EC2. How can we enhance availability of production during deployment in server and database? Availability comes from, how will you apply caching mechanism. We should provide hundred percent availability like when moving code to production, there should be not be production downtime. We can do a blueprint deployment Of existing instance, version and route traffic to it, and then create a new plans and update it once it is all set. Availability in RDS on AWS Can be done using read, replica and focus traffic on that by making them available in availability zone. What is cloud front?What is edge location? Amazon cloud front is a content delivery network service that helps to distribute content quickly and reliably. It uses a global network of servers called as edge locations,To cache content Closer to the users ...