CN112486511A - Method for generating operating system installation mirror image through web - Google Patents

Method for generating operating system installation mirror image through web Download PDF

Info

Publication number
CN112486511A
CN112486511A CN202011308019.4A CN202011308019A CN112486511A CN 112486511 A CN112486511 A CN 112486511A CN 202011308019 A CN202011308019 A CN 202011308019A CN 112486511 A CN112486511 A CN 112486511A
Authority
CN
China
Prior art keywords
operating system
web
image
generating
system installation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011308019.4A
Other languages
Chinese (zh)
Inventor
廖卫
石勇
孙利杰
陈松政
刘文清
杨涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hunan Qilin Xin'an Technology Co Ltd
Original Assignee
Hunan Qilin Xin'an Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hunan Qilin Xin'an Technology Co Ltd filed Critical Hunan Qilin Xin'an Technology Co Ltd
Priority to CN202011308019.4A priority Critical patent/CN112486511A/en
Publication of CN112486511A publication Critical patent/CN112486511A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/63Image based installation; Cloning; Build to order

Abstract

The invention discloses a method for generating an operating system installation mirror image through a Web, which comprises the following steps of generating the operating system installation mirror image executed by a Web background: receiving an operating system installation image establishing request containing configuration files and customized modification information; generating a mirror image creating task according to the configuration file and the customized modification information and transmitting the mirror image creating task to an executing object; and detecting an execution result of the execution object, and adding the created installation image file into the development library after the installation image file is created by the execution object. The invention can conveniently and quickly generate the operating system mirror image, can directly operate on the web according to the customization and installation content configuration of different users, and has the advantages of simplicity, intuition and quick and convenient operation.

Description

