car crash lawyer - REMMONT.COM

Всё подряд, без разбора, но про САМБО. Разбор завалов по ходу.
Ответить
DAVIDEa
km
km
Сообщения: 557
Зарегистрирован: 25 июл 2019, 22:22
Откуда: USA
Контактная информация:

car crash lawyer - REMMONT.COM

Сообщение DAVIDEa » 19 май 2021, 22:06

Microservices in devops - Eduard Kabrinskiy


<h1>Microservices in devops</h1>
<p>[youtube]</p>
Microservices in devops <a href="http://remmont.com">Headlines today</a> Microservices in devops
<h1>Microservices and DevOps Using Java, Spring Boot, Git Flow, Jenkins, and Docker</h1>
<h3>In this post, we develop a microservice using Java and the Spring framework and then use DevOps pipeline to deploy it with Jenkins and Docker.</h3>
<p>Join the DZone community and get the full member experience.</p>
<h2>Introduction</h2>
<p>In this article, I will create a simple microservice using Java and the Spring framework and also create a DevOps pipeline using Jenkins and Docker.</p>
<p>Note: It is assumed that the reader has a background in Java and web technologies. Spring, Jenkins, Java, Git, and Docker introductions are not covered.</p>
<p>I will cover the following points in order:</p>
<p>The microservice we're building.</p>
<p>The required software(s).</p>
<p>The DevOps pipeline we'll crete using Jenkins and Docker.</p>
<h2>The Microservice</h2>
<p>The microservice application can be cloned from Github using the following URL:</p>
<h3>The Resource Tier</h3>
<p>The entity is called Person and contains a name, an email, and an identifier. The service we're developing is to manage the Person entity.</p>
<p>The entity tier is tested using normal CRUD operations. We then checked whether the entity was persisted, queried, and updated.</p>
<h3>The Repository Tier</h3>
<p>The Repository is managed automatically by Spring Boot. The PagingAndSortingRepository interface is an extension of the CrudRepository to provide additional methods to retrieve entities using the pagination and sorting abstraction. There is no need to test the methods as test coverage will automatically arrive at 100% coverage using these interfaces.</p>
<h3>The Business Service Tier</h3>
<p>The PersonService interface contains three operations: save, find by ID, and find All instances of the several CRUD operations supported by the Repository tier.</p>
<p>The implementation of the PersonService interface calls the repository and adds any business service implementations required. There is no need to test the business service as it is automatically tested because of the repository coverage by Spring Boot.</p>
<h3>The REST API Tier</h3>
<p>The REST APIs are exposed by delegating the calls to the business service tier and then turning to the repository tier.</p>
<p>The REST API tier should be tested using a Spring Boot test. It is a good idea to perfor these tests using H2 or an in-memory database and to test the main implementation by using any standard RDBMS.</p>
<p>So that is essentially the Java code used in developing the microservice.</p>
<h2>Required Software(s)</h2>
<p>We now turn to look at the required softwares for managing the microservice.</p>
<p>In this example, I have used Java version 8. It is recommended to use version 8 because Jenkins runs on Java 8.</p>
<p>Install the latest Git version. Since I have a Windows machine, I have used Git for Windows 2.21.0 (64-bit).</p>
<h3>Docker</h3>
<p>Install the latest version of Docker. Since I have a Windows 8 machine, I have used Docker Toolbox for Windows.</p>
<h3>MySQL</h3>
<p>Install the MySQL 5.7 Docker image using the following commands:</p>
<p>The docker-machine ip command returns the IP address of the Docker instance and can be substituted in the resources\application.properties file .</p>
<h3>Jenkins</h3>
<p>Install the Jenkins Blue Ocean release using the following commands:</p>
<h2>DevOps Pipeline</h2>
<p>We now turn to take a look at the DevOps pipeline used to build, deploy, and manage the Git repository. Before we understand the pipeline, it is important to spend a few minutes on Git Flow.</p>
<h3>Git Flow</h3>
<p>Git Flow is a branching model for Git. It mainly consists of the master branch (which is parallel to the production code), a development branch (which is the main branch for development), release branches for releasing from development, and feature branches (which are for developers to work on). After the code is completed by the developers, a pull request is created for the team lead to review and merge the code to development. After the release branch is created, the bug fixes go in this branch and are again merged to develop and master once the code stabilizes. In this model, tags are created from the master branch for releases to production.</p>
<h3>JenkinsFile</h3>
<p>It is necessary to create a multi-branch pipeline in Jenkins. This allows for the Git Flow to be taken care of by Jenkins automatically. The JenkinsFile is automatically picked up by Jenkins when the link to the Git repository is provided. Stages are configured to see the pipelines visually when the build is triggered on a check-in. In this example, we are checking the code using PMD, CheckStyle, and FindBugs. You are welcome to try a more matured tool, like Sonar, in place of PMD, CheckStyle, and FindBugs. In the pipeline settings, we build the image in one step and run the image in another step to update the testing environment container whenever a change occurs in the master branch. When a tag is created, the production environment is updated with the image tag name, like 1.0.0. You are welcome to try and set this example for a different Jenkins File for production and Docker file for production which is required after the image is set up for production.</p>
<h2>Conclusion</h2>
<p>This example can be improved using Kubernetes for deployment. But a complete pipeline can be created using Docker also and that was the aim for this article.</p>
<h2>Microservices in devops</h2>

<h3>Microservices in devops</h3>
<p>[youtube]</p>
Microservices in devops <a href="http://remmont.com">News new</a> Microservices in devops
<h4>Microservices in devops</h4>
An architect gives a tutorial on how to create a basic microservice using Java and Spring before deploying it on a DevOps pipeline with Docker and Jenkins.
<h5>Microservices in devops</h5>
Microservices in devops <a href="http://remmont.com">Microservices in devops</a> Microservices in devops
SOURCE: <h6>Microservices in devops</h6> <a href="https://dev-ops.engineer/">Microservices in devops</a> Microservices in devops
#tags#[replace: -,-Microservices in devops] Microservices in devops#tags#
https://ssylki.info/?who=free-credit-check.remmont.com https://ssylki.info/?who=guaranteed-loans.remmont.com https://ssylki.info/?who=california-rea ... emmont.com https://ssylki.info/?who=remmont.com/co ... n-center-3 https://ssylki.info/?who=beach-houses-f ... t.com/news

Ответить

Вернуться в «Общие вопросы | General questions»