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

Embodiment 1

[0061] In the domestic CPU and OS environment of the present invention, the Java application slimming deployment method based on Docker, the method is to use the maven plug-in to separate the java application into a public dependent component lib directory and business code, and use Docker to deploy; after extraction, each application The business code with a size of 200-300KB creates its own container, and each application container is mounted with the public dependency directory, and multiple applications use the required functions from the public dependency, and the file size of the application system is reduced through decoupling; details as follows:

[0062] S1. Detach the dependencies of the application and complete the slimming and packaging of the project;

[0063] S2. Deploy using Docker containers;

[0064] S3. Use continuous integration tools for automatic update deployment of post-system upgrade operation and maintenance.

[0065] The item slimming and packaging in

Embodiment 2

[0090] In the domestic CPU and OS environment of the present invention, the Java application slimming deployment system based on Docker, the system includes,

[0091] The detachment unit is used to separate the java application into public dependencies and business codes, and then detach the application from dependencies to complete project slimming and packaging;

[0092] Deployment module, used for deploying with Docker containers, that is, creating a public dependent data volume container, mounting the unified shared storage directory of the application to a specified location in the container and mounting the public dependent data volume container at the same time to create each application container ;

[0093] The update module is used to use continuous integration tools for automatic update deployment of post-system upgrade operation and maintenance, that is, to set the application container to start automatically after booting, and to use continuous integration tools for p

Embodiment 3

[0106] The embodiment of the present invention also provides a computer-readable storage medium, wherein a plurality of instructions are stored, and the instructions are loaded by the processor, so that the processor executes the domestic CPU in any embodiment of the present invention and the Docker-based java in the OS environment. Apply a thin deployment approach. Specifically, a system or device equipped with a storage medium may be provided, on which a software program code for realizing the functions of any of the above embodiments is stored, and the computer (or CPU or MPU of the system or device) ) to read and execute the 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

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

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
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