Method for generating operating system installation mirror image through web
Technical Field
The invention relates to the field of operating systems, computer software and web site development, in particular to a method for generating an operating system installation image through a web.
Background
For the installation mirror image of the operating system, in the development process, the version of the operating system mirror image is often generated continuously, and because the current commonly used process for generating the operating system installation mirror image is complex, the required configuration files and contents are more and complex, and the contents are often modified, the generation of the mirror image is unstable, errors are easy to occur, the later version management is inconvenient, and the quality of the mirror image cannot be basically guaranteed. Aiming at different user requirements, an installation package list, a configuration file and user customized contents of an operating system are different, image files of the operating system are different frequently, corresponding image versions are generated aiming at the customized requirements of different users, if the traditional commands are adopted for generation, multitask simultaneous operation cannot be carried out, meanwhile, the configuration process is complex, errors are easy to occur, and in addition, the later-stage image testing and management are inconvenient. Therefore, how to quickly and flexibly implement the customizable operating system installation mirror image becomes a key technical problem to be solved urgently.
Disclosure of Invention
The technical problems to be solved by the invention are as follows: aiming at the problems in the prior art, the invention provides a method for generating an operating system installation mirror image through a web, the operating system mirror image can be generated conveniently and quickly, customization and installation content configuration can be directly operated on the web according to the requirements of different users, and the method has the advantages of simplicity, intuition and quick and convenient operation.
In order to solve the technical problems, the invention adopts the technical scheme that:
a method for generating an operating system installation image through a Web comprises the following steps of generating the operating system installation image, which are executed by a Web background:
1) receiving an operating system installation image establishing request containing configuration files and customized modification information;
2) generating a mirror image creating task according to the configuration file and the customized modification information and transmitting the mirror image creating task to an executing object;
3) and detecting an execution result of the execution object, and adding the created installation image file into the development library after the installation image file is created by the execution object.
Optionally, before step 1), the method further includes a step of the client editing and generating or uploading the configuration file and the customized modification information:
A1) accessing a Web address of a Web background through a browser of a client to log in the Web background;
A2) newly building an operating system, installing the version of the mirror image, filling and storing the required version information;
A3) editing or uploading customized modification information aiming at the version of the operating system installation image; editing or uploading a configuration file of the version aiming at the version of the operating system installation image, wherein the configuration file comprises at least one item of information in a software source warehouse and an installation package list;
A4) an operating system installation image creation request containing a configuration file and customization modification information is submitted for the version of the operating system installation image.
Optionally, the step 3) of detecting the execution result of the execution object specifically refers to detecting the execution result of the execution object by a timing task, and if an image creating task does not create an installation image file for more than a specified number of times, it is determined that the image creating task fails to be executed.
Optionally, step 2) is followed by a step of managing all os installation image creation tasks:
B1) outputting an information list of all operating system installation image creating tasks, and providing an operation link or an operation control corresponding to the image creating tasks or installation image files in the information list; when receiving an operation request sent by a client through an operation link or an operation control, skipping to execute the next step;
B2) and responding to corresponding management operation aiming at the corresponding mirror image creation task or the corresponding installation mirror image file, wherein the management operation comprises one or more of deleting the mirror image creation task, canceling the mirror image creation task, deleting the installation mirror image file, submitting the test installation mirror image file and downloading the installation mirror image file.
Optionally, the step 1) further includes a step of comparing the acquired configuration file with the customized modification information and the existing version thereof by using a version management tool to generate an update log.
Optionally, the information list further includes an operation link or an operation control for viewing the update log; the management operation includes viewing an update log.
Optionally, the information list further includes a name, a size, a generation time, a creation user, and a check code of the installation image file.
In addition, the invention also provides a device for generating the operating system installation image through the web, which comprises a microprocessor and a memory which are connected with each other, wherein the microprocessor is programmed or configured to execute the steps of the method for generating the operating system installation image through the web.
In addition, the invention also provides a device for generating the operating system installation image through the web, which comprises a microprocessor and a memory which are connected with each other, wherein the memory stores a computer program which is programmed or configured to execute the method for generating the operating system installation image through the web.
Furthermore, the present invention also provides a computer-readable storage medium having stored therein a computer program programmed or configured to execute the method of generating an operating system installation image over the web.
Compared with the prior art, the invention has the following advantages: the method comprises the following steps of generating an operating system installation mirror image executed by a Web background: receiving an operating system installation image establishing request containing configuration files and customized modification information; generating a mirror image creating task according to the configuration file and the customized modification information and transmitting the mirror image creating task to an executing object; and detecting an execution result of the execution object, and adding the created installation image file into the development library after the installation image file is created by the execution object. The invention can conveniently and quickly generate the operating system mirror image, can directly operate on the web according to the customization and installation content configuration of different users, and has the advantages of simplicity, intuition and quick and convenient operation.
Drawings
FIG. 1 is a basic flow diagram of a method according to an embodiment of the present invention.
Fig. 2 is a schematic structural diagram of a system module in the embodiment of the present invention.
Fig. 3 is a schematic diagram of the overall structure of the system in the embodiment of the invention.
Detailed Description
As shown in fig. 1, the method for generating an operating system installation image through a Web in the present embodiment includes the following steps executed in the Web background to generate an operating system installation image:
1) receiving an operating system installation image establishing request containing configuration files and customized modification information;
2) generating a mirror image creating task according to the configuration file and the customized modification information and transmitting the mirror image creating task to an executing object;
3) and detecting an execution result of the execution object, and adding the created installation image file into the development library after the installation image file is created by the execution object.
In this embodiment, a method for generating an operating system installation image through a web is developed based on a django-web framework, and image generation and image version management of the operating system are performed in a web platform manner, as shown in fig. 2 and 3, the method mainly includes:
the configuration management module is used for receiving an operating system installation image creating request containing configuration files and customized modification information and configuring and managing default configuration and customized content of operating system images of various versions;
the mirror image generation module (execution object) is used for executing a mirror image creation task to generate an installation mirror image file, generating a mirror image and monitoring a generation state and a log;
and the mirror image management module is used for detecting the execution result of the execution object, adding the created installation mirror image file into the development library after the installation mirror image file is created by the execution object, and managing the generated or generated installation mirror image file which fails, such as deletion, downloading, transfer testing, warehousing and other operations.
As an optional implementation manner, the image generation module (execution object) in this embodiment includes a plurality of computer nodes, so when the image creation task is generated and issued to the execution object in step 2), in order to improve efficiency, the method further includes detecting a CPU load of the computer node where each image generation module (execution object) is located, and selecting the computer node with the smallest CPU load to execute the image creation task. In addition, memory load, disk IO load, and the like can be comprehensively considered as required, and the principles are basically the same, which are not described herein again.
From the perspective of the client, in this embodiment, before step 1), the method further includes the step of the client editing and generating or uploading the configuration file and the customized modification information:
A1) accessing a Web address of a Web background through a browser of a client to log in the Web background;
A2) newly building an operating system, installing the version of the mirror image, filling and storing the required version information;
A3) editing or uploading customized modification information (such as default passwords, network configuration and other customized modification contents) aiming at the version of the operating system installation image; editing or uploading a configuration file of the version aiming at the version of the operating system installation image, wherein the configuration file comprises at least one item of information in a software source warehouse and an installation package list;
A4) an operating system installation image creation request containing a configuration file and customization modification information is submitted for the version of the operating system installation image.
In this embodiment, the step 3) of detecting the execution result of the execution object specifically refers to detecting the execution result of the execution object by a timing task, and if an installation image file is not created for more than a specified number of times by one image creation task, it is determined that the execution of the image creation task fails.
In this embodiment, step 2) is followed by a step of managing all os installation image creation tasks:
B1) outputting an information list of all operating system installation image creating tasks, and providing an operation link or an operation control corresponding to the image creating tasks or installation image files in the information list; when receiving an operation request sent by a client through an operation link or an operation control, skipping to execute the next step;
B2) and responding to corresponding management operation aiming at the corresponding mirror image creation task or the corresponding installation mirror image file, wherein the management operation comprises one or more of deleting the mirror image creation task, canceling the mirror image creation task, deleting the installation mirror image file, submitting the test installation mirror image file and downloading the installation mirror image file.
In this embodiment, step 1) further includes a step of comparing the acquired configuration file with the customized modification information and the existing version thereof by using a version management tool to generate an update log. As shown in fig. 2 and fig. 3, the version management tool in this embodiment is specifically implemented by a gitlb tool. The synchronization of the configuration file and the customized modification information is managed through a Gitlib tool, the time, the state, the log and the update log of the generated mirror image are recorded and realized, and the generated installation mirror image file can be correspondingly uploaded, downloaded, tested, published, deleted and the like.
In this embodiment, the information list further includes an operation link or an operation control for viewing the update log; the management operation comprises checking the update log, and the update log of the installation image file can be conveniently checked. In addition, various other operation links or operation controls such as remarks can be further added, and the corresponding management operation is expanded, which is not described herein again.
In this embodiment, the information list further includes a name, a size, a generation time, a creation user, and a check code of the image file to be installed, so that the information of the image creation task or the image file to be installed can be conveniently known.
In addition, the present embodiment also provides an apparatus for generating an operating system installation image through a web, which includes a microprocessor and a memory connected to each other, where the microprocessor is programmed or configured to execute the steps of the aforementioned method for generating an operating system installation image through a web.
In addition, the present embodiment also provides an apparatus for generating an operating system installation image through a web, which includes a microprocessor and a memory connected to each other, where the memory stores therein a computer program programmed or configured to execute the foregoing method for generating an operating system installation image through a web.
Furthermore, the present embodiment also provides a computer-readable storage medium having stored therein a computer program programmed or configured to execute the aforementioned method of generating an operating system installation image over the web.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-readable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein. The present application is directed to methods, apparatus (systems), and computer program products according to embodiments of the application wherein instructions, which execute via a flowchart and/or a processor of the computer program product, create means for implementing functions specified in the flowchart and/or block diagram block or blocks. These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks. These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only a preferred embodiment of the present invention, and the protection scope of the present invention is not limited to the above embodiments, and all technical solutions belonging to the idea of the present invention belong to the protection scope of the present invention. It should be noted that modifications and embellishments within the scope of the invention may occur to those skilled in the art without departing from the principle of the invention, and are considered to be within the scope of the invention.

