Posts

Showing posts from February, 2018

Git Commands

1.Download git for Mac https://sourceforge.net/projects/git-osx-installer/files/ or brew install git 2.For git version: git --version 3.Configure Git username and email: $ git config --global  user.name  <username> $ git config --global user.email <emailid> Define the author name to be used for all commits in the current repository. Typically, you’ll want to use the --global flag to set configuration options for the current user. 4.SourceTree, a free visual Git client for Mac, comes with its own bundled version of Git https://www.sourcetreeapp.com/ 5.Install Git on Mac OS X: https://www.atlassian.com/git/tutorials/install-git/mac-os-x 6. git init The git init command creates a new Git repository. It can be used to convert an existing, unversioned project to a Git repository or initialize a new empty repository. cd into your project folder and run git init, and you’ll have a fully functional Git repository. However, git init only needs to be executed once to

Docker Deep Dive

Image
What is Docker? World before Docker no virtualization hypervisor-based virtualization container-based virtualization Architecture Docker uses a client-server architecture Main Docker elements deamon : process that runs on a host machine (server) client : primary Docker interface image : read-only template (build component) registry : public or private image repositories (distribution, ship component) container : created form image, holds everything that is needed for an application to run (run component) Benefits of Docker separation of roles and concerns developers focuses on building applications system administrators focuses on deployment portability: build in one environment, distributed and run on many others faster development, testing, deployment scalability: easy to spin up new containers or migrate to more powerful hosts better