Skip to main content

Posts

Showing posts from January, 2019

Learn Docker Beginner

If you are in Software industry then you must use this phrase to prove yourself. But I m sure after reading this tutorial you won't be able to say this again. 1. What is Docker Docker is a software platform designed to make it easier to create, deploy, and run applications by using containers. It allows developers to package up an application with all the parts it needs in a container, and then ship it out as one package 2. Virtual Machines vs. Docker Virtual machines have a full OS with its own memory management installed with the associated overhead of virtual device drivers. Every guest OS runs as an individual entity from the host system. On the other hand Docker containers are executed with the Docker engine rather than the hypervisor. 3. Introduction to Dockerfiles, images and containers A Dockerfile is a text file that Docker reads in from top to bottom. It contains a bunch of instructions which informs Docker HOW the Docker ima...

Install docker on Ubuntu

Step :1   Open terminal using command Ctrl+T. Step 2: Update your existing list of packages. sudo apt update Step 3: Install prerequisite packages which let apt use packages over HTTPS: sudo apt install apt-transport-https ca-certificates curl software-properties-common Step 4: Add GPG key for the official Docker repository to your system: curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - Step 5: Add the Docker repository to APT sources: sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bioni Step 6: Update the package database  sudo apt update Step 7: Make sure you are about to install from the Docker repo instead of the default Ubuntu repo: apt-cache policy docker-ce You'll see output like this, although the version number for Docker may be different: Notice that docker-ce is not installed Step 8: Finally, install Docker: sudo apt ins...

Template for API gateway creation using CI-CD

Below is the template which can be used for api gateway creation in AWS. Template : AWSTemplateFormatVersion: '2010-09-09' Transform: AWS::Serverless-2016-10-31 Description: > Application containing RestAPI for First Globals: Function: Timeout: 30 Parameters: #s3 bucket name BucketName: Type: String Description: Bucket to be used Default: lambda-deployment-d1 EnvironmentName: Type: 'AWS::SSM::Parameter::Value<String>' Default: /<parameterPath>/EnvironmentName # /myDemo/d1/EnvironmentName StageName: Type: 'AWS::SSM::Parameter::Value<String>' Default: /<parameterPath>/StageName # /myDemo/d1/EnvironmentName BucketPrefix: Type: String Description: bucket prefix Default: first-project-api # /myDemo/d1/EnvironmentName CertificateARN: Type: 'AWS::SSM::...