reviewer git.docx
Document Details
Uploaded by Deleted User
Tags
Full Transcript
reviewer git: version control - system that records changes to a file TIMELINE: source code control - 1970 revision control system - 1980 centralized version control system - 1980 subversion - 2000 git - 2005 local version control - kept all the changes to files under revision control revi...
reviewer git: version control - system that records changes to a file TIMELINE: source code control - 1970 revision control system - 1980 centralized version control system - 1980 subversion - 2000 git - 2005 local version control - kept all the changes to files under revision control revision control system - keeping patch set in a special format on disk centralized version control system - single server that contains all the versioned files. distributed version control system - fully mirror the repository including full history. in 2002, Linux kernel project began using BitKeeper. git - actively maintained open source project originally developed in 2005 by linus Torvalds. 3 states: 1.modified - you have changed the filke but not committed 2\. staged - marked modified file in its current version 3.committed - data is safely stored in local database. 3 main sections: 1.Working Directory - single checkout of one version of the project. 2\. Staging area - file that is generally contained in your git directory 3\. Git Directory - where git stores the metadata and object database command line - place you can run all git commands git init - take directory and turn it into new git repository star - way of bookmark or mark it as interesting to you. fork - creates a copy of the repository under your GitHub account Jenkins: Jenkins - open source automation tool written in java Jenkins roots in \"Hudson\" created by Kohsuke Kawaguchi Hudson release in 2004 Continuous integration is integral part if software development process. pipeline - series of automated steps that define the process of building software. job - basic unit of work in Jenkins. node/agent - a machine that is part of Jenkins environment capable of running Jenkins job. executor - computational resource on a node that can execute a Jenkins job. workspace - directory on the node where the jobs files and artifacts are stored during its execution. jenkinsfile - a text that define the entire pipeline using pipeline dsl. freestyle project - type of Jenkins job that provides a simple and flexible way to configure and run tasks multibranch pipeline - a pipeline that is automatically created and run for each branch in a version control repo artifact - file or set of files produce as a result of Jenkins SCM (Source Code Management) - integration of Jenkins with version control system build trigger - event or condition that courses a Jenkins job to run plugin - extensions that add functionality to Jenkins master - primary Jenkins server artifact repository - storage location where Jenkins can publish declarative pipelines syntax - well established hierarchy that helps in creating pipelines. scripted pipeline syntax - uses lightweight executor and runs on Jenkins master. VM:CONTAINER: virtual machines - are heavy software packages that provide complete emulation of low level hardware devices. benefit 0f vm: lower hardware cost enhanced data security portability container - lightweight software packages that contain all the dependencies required to execute the contained software. benefits of container: increased portability: greater efficiency less overhead better application development docker: first use around 2010 whem Solomon Hykes and his team dotCloud (now Docker, Inc.) docker first public release was in march 2013 reason: one or more files missing software version mismatch different configuration settings docker - open source platform that enables developer to build, run and update benefits of using docker: portability rapid performance lightweight isolation scalability docker architecture client-\> docker daemon-\>registry docker 5 states: 1.created - initial state of a docker 2.running - container is actively executing its processes 3.paused - temporarily stopped from running its processes 4.exited - container stops and transition to the exited state 5.dead - container fails to start, it is in the dead state detached mode - used for long-running services or background processes foreground mode - also known as attached mode, useful for debugging and scenarios where you need to interact with the container dockerfile - plain text configuration file from - specifies the base image workdir - set the working directory copy and add - copies files and directories run - executes a command inside the container expose - informs docker that container will listed on network cmd and entrypoint - specifies the default command to run env - sets environment variable label - adds metadata to the image user - sets the user or uid volume - created a mount point docker image or container image - lightweight, standalone executable package docker compose - tool for defining and running multi-container docker hub - cloud based repository and platform for sharing container images docker commands: docker images- list all locally available docker images docker compose - manages multi-container applications docker login - logs in to docker hub docker push IMAGE\_NAME - uploads local docker image docker logs - display logs docker pull image\_name - download docker image from container