CN112114834A - System mirror image construction method, system, computing equipment and storage medium - Google Patents

System mirror image construction method, system, computing equipment and storage medium Download PDF

Info

Publication number
CN112114834A
CN112114834A CN202011032095.7A CN202011032095A CN112114834A CN 112114834 A CN112114834 A CN 112114834A CN 202011032095 A CN202011032095 A CN 202011032095A CN 112114834 A CN112114834 A CN 112114834A
Authority
CN
China
Prior art keywords
mirror image
customization
task
customizing
image
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
CN202011032095.7A
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.)
Beijing Shenzhidu Technology Co ltd
Original Assignee
Beijing Shenzhidu 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 Beijing Shenzhidu Technology Co ltd filed Critical Beijing Shenzhidu Technology Co ltd
Priority to CN202011032095.7A priority Critical patent/CN112114834A/en
Publication of CN112114834A publication Critical patent/CN112114834A/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a system mirror image construction method, which is suitable for being executed in a control end, wherein the control end is connected with a plurality of execution ends, and the method comprises the following steps: receiving a mirror image customizing instruction of a user and creating a mirror image customizing interface; receiving mirror image customization information of a user through a mirror image customization interface; generating a mirror image customization task according to the mirror image customization information; inserting the mirror image customizing task into a customizing task list so that an execution end can obtain a corresponding mirror image customizing task and construct a target mirror image; and receiving the state attribute of the mirror image customization task returned by the execution end, and updating the state attribute into the customization task list. The invention also discloses a corresponding system mirror image construction system, a computing device and a readable storage medium.

Description