Claims (10)

1. A method for generating an operating system installation image through a Web is characterized by comprising the following steps of generating the operating system installation image, which are executed by a Web background:
1) receiving an operating system installation image establishing request containing configuration files and customized modification information;
2) generating a mirror image creating task according to the configuration file and the customized modification information and transmitting the mirror image creating task to an executing object;
3) and detecting an execution result of the execution object, and adding the created installation image file into the development library after the installation image file is created by the execution object.
2. A method for generating an operating system installation image via the web as claimed in claim 1, wherein step 1) is preceded by the step of the client editing the generated or uploaded configuration file and the customized modification information:
A1) accessing a Web address of a Web background through a browser of a client to log in the Web background;
A2) newly building an operating system, installing the version of the mirror image, filling and storing the required version information;
A3) editing or uploading customized modification information aiming at the version of the operating system installation image; editing or uploading a configuration file of the version aiming at the version of the operating system installation image, wherein the configuration file comprises at least one item of information in a software source warehouse and an installation package list;
A4) an operating system installation image creation request containing a configuration file and customization modification information is submitted for the version of the operating system installation image.
3. The method for generating an installation image of an operating system via a web as recited in claim 1, wherein the step 3) of detecting the execution result of the execution object specifically means detecting the execution result of the execution object by a timing task, and if an image creation task does not create an installation image file for more than a specified number of times, it is determined that the image creation task fails to be executed.
4. The method for generating an operating system installation image through the web as claimed in claim 1, wherein the step 2) is followed by the step of managing creation tasks of all operating system installation images:
B1) outputting an information list of all operating system installation image creating tasks, and providing an operation link or an operation control corresponding to the image creating tasks or installation image files in the information list; when receiving an operation request sent by a client through an operation link or an operation control, skipping to execute the next step;
B2) and responding to corresponding management operation aiming at the corresponding mirror image creation task or the corresponding installation mirror image file, wherein the management operation comprises one or more of deleting the mirror image creation task, canceling the mirror image creation task, deleting the installation mirror image file, submitting the test installation mirror image file and downloading the installation mirror image file.
5. The method for generating an operating system installation image through the web as recited in claim 4, wherein the step 1) further comprises the step of comparing the obtained configuration file and the customized modification information and the existing version thereof through a version management tool to generate an update log.
6. A method of generating an operating system installation image over the web as recited in claim 5 wherein the list of information further comprises an action link or an action control to view an update log; the management operation includes viewing an update log.
7. A method for generating an operating system installation image over the web as described in claim 6, wherein said list of information further comprises a name, a size, a generation time, a create user, and a check code for the installation image file.
8. An apparatus for generating an operating system installation image over a web, comprising a microprocessor and a memory connected to each other, wherein the microprocessor is programmed or configured to perform the steps of the method for generating an operating system installation image over a web as claimed in any one of claims 1 to 7.
9. An apparatus for generating an operating system installation image via web, comprising a microprocessor and a memory connected to each other, wherein the memory stores therein a computer program programmed or configured to perform the method of generating an operating system installation image via web according to any one of claims 1 to 7.
10. A computer-readable storage medium having stored thereon a computer program programmed or configured to perform the method of generating an operating system installation image over the web as claimed in any one of claims 1 to 7.
CN202011308019.4A 2020-11-19 2020-11-19 Method for generating operating system installation mirror image through web Pending CN112486511A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011308019.4A CN112486511A (en) 2020-11-19 2020-11-19 Method for generating operating system installation mirror image through web

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011308019.4A CN112486511A (en) 2020-11-19 2020-11-19 Method for generating operating system installation mirror image through web

