Thursday, July 9, 2020

Continuous Deployment

Continuous Deployment Continuous Deployment A Comprehensive Guide With An Example Back Home Categories Online Courses Mock Interviews Webinars NEW Community Write for Us Categories Artificial Intelligence AI vs Machine Learning vs Deep LearningMachine Learning AlgorithmsArtificial Intelligence TutorialWhat is Deep LearningDeep Learning TutorialInstall TensorFlowDeep Learning with PythonBackpropagationTensorFlow TutorialConvolutional Neural Network TutorialVIEW ALL BI and Visualization What is TableauTableau TutorialTableau Interview QuestionsWhat is InformaticaInformatica Interview QuestionsPower BI TutorialPower BI Interview QuestionsOLTP vs OLAPQlikView TutorialAdvanced Excel Formulas TutorialVIEW ALL Big Data What is HadoopHadoop ArchitectureHadoop TutorialHadoop Interview QuestionsHadoop EcosystemData Science vs Big Data vs Data AnalyticsWhat is Big DataMapReduce TutorialPig TutorialSpark TutorialSpark Interview QuestionsBig Data TutorialHive TutorialVIEW ALL Blockchain Blockchain TutorialWhat is BlockchainHyperledger FabricWhat Is EthereumEthereum TutorialB lockchain ApplicationsSolidity TutorialBlockchain ProgrammingHow Blockchain WorksVIEW ALL Cloud Computing What is AWSAWS TutorialAWS CertificationAzure Interview QuestionsAzure TutorialWhat Is Cloud ComputingWhat Is SalesforceIoT TutorialSalesforce TutorialSalesforce Interview QuestionsVIEW ALL Cyber Security Cloud SecurityWhat is CryptographyNmap TutorialSQL Injection AttacksHow To Install Kali LinuxHow to become an Ethical Hacker?Footprinting in Ethical HackingNetwork Scanning for Ethical HackingARP SpoofingApplication SecurityVIEW ALL Data Science Python Pandas TutorialWhat is Machine LearningMachine Learning TutorialMachine Learning ProjectsMachine Learning Interview QuestionsWhat Is Data ScienceSAS TutorialR TutorialData Science ProjectsHow to become a data scientistData Science Interview QuestionsData Scientist SalaryVIEW ALL Data Warehousing and ETL What is Data WarehouseDimension Table in Data WarehousingData Warehousing Interview QuestionsData warehouse architectureTalend T utorialTalend ETL ToolTalend Interview QuestionsFact Table and its TypesInformatica TransformationsInformatica TutorialVIEW ALL Databases What is MySQLMySQL Data TypesSQL JoinsSQL Data TypesWhat is MongoDBMongoDB Interview QuestionsMySQL TutorialSQL Interview QuestionsSQL CommandsMySQL Interview QuestionsVIEW ALL DevOps What is DevOpsDevOps vs AgileDevOps ToolsDevOps TutorialHow To Become A DevOps EngineerDevOps Interview QuestionsWhat Is DockerDocker TutorialDocker Interview QuestionsWhat Is ChefWhat Is KubernetesKubernetes TutorialVIEW ALL Front End Web Development What is JavaScript â€" All You Need To Know About JavaScriptJavaScript TutorialJavaScript Interview QuestionsJavaScript FrameworksAngular TutorialAngular Interview QuestionsWhat is REST API?React TutorialReact vs AngularjQuery TutorialNode TutorialReact Interview QuestionsVIEW ALL Mobile Development Android TutorialAndroid Interview QuestionsAndroid ArchitectureAndroid SQLite DatabaseProgramming ... DevOps (84 Blogs) Become a Certified Professional AWS Global Infrastructure Introduction To DevOps What is DevOps? A Beginner's Guide To Understanding DevOps And Its EvolutionWhat Are Important Pre-Requisites For DevOps Professionals?DevOps in various domains â€" How DevOps solves the problem?DevOps Real Time Scenarios â€" Know What Happens Real TimeWaterfall vs Agile: Which Is Better For You And Why?DevOps vs Agile! Everything You Need To KnowMystery of DevOpsInfrastructure as Code â€" What is it and Why is it it important?Linux commands in DevOps: Must Know For Every DevOps ProfessionalDevOps Tutorial : Introduction To DevOpsTop 10 DevOps Tools You Must Know In 2020Understanding DevOps Tools Development, Testing Deployment Technologies Involved In DevOps Git A Comprehensive Guide With An Example Last updated on May 19,2020 6.3K Views Sahiti Kappagantula Bookmark 4 / 7 Blog from DevOps Lifecycle Become a Certified Professional Releasing software isnt an art, but it is an engineering d iscipline.Continuous Deployment can be thought of as an extension to Continuous Integration which makes us catch defects earlier. In this blog on Continuous Deployment, you will go through the following topics:What is Continuous Deployment?Continuous Delivery v/s Continuous DeploymentCase Study of Continuous DeploymentBenefits of Continuous DeploymentHands OnSo, before we deep dive into continuous Deployment, let me brief you about DevOps first!What is Continuous Deployment?It is an approach of releasing software on the production servers continuously in an automated fashion. So, once a code passes through all the stages ofcompiling the source code, validating the source code, reviewing the code, performing unit testing integration testing, packaging the application continuously,it will then be deployed onto the test servesto perform User Acceptance tests. Once that is done, the software will be deployed onto the production servers for release and this is said to be Continuous Dep loyment.What is Continuous Deployment | EdurekaThis Edureka video on What is Continuous Deployment will explain to you all concepts of Continuous Deployment you need to know with the help of case studies, use-cases and a hands-on.Now, often people get confused between the terms, Continuous Delivery Continuous Deployment. So let me clarify the confusion for you!Continuous Delivery vs Continuous DeploymentContinuous Delivery does not involve deployment to production on every change that occurs. You just need to ensure that the code is always in a deployable state, so you can deploy it easily whenever you want.On the other hand, Continuous Deployment requires every change to be deployed automatically, without human intervention.So, as you can see in the diagram once Continuous Integration stages are completed, the newly built application is automatically deployed to production then it is Continuous Deployment. On the other hand, if we manage to automate everything, but decide to requi re a human approval in order to proceed with the deployment of the new version, then we are taking into account Continuous Delivery. Well, the difference is very much subtle, but it has enormous implications, making each technique appropriate for various situations.Continuous Delivery vs Continuous Deployment | EdurekaThis Edureka video on Continuous Delivery vs Continuous Deployment will explain to you the major differences between these two terms in the world of DevOps. Want to explore more about DevOps Stages? Learn Now So, now that you have an understanding of Continuous Deployment, lets see a case study on Continuous Deployment.Linkedlns Case Study Of Continuous DeploymentLinkedIn is an employment-oriented service that is mainly used for professional networking.LinkedIns prior system before implementing Continuous Deployment was more traditional.The system included various branches diverging from a single trunk developed in a parallel manner. So, a developer would write big ba tches of code with respect to various features and then wait for this feature branch to be merged into the trunk i.e. the master branch.Once the feature was merged into the master branch, it had to be again tested to make sure that it did not break into any other code of a different feature at the same instance.Since this system included several batches of code written in isolation by various teams, and then once written are merged into a single branch, this system was known as a feature branch system. This kind of system limited the scope and number of features, thus slowing down the companys development life cycle.Looking at the above conditions, Linkedln thus decided to move from its traditional feature-based development lifecycle to new Continuous deployment.This required migrating the old code and built out the automated tools to make the new system work, thus halting Linkedlns development for months.LinkedIns framework after using continuous deployment included developers writ ing code in tidy, distinct chunks, and checking each chunk into the trunk shared amongst all LinkedIn developers. The newly-added code is then subjected to a series of automated tests to remove bugs.Once the code passes the tests it is merged into trunk and listed out in a system that shows managers what features are ready to go live on the site or in newer versions of LinkedIns apps.So, that was Linkedlns success story!Now, let me continuethis discussion by telling you the basic benefits of Continuous Deployment.Benefits of Continuous DeploymentThe benefits that Continuous Deployment offers are as follows:Speed Development does not pause for releases so it is developed really fast.Secure Releases are less risky as before releasing testing is performed and all the bugs are solved.Continuous Improvements Continuous Deployment support continuous improvements which are visible to customers.Subscribe to our youtube channel to get new updates..! Hands-OnProblem Statement: Deploy an a pplication in headless mode through Jenkins server, using selenium test files.Solution: Follow the steps below to deploy the application in a headless mode.Step 1: Open your Eclipse IDE and create a Maven Project. To create a maven project go to File - New - Maven Project. In the dialog box that opens up, mention the Group Id and the Artifact Id and then click on Finish.Step 2: Once you create your maven project, include the code of Selenium App in the main Java file and make sure you have inserted the argument to deploy it in the headless mode.Step 3: After that include the required dependencies in the pom.xml file.Step 4: After this, your project is ready to run. Since we want to run it in headless mode, we have to deploy this application in the Jenkins Server.Step 5: So, you have to export your project as a JAR file. To do that, go to File - Export - choose Runnable JAR file. After that click on Next.Step 6: In the next dialog box, choose the App you want to launch configuration and then choose the directory where you want to export and then click on Finish.Step 7: After you export your project as a JAR file, you have to push it to a GitHub repository. To push it to the GitHub repository, first, create a new repository in your GitHub account. Step 7.1: To do that, go to the Repositories tab and choose the option New.Step 7.2: After that mention the repository name, and choose if you wish your project to be private or public and then finally click on Create Repository.Step 8: To push your project to this repository. Follow the below steps:Step 8.1: Go to the directory where your jar file is present and initialize gitusing the command git init.Step 8.2: After that, perform the git add operation using the command git add.Step 8.3: Once you are done with that, commit the operation using the command git commit -m Type in your message here.Step 8.4: Now connect your GitHub repository to local repository by using the command git remote add origin Link of your repo sitory(Dont include quotations)Step 8.5: Now push your repository by using the command git push -u origin masterStep 9: Once the JAR file has been pushed to the local repository, you have to create a new Job in the Jenkins server. To do that, open your Jenkins Dashboard, and then go to New Item - Type in the item name - Click on OK.Step 10: Once your job is created, click on the job and go to configure option.Step 10.1: Go to Source Code Management tab - Choose Git - Mention the Repository URL.Step 10.2: After that, go to the Build tab and choose the option Execute shell. In this mention the path of the jar file in your Jenkinsworkspace.Step 10.3: Once youre done with the above two steps, save the changes.Step 11: Click on Build Now, to build the project and see the output.Since it is continuous deployment, that is the case where this program can be deployed by any person working in the team and the others can only see the output that something has been, changed. They will not know who has deployed it directly onto the production servers.But, if you run the same project in eclipse then it will run on the browsers which we dont want in our case presently as in Jenkins we cannot open other browsers!If you want the source code of the example shown, please comment out in the comments section.If you found this Continuous Deployment blog relevant, check out theDevOps trainingby Edureka,a trusted online learning companywith a network of more than250,000satisfied learnersspread acrossthe globe. The Edureka DevOps Certification Training coursehelps learners gain expertise in various DevOps processes and tools such as Puppet, Jenkins, Nagios, Ansible, Docker, Kubernetes and GIT for automating multiple steps in SDLC. Want to get certified in DevOps? View Batches Now Got a question for me? Please mention it in the comments section and I will get back to you.Recommended videos for you What is Docker DevOps Tool For Containerization Watch Now Top DevOps Interview Question s And Answers Watch Now 5 Best Practices In DevOps Culture Watch Now What is DevOps A Beginners Guide To DevOps Watch Now Continuous Integration With Jenkins Watch Now Ansible Tutorial For Beginners Ansible Playbook Watch Now DevOps is Going to Replace SDLC! Learn Why Watch Now Puppet Tutorial DevOps Tool For Configuration Management Watch Now DevOps-Redefining your IT Strategy Watch Now DevOps Tutorial For Beginners Watch Now Devops : Automate Your Infrastructure With Puppet Watch Now What is Git A Complete Git Tutorial For Beginners Watch Now What is Jenkins? Continuous Integration With Jenkins Watch NowRecommended blogs for you Top 10 Reasons To Learn DevOps Why Learn DevOps Read Article Jenkins Master and Slave Architecture A Complete Guide Read Article All You Need To Know About Continuous Integration With Jenkins Read Article What is Jenkins? | Jenkins For Continuous Integration | Edureka Read Article Infrastructure as Code What is it and Why is it it important? Read Ar ticle Git Reflog â€" How to recover a deleted branch that was not merged Read Article Ansible Provisioning: Smarter and Effortless way of Provisioning Read Article Install Ansible Ansible Installation In Two Easy Steps Read Article Linux commands in DevOps: Must Know For Every DevOps Professional Read Article What is Continuous Integration? Read Article Mystery of DevOps Read Article What is Puppet ? Configuration Management Using Puppet Read Article Jenkins Git Integration Useful for Every DevOps Professional Read Article Top 10 DevOps Tools You Must Know In 2020 Read Article Git’ting Ahead: Hacking Git And GitHub Part 3 Read Article What are the common Git mistakes and how to fix them? Read Article Jenkins Cheat Sheet A Beginners Guide to Jenkins Read Article Chef Tutorial Transform Infrastructure Into Code Read Article Jenkins vs Jenkins X Know how Jenkins X differs from Jenkins Read Article What is DevOps? DevOps Methodology, Principles Stages Explained Read Article Co mments 0 Comments Trending Courses in DevOps DevOps Certification Training72k Enrolled LearnersWeekend/WeekdayLive Class Reviews 5 (28700)

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.