Posts

Showing posts from January, 2019

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 :-       ...