Publications (1)

Publication Number Publication Date
CN112486511A true CN112486511A (en) 2021-03-12

Family

ID=74932521

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011308019.4A Pending CN112486511A (en) 2020-11-19 2020-11-19 Method for generating operating system installation mirror image through web

Country Status (1)

Country Link
CN (1) CN112486511A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114443687A (en) * 2021-12-23 2022-05-06 苏州浪潮智能科技有限公司 Software package self-defining system and application method for constructing operating system image

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106843976A (en) * 2017-01-25 2017-06-13 北京百度网讯科技有限公司 Method and apparatus for generating image file
CN108664313A (en) * 2018-05-18 2018-10-16 广州杰赛科技股份有限公司 The online production method of image file, device, server, system and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106843976A (en) * 2017-01-25 2017-06-13 北京百度网讯科技有限公司 Method and apparatus for generating image file
CN108664313A (en) * 2018-05-18 2018-10-16 广州杰赛科技股份有限公司 The online production method of image file, device, server, system and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114443687A (en) * 2021-12-23 2022-05-06 苏州浪潮智能科技有限公司 Software package self-defining system and application method for constructing operating system image
CN114443687B (en) * 2021-12-23 2024-02-27 苏州浪潮智能科技有限公司 Software package custom system for constructing operating system image and application method

Similar Documents

Publication Publication Date Title
CN110532189B (en) Continuous integration system, method and device
CN108196915B (en) Code processing method and device based on application container engine and storage medium
US7716414B2 (en) Method for updating a mobile device using an update package obtained from a remote server
EP2527938B1 (en) Programmable controller system and development system
CN110162334B (en) Code management method, device and storage medium
CN111580926A (en) Model publishing method, model deploying method, model publishing device, model deploying device, model publishing equipment and storage medium
CN113434158B (en) Custom management method, device, equipment and medium for big data component
CN105653261A (en) Development integration test method and system on the basis of cloud computing environment
WO2008069431A1 (en) Download server and method for installing and updating application program using partitioning of shared library
CN111651352B (en) Warehouse code merging method and device
CN109939441B (en) Application multi-disk verification processing method and system
CN113434180B (en) Data processing method and device for application, server and storage medium
CN110795105A (en) Automatic compiling and deploying method and system for power distribution automation master station system
CN112486511A (en) Method for generating operating system installation mirror image through web
CN111666079A (en) Method, device, system, equipment and computer readable medium for software upgrading
CN112286543B (en) Application service deployment method and device
CN111831567B (en) Application test environment configuration method, device, system and medium
CN115129574A (en) Code testing method and device
US7437705B1 (en) System and method for building an application on a computing device which includes an environment-controlling process
JP5052472B2 (en) Program setting information switching system and switching method
EP3734445A1 (en) Secure and reliable remote update of a control device in an elevator
CN110806891A (en) Method and device for generating software version of embedded equipment
CN115543429A (en) Project environment building method, electronic equipment and computer readable storage medium
US20230010781A1 (en) Reducing time to test cycle first fail
CN112799652A (en) Client construction method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210312