Docker-based java application slimming deployment method and system in domestic CPU and OS environments

A docker container, slimming technology, applied in java application slimming deployment method and system field, to reduce file size, improve system resource utilization and application performance, and reduce volume

Pending Publication Date: 2021-12-14
INSPUR QILU SOFTWARE IND
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The technical task of the present invention is to provide a method and system for slimming java applications based on Docker in domestic CPU and OS environments, to solve ho

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Docker-based java application slimming deployment method and system in domestic CPU and OS environments
  • Docker-based java application slimming deployment method and system in domestic CPU and OS environments

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0060] Example 1:

[0061] The domestic CPU and OS environment in the domestic CPU and OS environment are slimged deployment methods based on Docker, which is to separate Java applications into public dependence component lib directory and service code, and use Docker to deploy; each application after extracsis Size 200-300KB business code creates individual containers, all application containers are mounted with public dependence directory, and multiple applications use the required functions from public dependencies, and reduce the file size of the application system by decoupling; details as follows:

[0062] S1, use the application to extract dependence and complete the project slimming package;

[0063] S2, deploy the Docker container;

[0064] S3, using the continuous integration tool for later system upgrade operation and maintenance automation update deployment.

[0065] The project slimming package of step S1 in this embodiment is as follows:

[0066] S101, separating Jav...

Example Embodiment

[0089] Example 2:

[0090] Docker-based Java application slimming deployment system, including Docker, in the OS environment, including,

[0091] The extracted unit is used to separate the Java application into two parts of public dependence and service code, thereby extracting the application to complete the project slimming packaging;

[0092] The deployment module is used to deploy the Docker container, which is created to create a publicly dependent data volume container, mount the unified shared storage directory to the specified location in the container and mount the publicly dependent data volume container to create each application container. ;

[0093] Update module, used to use the continuous integration tool to automate the automation update deployment of the later system upgrade operation and maintenance, that is, set the application container to boot from the boot, the upgrade maintenance of the later system uses the continuous integration tool to automate the update...

Example Embodiment

[0105] Example 3:

[0106] The embodiment of the present invention also provides a computer readable storage medium in which a plurality of instructions are stored, and the instruction is loaded by a processor to perform a Docker-based Java based in either embodiment of the present invention. Apply slimming deployment methods. Specifically, a system or apparatus equipped with a storage medium can be provided, and a software program code that implements a function of any of the embodiments in the above embodiment is stored, and a computer (or CPU or MPU, or MPU) of the system or device is stored on the storage medium. ) Read and execute program code stored in the storage medium.

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a Docker-based java application slimming deployment method and system in domestic CPU and OS environments, belongs to the technical field of software development, and aims to solve the technical problem of how to slim java applications and improve the utilization rate of system resources so as to relieve the pressure of domestic environment servers and operation and maintenance. According to the technical scheme is characterized in that a java application is separated into a public dependent component lib directory and a service code through a maven plug-in, and deployment is conducted through Docker; the service code with the size of 200-300 KB of each application creates a respective container after extraction, each application container is mounted with a public dependency directory, a plurality of applications use required functions from public dependency, and the file size of an application system is reduced through decoupling; the method specifically comprises the following steps: performing dissociation dependence on an application, and completing project slimming packaging; using a Docker container for deployment; using a continuous integration tool for automatic updating deployment of later system upgrading operation and maintenance.

Description

technical field [0001] The invention relates to the technical field of software development, in particular to a Docker-based java application thinning deployment method and system in a domestic CPU and OS environment. Background technique [0002] With the development of domestic computer technology, large and medium-sized enterprises and government agencies have informationized their business functions, and the application system has also become larger with the expansion of business. The domestic CPU and OS environment has also changed from a single architecture to microservices. [0003] At present, a system project may have as many as a dozen java applications. If the application is deployed in the usual way, a single java application will be one or two hundred MB in size, and the entire system will be as large as one or two GB. When the system goes online, it will need to upload hundreds of MB at every turn when deploying or updating the code for the first time. Or a f...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F9/455
CPCG06F9/45558G06F2009/45562G06F2009/4557G06F2009/45575
Inventor 程致远李超孙桂刚
Owner INSPUR QILU SOFTWARE IND
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products