A method and an apparatus for version management

A version management and version technology, applied in the direction of version control, software maintenance/management, etc., can solve problems such as the inability to quickly roll back, the inability to record upgrades, and the change history of rollbacks

Inactive Publication Date: 2019-01-11
GOSUNCN TECH GRP
View PDF6 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, this method can only know the version information of each service currently in use through the label of the docker image in use. When a pr

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
  • A method and an apparatus for version management
  • A method and an apparatus for version management
  • A method and an apparatus for version management

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0044] Embodiment 1 of the present invention discloses a method for version management, which is applied to a version management system. The system includes a database that uniformly obtains and stores the version number of the service image. In addition to storing the version number in the specific database, It can also store information such as the service name of all service mirrors, the latest version number, the latest version mirror id, the latest version upload time, the latest version description, each historical version number, mirror id, upload time, version description and other information, such as figure 1 As shown, the method includes the following steps:

[0045] Step 101, when it is detected that there is a newly uploaded service image in the system, update the version number in the version number database of the system based on the newly uploaded service image;

[0046] Specifically, the "update the version number in the version number database of the system b...

Embodiment 2

[0070] Embodiment 2 of the present invention also discloses a version management device, which is applied to a version management system, and the system includes a database for unified acquisition and storage of service image version numbers, such as figure 2 As shown, the equipment includes:

[0071] An update module 201, configured to update the version number in the version number database of the system based on the newly uploaded service image when it is detected that there is a newly uploaded service image in the system;

[0072] The processing module 202 is configured to perform a query in the database based on the version number related to the version upgrade or version rollback when version upgrade or version rollback of the service mirroring is required, and obtain the service corresponding to the version number according to the query. The image is upgraded or rolled back.

[0073] In a specific embodiment, the update module 201 "updates the version number in the ve...

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

A method and an apparatus for version management are provided in the embodiment of that present invention. The system comprises a database for uniformly acquiring and storing the version number of a service mirror. The method comprises: when a new uploaded service image is detected in the system, updating the version number in the version number database of the system based on the newly uploaded service image; when a version upgrade or a version rollback of a service image is required, querying the database based on a version number related to the version upgrade or the version rollback, and performing the version upgrade or the version rollback according to the service image corresponding to the queried version number. The unified management of each service version is realized, the latestversion of the current service and version history information can be easily known, and when the version update caused problems, the old version can be quickly carried out, to ensure the normal operation of the service.

Description

technical field [0001] The invention relates to the field of version management, in particular to a method and device for version management. Background technique [0002] Now for docker (an open source application container engine that allows developers to package their applications and dependencies into a portable container, the container fully uses the sandbox mechanism and there will be no interface between them) version management, using The way is to use the label of the image to distinguish the version management methods of different images. Specifically, use the linux (a free-to-use and freely disseminated operating system) command to view the image information of docker, and use the label information in the image information Differentiate different versions of the same service, and replace the original image and corresponding tags while iterating the service version. [0003] However, this method can only know the version information of each service currently in us...

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): G06F8/71
CPCG06F8/71
Inventor 林彦颖李文辉王彬超梁健聪何志澎黄仝宇汪刚宋一兵侯玉清刘双广
Owner GOSUNCN TECH GRP
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