Posts

Showing posts from 2019

CICD pipeline using Jenkins

Image
A typical CI/CD pipeline is linear and one-directional . I t is composed of a few stages, or phases. The first phase  is CI  [   Continuous Integration ] . t akes a commit from   SCM like GIT  and trigger  the build. CI  consist of .  { Checkout , Compile , UNIT TEST , Package} in case of containerized app  docker image creation , docker push  and docker tag also appended. When all these steps are successful, a unique artifact is built, packaged, and published to a repository. This can be a JAR, .tar.gz file, a container image, or whatever is applicable to the chosen language and platform.  CD part has 2 meanings  :-  Continuous Delivery and  Continuous Deployment Continuous Delivery  :-   When and what to promote is a choice. Promotion typically happens when a build is considered to be “good enough”. QA has run their tests, the Product Owner has signed o...

Mysql migration to AWS RDS

Migration of MySQL or MariaDB database to AWS RDS  is very much on demand  because of various benefits this AWS service offers (e.g., scalability and high availability). However, there are several factors that need to be considered when developing a database migration strategy. Key point to check Availbility Current usage Security Method for Migration DMS Using mysqldump utility 1. DMS DMS is a database migration service . Allows us to migrate data from an on-premises database to RDS Pros:-  DMS is great at importing data quickly Cons:-  lacks in importing schema objects that are not directly part of the data such as triggers, functions, and stored procedures. Step 1: Create the RDS instance Step 2: Create the DMS replication instance and provision it in a subnet that can communicate with your non-RDS instance (source) and the RDS instance (target). Step 3: Create a Source Endpoint and a Target Endpoint. The DMS instance will use th...

Host a Static WebSite using S3 bucket and CloudFront AWS services

 Below task have to  execute for hosting  the website. Register a Domain  on Route 53 Create an S3 Bucket Upload to S3 Create a CloudFront Distribution Point Domain to CloudFront in Route 53 Redirect Bare Domain to WWW Enable HTTPS Register a Domain :- AWS is a domain registrar, and in order to register a domain with AWS, you need to use the service called "Route 53". Go to the AWS Console and click on "Route 53", under the "Networking" section. Then go to the Domain Registration section, click on the "Register Domain" button, type in the domain you want to register, Once you've found an available domain that you like, Purchased that domain. Create a bucket :- AWS  cli  command aws s3api create-bucket --bucket my-bucket --region us-east-1 The following command creates a bucket named my-bucket in the eu-west-1 region. Regions outside of us-east-1 require the appropriate LocationConstrai...

Containerization

Containerization allows you to create self-contained Linux execution environments. Any program and all its dependencies can be bundled up into a single file . Creating a container can be done programmatically, allowing powerful  CI and CD   pipelines to be formed. Multiple programs can be added into a single container, but you should limit yourself to one process per container if at all possible. It’s better to have many small containers than one large one. If each container has a tight focus, updates are easier to deploy and issues are easier to diagnose.

Docker Labs for beginners

Set up  docker  on ubuntu 1.  Create  below shell script  and execute  that script $ cat  install-docker.sh #!/bin/bash echo "installing docker" apt-get update apt-get install -y \     apt-transport-https \     ca-certificates \     curl \     software-properties-common curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - add-apt-repository \    "deb https://download.docker.com/linux/$(. /etc/os-release; echo "$ID") \    $(lsb_release -cs) \    stable" apt-get update && apt-get install -y docker-ce=$(apt-cache madison docker-ce | grep 17.03 | head -1 | awk '{print $3}') $ chmod a+x install-docker.sh $ sh install-docker.sh 2. Check if service is up  or not $  systemctl status docker $ systemctl start  docker 3.  Check docker version $ docker --version Task 1 :-       ...