System mirror image construction method, system, computing equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a system image construction method, system, computing device, and storage medium.
Background
The Linux is used as an open-source operating system, is more and more widely applied, can flexibly integrate a system kernel and a system, and constructs a Linux system suitable for different application requirements. And customizing different requirements of a user by analyzing the mirror image, constructing a corresponding system mirror image on a corresponding system processor architecture, and adding a corresponding file to be added into the basic mirror image according to the customized information. However, at present, the customization process of the system image is completed by manually inputting instructions by a system engineer, and if the customization user changes the system function frequently, the system engineer spends a lot of time on making the image, which reduces the efficiency of the system development work. In addition, if the mirror image customization requests of a plurality of users are processed simultaneously, the mirror image customization requests cannot be completed in parallel, so that the mirror image manufacturing process needs to be supervised all the time, and the energy and time cost of system engineering are consumed.
Therefore, a system capable of automatically completing the image customization according to the requirements of the user is needed, so as to save the time of the system engineer and improve the system development efficiency of the engineer.
Disclosure of Invention
To this end, the present invention provides a system image construction method, system, computing device and storage medium in an effort to solve, or at least alleviate, the above-identified problems.
According to an aspect of the present invention, there is provided a system image construction method, adapted to be executed in a control end, where the control end is connected to a plurality of execution ends, the method including: receiving a mirror image customizing instruction of a user and creating a mirror image customizing interface; receiving mirror image customization information of a user through a mirror image customization interface; generating a mirror image customization task according to the mirror image customization information; inserting the mirror image customizing task into a customizing task list so that an execution end can obtain a corresponding mirror image customizing task and construct a target mirror image; and receiving the state attribute of the mirror image customization task returned by the execution end, and updating the state attribute into the customization task list.
Optionally, in the system image construction method according to the present invention, receiving an image customization instruction of a user, and creating an image customization interface includes: receiving a mirror image customization instruction of a user; creating a mirror image customized information table; and displaying the created mirror image customization information table through a web page to generate a mirror image customization interface.
Optionally, in the system image construction method according to the present invention, the image customization information table includes a combination of one or more of the following fields: customizing a name of a person, customizing a mirror image version, customizing a mirror image framework, a website of a software package needing to be added, a storage directory of an output mirror image and a mirror image information description.
Optionally, in the system image construction method according to the present invention, the plurality of execution ends have different processor architecture types, and the customized image architecture corresponds to the processor architecture type.
Optionally, in the system image construction method according to the present invention, the customized image architecture includes the following types: AMD64, ARM64, and MIPS64 EL.
Optionally, in the system image construction method according to the present invention, the image customization interface further includes an image customization starting interface, and generating the image customization task according to the image customization information includes: receiving a mirror image customization request of a user through a mirror image customization starting interface; and generating the mirror image customization information into a customization task so as to store the custom task in the mirror image customization list.
Optionally, in the system image construction method according to the present invention, the state attribute includes: "not started", "in production", and "completed".
According to another aspect of the present invention, there is provided a system image constructing method, adapted to be executed at an execution end, where the execution end is connected to a control end adapted to execute any one of the methods described above, and the control end is adapted to generate a customized task list, where the customized task list includes a plurality of image customized tasks, and each image customized task includes corresponding image customized information, where the method includes: reading a customized task list of a control end at preset time intervals; acquiring a mirror image customization task corresponding to a processor architecture of a current execution end; and constructing a target mirror image according to the mirror image customization information in the mirror image customization task.
Optionally, in the system image construction method according to the present invention, the image customization information table includes a combination of one or more of the following fields: customizing the name of a person, customizing the version of the mirror image, customizing the mirror image structure, the website of a software package needing to be added, and outputting the storage catalogue of the mirror image and the description of the mirror image information.
Optionally, in the system image construction method according to the present invention, the execution end has a plurality of different processor architecture types, and the customized image architecture corresponds to the processor architecture type.
Optionally, in the system image construction method according to the present invention, the customized image architecture includes the following types: AMD64, ARM64, and MIPS64 EL.
Optionally, in the system image construction method according to the present invention, each image customization task corresponds to a state attribute, the types of the state attributes include "not started", "in production", and "completed", and acquiring the image customization task corresponding to the processor architecture of the current computing device includes: identifying a mirror image customization task of which the customized mirror image architecture type in the customization task list corresponds to the processor architecture type of the current computing equipment; and if the state attribute of the mirror image customizing task is 'not started', acquiring the mirror image customizing task and constructing a target mirror image, otherwise, processing the next mirror image customizing task.
Optionally, in the method for constructing a system image according to the present invention, reading the customized task list of the control end at predetermined time intervals includes: when no mirror image customizing task is processed currently, reading a customizing task list of a control end at preset time intervals through a timer; when the current mirror image customization task is processed, the timer stops timing.
Optionally, in the method for constructing a system image according to the present invention, constructing a target image according to the image customization information in the image customization task includes: acquiring mirror image customization information in a mirror image customization task; acquiring a website of a software package to be added in the mirror image customization information; acquiring the software package to be added according to the website of the software package to be added; acquiring a basic mirror image; and manufacturing the target mirror image according to the software package and the basic mirror image which are added as required, and returning the state information of 'during manufacturing' to the control end so that the control end can update the state attribute of the mirror image customization task.
Optionally, in the method for constructing a system image according to the present invention, the method further includes: when the target mirror image is manufactured, the target mirror image is stored in the storage directory of the output mirror image, and the state information of the finished state is returned to the control end, so that the control end can update the state attribute of the mirror image customizing task.
According to another aspect of the present invention, a system image construction system is provided, which includes a control end and a plurality of execution ends, wherein the control end is adapted to execute the method of any one of the control ends; an execution end adapted to execute the method of any one of the above execution ends.
According to another aspect of the present invention, there is provided a computing device comprising: at least one processor; and a memory storing program instructions, wherein the program instructions are configured to be executed by the at least one processor, the program instructions comprising instructions for performing the system image construction method as described above.
According to a fourth aspect of the present invention, there is provided a readable storage medium storing program instructions that, when read and executed by a computing device, cause the computing device to execute the system image construction method as described above.
According to the system mirror image construction method, the control end receives the customized information of the user by providing the customized information interface of the user, generates the customized task list so that the execution end can obtain corresponding tasks from the customized task list, and constructs the target mirror image according to the customized information. Therefore, a lot of time of an engineer is not needed to be consumed to supervise the whole mirror image manufacturing process, the mirror image customizing interface is only needed to be provided for a user, the mirror image customizing information of the user is received, the mirror image customizing process can be automatically completed, the work of the engineer is liberated, and the user can manufacture the needed system mirror image architecture at any time according to the need. The mirror image customizing tasks can be automatically manufactured one by one according to the tasks in the task customizing list, and an engineer does not need to pay attention to the mirror image customizing tasks all the time, so that the work efficiency of the engineer is improved, and the mirror image manufacturing process is simplified.
Drawings
To the accomplishment of the foregoing and related ends, certain illustrative aspects are described herein in connection with the following description and the annexed drawings, which are indicative of various ways in which the principles disclosed herein may be practiced, and all aspects and equivalents thereof are intended to be within the scope of the claimed subject matter. The above and other objects, features and advantages of the present disclosure will become more apparent from the following detailed description read in conjunction with the accompanying drawings. Throughout this disclosure, like reference numerals generally refer to like parts or elements.
FIG. 1 shows a schematic diagram of a system image construction system 100 according to one embodiment of the invention;
FIG. 2 illustrates a block diagram of a computing device 200, according to one embodiment of the invention;
FIG. 3 shows a schematic diagram of a flow chart 300 of a mirror customization method according to one embodiment of the present invention;
FIG. 4 shows a schematic diagram of a flow chart 400 of a mirror customization method according to one embodiment of the present invention;
FIG. 5 illustrates a schematic diagram of a custom information interface, according to one embodiment of the invention;
FIG. 6 illustrates a schematic diagram of a mirrored customization list, according to one embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
FIG. 1 shows a schematic diagram of a system image construction system 100 according to one embodiment of the invention. As shown in fig. 1, the system image construction system 100 includes a control end 110 and an execution end 120 (e.g., including an execution end 120-1, an execution end 120-2, and an execution end 120-3), where the execution end 120 is communicatively connected to the control end 110. The control end 110 generates a mirror image customizing task by receiving system mirror image customizing information and a customizing instruction of a user, and puts the mirror image customizing task into a mirror image customizing task list, and each execution end acquires a corresponding system mirror image customizing task from the customizing task list of the control end and performs mirror image constructing work according to the customizing information of the generated task. It should be noted that the system image construction system shown in fig. 1 is merely exemplary.
According to one embodiment of the invention, the system image construction system can be designed and realized through a Master-Worker mode, wherein the Master (namely a control end) is used for generating a system image customizing task and is put into a customizing task list to trigger the Worker (namely an execution end) to process the task, and in actual operation, the task is distributed in various forms, for example, the Master (namely the control end) actively pulls up a Worker (namely the execution end) process pool or a thread pool and distributes the task to the Worker (namely the execution end); or a Worker (i.e. an execution end) actively acquires a task, and the Worker (i.e. the execution end) is a resident process generally; and a decoupling mode is also provided, namely a Master (namely a control end) refers to receiving, splitting and result counting of tasks, specifies the number and performance indexes of the Worker, does not participate in the actual management of the Worker (namely an execution end), and is handed to a third party to schedule, monitor and schedule the Worker (namely the execution end).
The control end itself is a program software, and can be installed in any computing device, the operating system that depends on is a UOS system, the control end 110 in fig. 1 is a computing device installed with a control end program, the computing device has communication, calculation, and storage functions, the computing device can be implemented by a server, or can be a personal computer such as a desktop computer and a notebook computer, the control end 110 needs to support PHP and MySQL, and the operating system can be Linux, Unix, or UOS.
According to an embodiment of the present invention, the control terminal 110 provides the customized mirror interface to the user through a web page, for example, receives a customized mirror command of the user through a customized mirror button, and when receiving the customized mirror command of the user, provides a mirror customized interface to the user so as to receive mirror customized information of the user, where the customized information may be one or more of a customized person name, a customized mirror version, a customized mirror architecture, a website of a software package to be added, a storage directory of an output mirror, a mirror information description, and the like, and the customized mirror architecture includes: AMD64, ARM64, and MIPS64 EL. In the customization information interface, a customization button may be provided to the user to initiate the image building process when the user has entered the customization information.
The control end 110 may implement concurrent processing, different users may submit a mirror image customization instruction to the control end through a login client (not shown in fig. 1) at the same time, the control end generates a mirror image customization task according to the received mirror image customization instruction and stores the mirror image customization task in a customization task list, and at the same time, stores a state of a corresponding task, and the state of the task just received is "not started", and further includes state attributes such as "during manufacturing" and "completed".
The execution end 120 is a computing device having communication, computation, and storage functions, and may be a personal computer such as a desktop computer and a notebook computer, or may be implemented by a server. The processor architectures deployed on the execution end 120 may be AMD64, ARM64, and MIPS64EL, and the customized image architecture in the customized image task corresponds to the type of the processor architecture, in this embodiment, the execution end 120-1 is AMD64, the execution end 120-2 is ARM64, the execution end 120-3 is MIPS64EL, and the operating system of the execution end may be Linux, Unix, or UOS.
According to an embodiment of the present invention, the execution end 120 reads a task from the customized task list of the control end by actively picking up the task, scans the task queue by a timer every predetermined time (for example, 5 minutes), obtains a task in which the status attribute is "not started" and the customized mirror image architecture corresponds to the processor architecture of the execution end, and returns the status attribute "in production" to the control end when obtaining that the task starts the mirror image architecture, and updates the status attribute of the task by the control end. When the execution end 120 completes the mirror image construction, the "completed" state is returned to the control end, and the control end updates the state.
And the execution end stops scanning the task list in the process of manufacturing the mirror image, because the execution end can only be serially and independently manufactured when manufacturing the mirror image, and when the customization task is finished, the execution end continues scanning the task list to obtain the corresponding mirror image customization task. It should be noted that, since the execution end actively retrieves the task, the execution end 120 is a resident process so as to monitor the customized task list.
Each of the devices in the system image construction system shown in fig. 1 may be implemented by a computing device. FIG. 2 shows a block diagram of a computing device 200, according to one embodiment of the invention. It should be noted that the computing device 200 shown in fig. 2 is only an example, and in practice, the computing device for implementing the method for constructing a system image of the present invention may be any type of device, and the hardware configuration thereof may be the same as that of the computing device 200 shown in fig. 2 or different from that of the computing device 200 shown in fig. 2. In practice, the computing device for implementing the method for constructing a system image according to the present invention may add or delete hardware components of the computing device 200 shown in fig. 2, and the present invention does not limit the specific hardware configuration of the computing device.
As shown in FIG. 2, in a basic configuration 202, a computing device 200 typically includes a system memory 206 and one or more processors 204. A memory bus 208 may be used for communication between the processor 204 and the system memory 206.
Depending on the desired configuration, the processor 204 may be any type of processing, including but not limited to: a microprocessor (μ P), a microcontroller (μ C), a Digital Signal Processor (DSP), or any combination thereof. The processor 204 may include one or more levels of cache, such as a level one cache 210 and a level two cache 212, a processor core 214, and registers 216. Example processor cores 214 may include Arithmetic Logic Units (ALUs), Floating Point Units (FPUs), digital signal processing cores (DSP cores), or any combination thereof. The example memory controller 218 may be used with the processor 204, or in some implementations the memory controller 218 may be an internal part of the processor 204.
Depending on the desired configuration, system memory 206 may be any type of memory, including but not limited to: volatile memory (such as RAM), non-volatile memory (such as ROM, flash memory, etc.), or any combination thereof. The physical memory in the computing device is usually referred to as a volatile memory RAM, and data in the disk needs to be loaded into the physical memory to be read by the processor 204. System memory 206 may include an operating system 220, one or more applications 222, and program data 224. In some implementations, the application 222 can be arranged to execute instructions on the operating system with the program data 224 by the one or more processors 204. Operating system 220 may be, for example, Linux, Windows, or the like, which includes program instructions for handling basic system services and for performing hardware-dependent tasks. The application 222 includes program instructions for implementing various user-desired functions, and the application 222 may be, for example, but not limited to, a browser, instant messenger, a software development tool (e.g., an integrated development environment IDE, a compiler, etc.), and the like. When the application 222 is installed into the computing device 200, a driver module may be added to the operating system 220.
When the computing device 200 is started, the processor 204 reads program instructions of the operating system 220 from the memory 206 and executes them. Applications 222 run on top of operating system 220, utilizing the interface provided by operating system 220 and the underlying hardware to implement various user-desired functions. When the user starts the application 222, the application 222 is loaded into the memory 206, and the processor 204 reads the program instructions of the application 222 from the memory 206 and executes the program instructions.
Computing device 200 may also include an interface bus 240 that facilitates communication from various interface devices (e.g., output devices 242, peripheral interfaces 244, and communication devices 246) to the basic configuration 202 via the bus/interface controller 230. The example output device 242 includes a graphics processing unit 248 and an audio processing unit 250. They may be configured to facilitate communication with various external devices, such as a display or speakers, via one or more a/V ports 252. Example peripheral interfaces 244 can include a serial interface controller 254 and a parallel interface controller 256, which can be configured to facilitate communications with external devices such as input devices (e.g., keyboard, mouse, pen, voice input device, touch input device) or other peripherals (e.g., printer, scanner, etc.) via one or more I/O ports 258. An example communication device 246 may include a network controller 260, which may be arranged to facilitate communications with one or more other computing devices 262 over a network communication link via one or more communication ports 264.
A network communication link may be one example of a communication medium. Communication media may typically be embodied by computer readable instructions, data structures, program modules, and may include any information delivery media, such as carrier waves or other transport mechanisms, in a modulated data signal. A "modulated data signal" may be a signal that has one or more of its data set or its changes made in such a manner as to encode information in the signal. By way of non-limiting example, communication media may include wired media such as a wired network or private-wired network, and various wireless media such as acoustic, Radio Frequency (RF), microwave, Infrared (IR), or other wireless media. The term computer readable media as used herein may include both storage media and communication media.
In the computing device 200 according to the invention, the application 222 includes instructions for performing the build method of the system image 300/400 of the invention that may instruct the processor 204 to perform the build method of the system image 300/400 of the invention.
FIG. 3 shows a flow diagram of a method 300 of building a system image according to one embodiment of the invention. The method is suitable for being executed on a control end. As shown in fig. 3, the method begins with step S310, receiving a mirror customization instruction of a user. The user can log in the control terminal through the client to operate the control terminal, and can also directly operate the control terminal.
According to an embodiment of the present invention, the control terminal provides a mirror image customization button in the page as an interface for the user to operate, when the user clicks the mirror image customization button, the step S320 is performed, a mirror image customization interface is created, and the mirror image customization page is implemented by a mirror image customization information table, wherein the mirror image customization interface includes one or more combinations of customization information such as a name of a customization person, a version of the customization mirror image, a framework of the customization mirror image, a website of a software package to be added, a storage directory of an output mirror image, and a description of the mirror image information. The custom mirroring architecture includes the types: AMD64, ARM64, and MIPS64 EL.
Example code for generation of the mirror customization interface is as follows:
Figure BDA0002704000890000091
Figure BDA0002704000890000101
Figure BDA0002704000890000111
Figure BDA0002704000890000121
the process then proceeds to step S330, where the mirror image customization information of the user is received. The user inputs the customized information through the mirror image customized information interface. FIG. 5 illustrates a page view of a mirrored customization interface, according to one embodiment of the present invention. In this embodiment, taking the production of the UOS image as an example, the name of the customization person in the customization information is "leiguanjun", the version of the customization image is "UOSV 20", the framework of the customization image is "AMD 64", the deb package to be added stores the website of the software package to be added, and the method further includes an output OEM image storage path and a customization image description.
After the user inputs the mirror image customization information, the user clicks the "make immediately" button in the interface shown in fig. 5, and then step S340 is performed, so as to generate the mirror image customization task, and insert the customization task into the customization task list (shown in fig. 6).
According to one embodiment of the invention, the control end can receive the mirror image customizing tasks of different users in parallel and place the mirror image customizing tasks into the mirror image customizing task list, and the control end can sequence the tasks according to the generating time of the tasks and the priority of the tasks when maintaining the list. The task list includes information such as a task number, a person to be customized, a creation date, a progress (i.e., status attribute), and a customized image description. Example code for generation of the custom mirrored task list is as follows:
Figure BDA0002704000890000122
Figure BDA0002704000890000131
Figure BDA0002704000890000141
Figure BDA0002704000890000151
when a task is waiting in the task list, the execution end acquires the task in the task list by scanning the task list at regular time, and returns the state attribute corresponding to the task to the control end according to the execution state of the task to update the progress information in the task list. And the state of the task newly received by the control end is an 'un-started' state.
In addition, the control end can clear the tasks in the customized task list every period of time, and the tasks with the state attribute of being finished are mainly clear, so that the customized task list is prevented from being too long.
FIG. 4 illustrates a flow diagram of a system image construction method 400 suitable for execution at an execution site in accordance with one embodiment of the present invention.
As shown in fig. 4, the method 400 starts at step S410, where the executing end reads the task list at the controlling end every predetermined time, and the step is implemented by a timer, and according to an embodiment of the present invention, every 5 minutes, scans the task list, scans the tasks one by one according to the sequence of the tasks in the task list, and obtains the task that is consistent with the processor architecture of the current executing end, for example, if the current processor architecture is AMD64, obtains the task whose processor architecture is AMD64 and state attribute is "not started", if the current processor architecture is ARM64, obtains the task whose processor architecture is ARM64 and state attribute is "not started", and if the current processor architecture is MIPS64EL64, obtains the task whose processor architecture is MIPS64EL64 and state attribute is "not started".
According to one embodiment of the invention, when the executor acquires the corresponding task, the task list is not scanned any more, and when the task processing is completed, the timer is restarted to start the task of the scanning task list. The example code for scanning the custom task list is as follows:
Figure BDA0002704000890000161
Figure BDA0002704000890000171
after the corresponding task is acquired, step S420 is performed, and mirror image customization is performed according to the customization information in the acquired task. The method specifically comprises the following steps: and downloading the deb to be installed according to the address in the deb package to be added in the customized information. Mount $ ISO _ NAME in CDimage in/mnt, decompress and pass in live/filesystem.squarshfs in/mnt, mount deb package to be mounted, then recompress live/filesystem.squarshfs, and reconstruct the file in/mnt into ISO file.
Example code for the process is as follows:
python seafilehelper.py get$DOWNLOAD_LINK./
mv download debs
py required dependence on mount of seaf-share
#apt install-y python-requests-toolbelt python-requests python-clint
# dependencies required to install customization oem
#apt install-y squashfs-tools dpkg-dev xorriso
# copying all files in iso to iso directory
umount/mnt
mount cdimage/$ISO_NAME/mnt
rm-rf iso
mkdir-pv iso
cp-r/mnt/*iso
rm-rf rootfs
mkdir-pv rootfs
Squashfs to fs directory
unsquashfs-f-d rootfs iso/live/filesystem.squashfs
# hanging under native/dev and/proc File System to fs directory
mount--bind/proc/rootfs/proc/
mount--bind/sys/rootfs/sys/
mount--bind/dev/rootfs/dev/
mount--bind/dev/pts rootfs/dev/pts
mount--bind debs/rootfs/mnt/
Mounting relative deb package from # chorot to rootfs system, and going out of fs system after mounting
chroot rootfs/bin/sh-c"sudo apt install/mnt/*.deb"
# offload dev and proc File System
umount rootfs/proc
umount rootfs/sys
umount rootfs/dev/pts
umount rootfs/dev
umount rootfs/mnt
# Rootfs compressed into filesystems
mksquashfs rootfs filesystem.squashfs-comp xz
cp filesystem.squashfs iso/live/filesystem.squashfs
Compression of iso directory into iso mirror
xorriso-as mkisofs-r-J-c boot.cat-boot-load-size 4-boot-info-table\
-eltorito-alt-boot-no-emul-boot-V"uos 20"-file_name_limit 250-o$ISO_NAME./iso
python seafilehelper.py put$UPLOAD_LINK$ISO_NAME
umount/mnt
rm-rf rootfs
rm-rf iso
rm-rf debs
In the subsequent step S430, when the customized mirror image is completed, the "completed" state is returned, the timer is restarted, the process re-enters the step S410, and the next cycle is entered.
According to the system mirror image construction method, the control end receives the customized information of the user by providing the customized information interface of the user, generates the customized task list so that the execution end can obtain corresponding tasks from the customized task list, and constructs the target mirror image according to the customized information. Therefore, a lot of time of an engineer is not needed to be consumed to supervise the whole mirror image manufacturing process, the mirror image customizing interface is only needed to be provided for a user, the mirror image customizing information of the user is received, the mirror image customizing process can be automatically completed, the work of the engineer is liberated, and the user can manufacture the needed system mirror image architecture at any time according to the need. The mirror image customizing tasks can be automatically manufactured one by one according to the tasks in the task customizing list, and an engineer does not need to pay attention to the mirror image customizing tasks all the time, so that the work efficiency of the engineer is improved, and the mirror image manufacturing process is simplified.
The various techniques described herein may be implemented in connection with hardware or software or, alternatively, with a combination of both. Thus, the methods and apparatus of the present invention, or certain aspects or portions thereof, may take the form of program code (i.e., instructions) embodied in tangible media, such as removable hard drives, U.S. disks, floppy disks, CD-ROMs, or any other machine-readable storage medium, wherein, when the program is loaded into and executed by a machine, such as a computer, the machine becomes an apparatus for practicing the invention.
In the case of program code execution on programmable computers, the computing device will generally include a processor, a storage medium readable by the processor (including volatile and non-volatile memory and/or storage elements), at least one input device, and at least one output device. Wherein the memory is configured to store program code; the processor is configured to execute the system construction method of the present invention according to instructions in the program code stored in the memory.
By way of example, and not limitation, readable media may comprise readable storage media and communication media. Readable storage media store information such as computer readable instructions, data structures, program modules or other data. Communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media. Combinations of any of the above are also included within the scope of readable media.
In the description provided herein, algorithms and displays are not inherently related to any particular computer, virtual system, or other apparatus. Various general purpose systems may also be used with examples of this invention. The required structure for constructing such a system will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
It should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules or units or components of the devices in the examples disclosed herein may be arranged in a device as described in this embodiment or alternatively may be located in one or more devices different from the devices in this example. The modules in the foregoing examples may be combined into one module or may be further divided into multiple sub-modules.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
The invention also includes:
a4, the method of any one of A1-A3, wherein the multiple executions ends have different processor architecture types, the custom mirror architecture corresponding to the processor architecture type.
A5, the method of any one of A3 or a4, wherein the custom mirror architecture comprises types: AMD64, ARM64, and MIPS64 EL.
A6, the method according to any one of a1-a4, wherein the image customization interface further includes an image customization start interface, and the generating the image customization task according to the image customization information includes:
receiving a mirror image customization request of a user through the mirror image customization starting interface;
and generating the image customization information into a customization task so as to store the image customization task in an image customization list.
A7, the method of any one of A1-A5, wherein the state attributes include: "not started", "in production", and "completed".
B12, the method according to any one of B8-B11, wherein each image customization task corresponds to a state attribute, the types of the state attributes include 'not started', 'in production', and 'completed', and the acquiring the image customization task corresponding to the processor architecture of the current computing device includes:
identifying a mirror image customization task of which the customized mirror image architecture type in the customization task list corresponds to the processor architecture type of the current computing equipment;
and if the state attribute of the mirror image customizing task is 'not started', acquiring the mirror image customizing task and constructing a target mirror image, otherwise, processing the next mirror image customizing task.
B13, the method according to any one of B8-B12, wherein the reading the customized task list of the control end at predetermined time intervals includes:
when no mirror image customizing task is processed currently, reading a customizing task list of a control end at preset time intervals through a timer;
and when the current mirror image customization task is processed, the timer stops timing.
B14, the method according to any one of B8-B13, wherein the constructing the target image according to the image customization information in the image customization task comprises:
acquiring mirror image customization information in the mirror image customization task;
acquiring a website of a software package needing to be added in the mirror image customization information;
acquiring the software package to be added according to the website of the software package to be added;
acquiring a basic mirror image;
and manufacturing a target mirror image according to the software package and the basic mirror image which need to be added, and returning the state information of 'during manufacturing' to the control end so that the control end can update the state attribute of the mirror image customization task.
B15 the method of any one of claims B8-B14, further comprising:
and when the target mirror image is manufactured completely, storing the target mirror image into the storage directory of the output mirror image, and returning the completed state information to the control terminal so that the control terminal can update the state attribute of the mirror image customization task.
Furthermore, some of the described embodiments are described herein as a method or combination of method elements that can be performed by a processor of a computer system or by other means of performing the described functions. A processor having the necessary instructions for carrying out the method or method elements thus forms a means for carrying out the method or method elements. Further, the elements of the apparatus embodiments described herein are examples of the following apparatus: the apparatus is used to implement the functions performed by the elements for the purpose of carrying out the invention.
As used herein, unless otherwise specified the use of the ordinal adjectives "first", "second", "third", etc., to describe a common object, merely indicate that different instances of like objects are being referred to, and are not intended to imply that the objects so described must be in a given sequence, either temporally, spatially, in ranking, or in any other manner.
While the invention has been described with respect to a limited number of embodiments, those skilled in the art, having benefit of this description, will appreciate that other embodiments can be devised which do not depart from the scope of the invention as described herein. Furthermore, it should be noted that the language used in the specification has been principally selected for readability and instructional purposes, and may not have been selected to delineate or circumscribe the inventive subject matter. Accordingly, many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the appended claims. The present invention has been disclosed in an illustrative rather than a restrictive sense, and the scope of the present invention is defined by the appended claims.

Claims (10)

1. A system image construction method is suitable for being executed in a control end, the control end is connected with a plurality of execution ends, and the method comprises the following steps:
receiving a mirror image customizing instruction of a user and creating a mirror image customizing interface;
receiving mirror image customization information of a user through the mirror image customization interface;
generating a mirror image customization task according to the mirror image customization information;
inserting the mirror image customizing task into a customizing task list so that the execution end can obtain the corresponding mirror image customizing task and construct a target mirror image;
and receiving the state attribute of the mirror image customization task returned by the execution end, and updating the state attribute into the customization task list.
2. The method of claim 1, wherein receiving a user's mirror customization instruction, creating a mirror customization interface comprises:
receiving a mirror image customization instruction of a user;
creating a mirror image customized information table;
and displaying the created mirror image customization information table through a web page to generate a mirror image customization interface.
3. The method of claim 2, wherein the mirrored customization information table includes a combination of one or more of the following fields: customizing a name of a person, customizing a mirror image version, customizing a mirror image framework, a website of a software package needing to be added, a storage directory of an output mirror image and a mirror image information description.
4. A system image construction method, adapted to be executed at an execution end connected to a control end adapted to execute the method according to any one of claims 1 to 3, wherein the control end is adapted to generate a customized task list, the customized task list includes a plurality of image customized tasks, each image customized task includes corresponding image customized information, and the method includes:
reading a customized task list of the control end at preset time intervals;
acquiring a mirror image customization task corresponding to a processor architecture of a current execution end;
and constructing a target mirror image according to the mirror image customization information in the mirror image customization task.
5. The method of claim 4, wherein the mirrored customization information table includes a combination of one or more of the following fields: customizing the name of a person, customizing the version of the mirror image, customizing the mirror image structure, the website of a software package needing to be added, and outputting the storage catalogue of the mirror image and the description of the mirror image information.
6. The method of claim 4 or 5, wherein the execution end has a plurality of different processor architecture types, the custom mirror architecture corresponding to the processor architecture types.
7. The method of claim 5 or 6, wherein the customized mirroring architecture comprises types of: AMD64, ARM64, and MIPS64 EL.
8. A system image construction system comprises a control end and a plurality of execution ends, wherein,
the control terminal is suitable for executing the method of any one of claims 1 to 3;
the execution end is adapted to execute the method of any one of claims 4 to 7.
9. A computing device, comprising:
at least one processor; and
a memory storing program instructions, wherein the program instructions are configured to be executed by the at least one processor, the program instructions comprising instructions for performing the method of any of claims 1-7.
10. A readable storage medium storing program instructions that, when read and executed by a computing device, cause the computing device to perform the method of any of claims 1-7.
CN202011032095.7A 2020-09-27 2020-09-27 System mirror image construction method, system, computing equipment and storage medium Pending CN112114834A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011032095.7A CN112114834A (en) 2020-09-27 2020-09-27 System mirror image construction method, system, computing equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011032095.7A CN112114834A (en) 2020-09-27 2020-09-27 System mirror image construction method, system, computing equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112114834A true CN112114834A (en) 2020-12-22

Family

ID=73797013

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011032095.7A Pending CN112114834A (en) 2020-09-27 2020-09-27 System mirror image construction method, system, computing equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112114834A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108390920A (en) * 2018-02-02 2018-08-10 浙江臻善科技股份有限公司 Docker mirror images construction method, device, storage device and terminal device based on web terminal
CN108664313A (en) * 2018-05-18 2018-10-16 广州杰赛科技股份有限公司 The online production method of image file, device, server, system and storage medium
CN111240806A (en) * 2020-01-14 2020-06-05 南京邮电大学 Distributed container mirror image construction scheduling system and method
CN111309401A (en) * 2020-03-24 2020-06-19 广西梯度科技有限公司 Method for operating multi-CPU architecture service in Kubernetes

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108390920A (en) * 2018-02-02 2018-08-10 浙江臻善科技股份有限公司 Docker mirror images construction method, device, storage device and terminal device based on web terminal
CN108664313A (en) * 2018-05-18 2018-10-16 广州杰赛科技股份有限公司 The online production method of image file, device, server, system and storage medium
CN111240806A (en) * 2020-01-14 2020-06-05 南京邮电大学 Distributed container mirror image construction scheduling system and method
CN111309401A (en) * 2020-03-24 2020-06-19 广西梯度科技有限公司 Method for operating multi-CPU architecture service in Kubernetes

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张兆一: "云环境下基于容器的任务并行处理方法研究", 《中国优秀硕士学位论文全文数据库》, no. 2020, pages 137 - 14 *

Similar Documents

Publication Publication Date Title
US7971189B2 (en) Automated interaction diagram generation using source code breakpoints
CN112988252B (en) Operating system starting method and computing device
CN107291481B (en) Component updating method, device and system
CN112947976B (en) Operating system upgrading method, computing device and storage medium
CN103324498A (en) Method and equipment for booting bare metal computing device
CN111399897A (en) Application issuing method and system based on kubernets
US9542173B2 (en) Dependency handling for software extensions
CN111026568A (en) Data and task relation construction method and device, computer equipment and storage medium
CN113127100B (en) Heterogeneous program execution method and device, computing device and readable storage medium
CN111679837B (en) System installation control method, system and computing device
CN110874298B (en) Request data storage method and terminal equipment
US20070100897A1 (en) System and method for automatic instance data mapping generation
CN114706658A (en) Container mirror image data processing method, device, equipment and medium
CN110532016B (en) Version management method, version updating method and version management system
US9760364B2 (en) Checks for software extensions
CN113885915A (en) Service updating method, module and system
CN112114834A (en) System mirror image construction method, system, computing equipment and storage medium
Kaur et al. Implementation of Linux Optimization Technique for ARM Based System on Chip
WO2017036197A1 (en) Method and device for managing network element model
JP7025298B2 (en) Environment construction support system and environment construction support method
CN112463165B (en) Program mirror image construction method, system, computing device and readable storage medium
CN113485712B (en) Kernel clipping method and computing device
CN114169924A (en) Advertisement full-link automatic verification method and device and computing equipment
CN113971074A (en) Transaction processing method and device, electronic equipment and computer readable storage medium
CN113127429B (en) Compression processing method and system and computing equipment

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
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20201222

Assignee: Tongxin Software Technology Co.,Ltd.

Assignor: BEIJING SHENZHIDU TECHNOLOGY Co.,Ltd.

Contract record no.: X2021980009936

Denomination of invention: A system image construction method, system, computing device and storage medium

License type: Common License

Record date: 20210927

EE01 Entry into force of recordation of patent licensing contract