XWIKI system configuration method, system and computer equipment

By configuring the DOKUWIKI system in containers, the installation and configuration difficulties in troubleshooting and server migration are solved, efficient and rapid system migration and fault recovery are achieved, and the system's flexibility and scalability are improved.

CN110673923BActive Publication Date: 2024-09-13CHINA PING AN PROPERTY INSURANCE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910841827.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-09-06
Publication Date
2024-09-13
Estimated Expiration
2039-09-06

AI Technical Summary

Technical Problem

The existing DOKUWIKI system needs to rescue data and reinstall it when it fails, and when the server is migrated, installation and configuration are difficult due to version incompatibility, which consumes a lot of human resources and time.

Method used

Using the containerized configuration method, by building the container engine, selecting the target base image, configuring the application image and starting the container, the isolation, high resource efficiency and fast restart of the XWIKI system are achieved, and version migration is supported without reinstallation.

Benefits of technology

The containerized configuration of the DOKUWIKI system is realized, which reduces the difficulty of troubleshooting and migration, improves the efficiency and speed of migration, avoids repeated installation and configuration steps, and improves the flexibility and scalability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN110673923B
    Figure CN110673923B
Patent Text Reader

Abstract

The embodiment of the present invention provides a method for configuring an XWIKI system, the method comprising: building a container engine according to user instructions, the container engine being used to manage multiple containers; selecting a target base image from multiple candidate base images according to a preset rule; configuring multiple application images of the XWIKI system based on the target base image; and starting and running a corresponding container based on each application image to obtain a service instance corresponding to each application image. The embodiment of the present invention can solve the technical problem of not needing to rescue data and reinstall it in the event of a failure, and not needing to reinstall and configure the new server when data is migrated to the new server.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of computer data processing, and in particular to an XWIKI system configuration method, system, computer device, and computer-readable storage medium. Background Art

[0002] WIKI is a collaborative web application that allows end users to add and edit content. A WIKI application refers to a collection of WIKI pages written in a markup language that are interconnected by hyperlinks. WIKI pages are served by a WIKI server to a standard web browser that is a WIKI client. A WIKI server can also provide a special web page that is a WIKI editor for users to add and edit content. Some WIKI sites allow WIKI content to be written according to WIKI syntax, such as having special characters that indicate hyperlink content, bulleted content, etc. WIKI syntax is generally designed to be more intuitive for end users than standard markup languages.

[0003] In daily development and maintenance, the WIKI knowledge base plays the role of a knowledge sharing maintainer, and with the updating of the technological era, it begins to assume the responsibilities of code version control, instant communication of the community, and robot services. The WIKI knowledge base is generally managed by DOKUWIKI, which is a WIKI engine program with the advantages of being small and flexible and not requiring database cooperation. In the prior art, DOKUWIKI is directly installed on the server, which has defects such as difficult maintenance. For example: 1. If a failure occurs, data needs to be rescued and reinstalled; 2. If the service needs to be migrated to a new server, and the new version of DOKUWIKI happens to have undergone a major upgrade and is not compatible with the lower version, it will require a huge amount of human resources and time costs to collect all the original version files and installation packages, and reinstall and configure them on the new server. Summary of the invention

[0004] In view of this, the purpose of the embodiments of the present invention is to provide an XWIKI system configuration method, system, computer device and computer-readable storage medium to solve the technical problem of rescuing data and reinstalling it when a failure occurs, as well as the technical problem of reinstalling and configuring it on a new server.

[0005] To achieve the above object, an embodiment of the present invention provides an XWIKI system configuration method, the method comprising:

[0006] Building a container engine according to user instructions, wherein the container engine is used to manage multiple containers;

[0007] Selecting a target base image from multiple candidate base images according to a preset rule;

[0008] Configure multiple application images of the XWIKI system based on the target base image; and

[0009] Start and run the corresponding container based on each application image to obtain the service instance corresponding to each application image.

[0010] Preferably, the step of building a container engine according to user instructions includes:

[0011] Detect system environment information and hardware information, the system environment information includes network configuration parameters, system type and system version, and the hardware information includes CPU information and memory information;

[0012] Sending the system environment information and the hardware information to a server, so that the server generates a build script according to the system environment information and the hardware information;

[0013] receiving a build script returned by the server, wherein the build script is used to guide the build of the container engine; and

[0014] The container engine is installed according to the build script.

[0015] Preferably, the step of selecting a target base image from a plurality of candidate base images according to a preset rule includes:

[0016] Generate an image list based on user instructions, the image list including each image file and the warehouse name, label, image ID, creation time and occupied space corresponding to each image file; and

[0017] A target base image is selected from the image list, and a fetch instruction for the target base image is executed to obtain the target base image from the image repository.

[0018] Preferably, the step of selecting a target base image from a plurality of candidate base images according to a preset rule includes:

[0019] Receiving image requirement description information input by a user through a user graphical interface; and

[0020] A semantic parsing operation is performed on the image requirement description information, and a corresponding target fetching instruction is generated based on the result of the semantic parsing operation, so as to obtain the target basic image from the image repository through the target fetching instruction.

[0021] Preferably, the multiple application images include a MYSQL image, an XWIKI base image, a SOLR engine image, an NGINX balancer image and / or a network packet capture test image.

[0022] Preferably, the steps of starting and running corresponding containers based on each application image to obtain service instances corresponding to each application image include:

[0023] Starting and running the corresponding first container based on the MYSQL image to obtain the corresponding MYSQL cluster instance;

[0024] Starting and running a corresponding second container based on the XWIKI base image to obtain a corresponding XWIKI instance;

[0025] Starting and running a corresponding third container based on the SOLR image to obtain a corresponding SOLR search engine instance; and / or

[0026] Based on the NGINX balancer image, the corresponding fourth container is started and run to obtain the corresponding NGINX instance.

[0027] Preferably, the steps of starting and running corresponding containers based on each application image to obtain service instances corresponding to each application image include:

[0028] Deploy middleware in the XWIKI base image, the middleware including libreoffice middleware and jgroups middleware, create the second container based on the XWIKI base image in which the middleware is deployed, so as to obtain a corresponding XWIKI single instance; run the XWIKI single instance, and debug the libreoffice middleware according to the running parameters generated during the running process; if the XWIKI single instance runs successfully, run the XWIKI multi-node cluster, and debug the jgroups middleware according to the running parameters of the XWIKI multi-node cluster.

[0029] To achieve the above purpose, an embodiment of the present invention further provides an XWIKI configuration system, including:

[0030] A building module, used to build a container engine according to user instructions, wherein the container engine is used to manage multiple containers;

[0031] A selection module, used to select a target base image from multiple candidate base images according to a preset rule;

[0032] A configuration module, configured to configure multiple application images of the XWIKI system based on the target base image; and

[0033] The running module is used to start and run the corresponding container based on each application image to obtain the service instance corresponding to each application image.

[0034] To achieve the above objectives, an embodiment of the present invention further provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the steps of the XWIKI system configuration method described above are implemented.

[0035] To achieve the above objective, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program can be executed by at least one processor to enable the at least one processor to perform the steps of the XWIKI system configuration method as described above.

[0036] The XWIKI system configuration method, system, computer device and computer-readable storage medium provided in the embodiments of the present invention configure the XWIKI architecture in a containerized manner, and have the technical advantages of isolation, low resource consumption, high migration efficiency, fast restart speed, etc. When the transformed XWIKI system fails, there is no need to rescue data and reinstall it; and, when migrating to a new server, the new version of DOKUWIKI happens to have undergone a major upgrade and is not compatible with lower versions, so the entire migration can be performed in containers without reinstalling and configuring on the new server. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 This is a flow chart of Embodiment 1 of the XWIKI system configuration method of the present invention.

[0038] Figure 2 This is a schematic diagram of program modules of the second embodiment of the XWIKI configuration system of the present invention.

[0039] Figure 3 This is a schematic diagram of the hardware structure of the computer device embodiment 3 of the present invention. DETAILED DESCRIPTION

[0040] In order to make the purpose, technical scheme and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0041] The XWIKI system is an open source WIKI system written in Java and other programming languages. It supports various databases and has excellent scalability.

[0042] The following embodiments will be described exemplarily by taking the computer device 2 as the execution subject.

[0043] Embodiment 1

[0044] See also Figure 1 , shows a flowchart of the steps of the XWIKI system configuration method according to the first embodiment of the present invention. It can be understood that the flowchart in the embodiment of the method is not used to limit the order of executing the steps. The details are as follows.

[0045] Step S100: Building a container engine according to user instructions, wherein the container engine is used to manage multiple containers.

[0046] The container engine may be a Docker community version, which provides container technology that can run several containers on the same host or virtual machine, each container being an independent virtual environment or application.

[0047] In an exemplary embodiment, the step S100 may include the following steps:

[0048] (1) Detecting system environment information and hardware information of the computer device 2, wherein the system environment information includes network configuration parameters, system type, system version, etc., and the hardware information includes CPU information, memory bar information, etc.;

[0049] (2) sending the system environment information and hardware information to a server, so that the server generates a build script according to the system environment information and hardware information;

[0050] (3) receiving the build script returned by the server;

[0051] (4) Install Docker according to the build script;

[0052] The build script is used to guide the computer device to build Docker. Specifically: (a) install the HTTPS CA certificate; (b) add the GPG key of the Docker official software source; (c) add the Docker APT source to the list, and after the Docker APT source is successfully added, update the APT software package cache; (d) obtain the Docker image from the updated APT software package cache and install the Docker image.

[0053] Step S102 : selecting a target base image from a plurality of candidate base images according to a preset rule.

[0054] The preset rules may be: adapting and selecting the target base image according to the minimum installation hardware environment requirements of each candidate base image, configuring and selecting the target base image according to the hardware environment of the computer device 2, or selecting the target base image according to other rules such as usage.

[0055] Multiple base images to be selected are pre-stored in the image repository to provide dependency packages for the application. The multiple base images to be selected include: centos, suze, debian, alpine, etc. For example, alpine can be selected as the target base image, which has the advantages of small size and carrying an excellent software step repository.

[0056] In an exemplary embodiment, step S102 may include the following steps: generating an image list based on user instructions, the image list including each image file and the warehouse name, label, image ID, creation time and occupied space corresponding to each image file; and selecting a target base image from the image list, and executing a retrieval instruction for the target base image to obtain the target base image from the image warehouse.

[0057] In an exemplary embodiment, the step S102 may include the following steps: receiving image requirement description information input by a user through a user graphical interface; and performing a semantic parsing operation on the image requirement description information, and generating a corresponding target retrieval instruction based on the result of the semantic parsing operation, so as to obtain the target base image from the image repository through the target retrieval instruction.

[0058] Step S104: configuring multiple application images of the XWIKI system based on the target basic image.

[0059] The multiple application images include MYSQL image, XWIKI basic image, SOLR engine image, NGINX balancer image, network packet capture test image, etc.;

[0060] For example, with Alpine as the target base image, the multiple application images can be configured through the Dockerfile file. Specifically, the Docker daemon is started to execute a sequence of instructions in the Dockerfile file to generate the corresponding application image. The Dockerfile is a text file consisting of multiple elements, such as: the specified instructions of the target base image; the files that need to be copied to the application image; the network port; the multiple instructions to build the application image, such as FROM, RUN, etc. The FROM instruction is used to specify the base image, and RUN is used to execute command line commands; at the same time, the environment variables set when the application image starts the container; and the instructions run when the container starts.

[0061] Step S106: start and run corresponding containers based on each application image to obtain service instances corresponding to each application image.

[0062] Exemplarily, a new container can be created and started based on the corresponding application image, or a container in a terminated state can be restarted; specifically, when creating a container: check whether the corresponding application image exists locally; create and start a container through the application image; allocate a file system, and mount a readable and writable layer outside the read-only image layer; bridge a virtual interface from the bridge interface configured by the computer device to the container; configure an IP address for the container from the address pool; execute the application specified by the user; and the container is terminated after the execution is completed.

[0063] In an exemplary embodiment, step S106 may include the following steps:

[0064] (1) Starting and running a corresponding first container based on the MYSQL image to obtain a corresponding MYSQL cluster instance;

[0065] Create a new cluster instance and create a specified number of nodes, such as a Swarm cluster and a Kubernetes cluster.

[0066] (2) Start and run the corresponding second container based on the XWIKI base image to obtain the corresponding XWIKI instance; specifically: modify xwiki.cfg and enable superadmin; modify hibernate.hbm.xml and enable MySQL database connection; it is necessary to create a database xwiki in MySQL and grant relevant permissions.

[0067] Further:

[0068] Deploy middleware, such as libreoffice middleware, jgroups middleware, etc., in the XWIKI base image, create the second container based on the XWIKI base image in which the middleware is deployed, so as to obtain a corresponding XWIKI single instance; run the XWIKI single instance, and debug the libreoffice middleware according to the running parameters generated during the running process; if the XWIKI single instance runs successfully, run the XWIKI multi-node cluster, and debug the jgroups middleware according to the running parameters of the XWIKI multi-node cluster.

[0069] JGroups is a cluster communication library. Applications can use JGroups to join a cluster, send messages to other nodes in the cluster, and get notifications when cluster nodes leave or join the cluster. In JGroups, the JChannel class provides the main API for connecting to a cluster, sending and receiving messages, and registering listeners.

[0070] Taking joining a cluster as an example, a channal may be created and the connect() method may be called to join the cluster; the configuration information of the channal may be defined in the file udp.xml as required, and the configuration information is passed in as a parameter of the constructor.

[0071] Specifically, the jgroups middleware can be debugged through the protocol stack configuration: users can enter their own protocols and add them to the configuration.

[0072] (3) starting and running a corresponding third container based on the SOLR image to obtain a corresponding SOLR search engine instance;

[0073] (4) starting and running a corresponding fourth container based on the NGINX balancer image to obtain a corresponding NGINX instance;

[0074] Specifically, parameters are configured for the fourth container according to user instructions, the parameters including naming, mapping port 80, etc. When the fourth container is in operation, it receives access request information from an external device through port 80, and feeds back corresponding response information.

[0075] In an exemplary embodiment, a network service discovery framework may also be configured, wherein the network service discovery framework is used to determine a network location of a service instance.

[0076] The XWIKI data platform is constantly supplemented with new features from the Internet, which can guarantee usage needs for a long time. However, the iterative loss and recursive coupling between data will become more and more serious over time. A horizontally scalable container architecture can support the explosive growth of data. Therefore, the network service discovery framework can be configured. Based on the network service discovery framework, vertical or horizontal expansion can be performed on another server.

[0077] Embodiment 2

[0078] Please continue reading Figure 2 , showing a schematic diagram of program modules of the second embodiment of the XWIKI configuration system of the present invention. In this embodiment, the XWIKI configuration system 20 may include or be divided into one or more program modules, one or more program modules are stored in a storage medium and executed by one or more processors to complete the present invention and implement the above-mentioned XWIKI system configuration method. The program module referred to in the embodiment of the present invention refers to a series of computer program instruction segments that can complete specific functions, which is more suitable for describing the execution process of the XWIKI configuration system 20 in the storage medium than the program itself. The following description will specifically introduce the functions of each program module of this embodiment:

[0079] The construction module 200 is used to build a container engine according to user instructions, and the container engine is used to manage multiple containers. The container engine can be a Docker community version, and the container technology it provides can run multiple containers on the same host or virtual machine, and each container is an independent virtual environment or application.

[0080] The selection module 202 is used to select a target base image from multiple base images to be selected according to preset rules. Multiple base images to be selected are pre-stored in the image warehouse and are used to provide dependency packages for the application. The multiple base images to be selected include: centos, suze, debian, alpine, etc. Exemplarily, alpine can be selected as the target base image, which has the advantage of being small in size and carrying an excellent software step warehouse.

[0081] Configuration module 204 is used to configure multiple application images of the XWIKI system based on the target base image. For example, taking Alpine as the target base image, the multiple application images can be configured through the Dockerfile file. Specifically, the Docker daemon is started to execute a sequence of instructions in the Dockerfile file to generate the corresponding application image. The Dockerfile is a text file, which consists of multiple elements, such as: the specified instructions of the target base image; the files that need to be copied to the application image; the network port; the construction of the application image is a plurality of instructions to run, such as FROM, RUN and other instructions, the FROM instruction is used to specify the base image, and the RUN is used to execute the command line command; at the same time, the environment variables set when the application image starts the container; and the instructions run when the container starts.

[0082] The operation module 206 is used to start and run the corresponding container based on each application image to obtain the service instance corresponding to each application image. Exemplarily, a new container can be created and started based on the corresponding application image, or a container in a terminated state can be restarted; specifically, when creating a container: check whether the corresponding application image exists locally; create and start a container through the application image; allocate a file system, and mount a readable and writable layer outside the read-only image layer; bridge a virtual interface from the bridge interface configured by the computer device to the container; configure an IP address from the address pool for the container; execute the application specified by the user; the container is terminated after the execution is completed.

[0083] In an exemplary embodiment, the building module 200 is also used to: detect system environment information and hardware information, the system environment information includes network configuration parameters, system category and system version, and the hardware information includes CPU information and memory information; send the system environment information and the hardware information to the server, so that the server generates a building script according to the system environment information and the hardware information; receive the building script returned by the server, the building script is used to guide the building of the container engine; and install the container engine according to the building script.

[0084] In an exemplary embodiment, the selection module 202 is also used to: generate an image list based on user instructions, the image list including each image file and the warehouse name, label, image ID, creation time and occupied space corresponding to each image file; and select a target base image from the image list, and execute a retrieval instruction for the target base image to obtain the target base image from the image warehouse.

[0085] In an exemplary embodiment, the selection module 202 is also used to: receive image requirement description information input by the user through the user graphical interface; and perform semantic parsing operations on the image requirement description information, and generate corresponding target retrieval instructions based on the results of the semantic parsing operations, so as to obtain the target base image from the image repository through the target retrieval instructions.

[0086] In an exemplary embodiment, the multiple application images include a MYSQL image, an XWIKI base image, a SOLR engine image, an NGINX balancer image and / or a network packet capture test image.

[0087] In an exemplary embodiment, the running module 206 is also used to: start and run a corresponding first container based on the MYSQL image to obtain a corresponding MYSQL cluster instance; start and run a corresponding second container based on the XWIKI base image to obtain a corresponding XWIKI instance; start and run a corresponding third container based on the SOLR image to obtain a corresponding SOLR search engine instance; and / or start and run a corresponding fourth container based on the NGINX balancer image to obtain a corresponding NGINX instance.

[0088] In an exemplary embodiment, the running module 206 is further used to: deploy middleware in the XWIKI base image, the middleware including libreoffice middleware and jgroups middleware, create the second container based on the XWIKI base image in which the middleware is deployed to obtain a corresponding XWIKI single instance; run the XWIKI single instance and debug the libreoffice middleware according to the running parameters generated during the running process; if the XWIKI single instance runs successfully, run the XWIKI multi-node cluster and debug the jgroups middleware according to the running parameters of the XWIKI multi-node cluster.

[0089] JGroups is a cluster communication library. Applications can use JGroups to join a cluster, send messages to other nodes in the cluster, and get notifications when cluster nodes leave or join the cluster. In JGroups, the JChannel class provides the main API for connecting to a cluster, sending and receiving messages, and registering listeners.

[0090] Taking joining a cluster as an example, a channal may be created and the connect() method may be called to join the cluster; the configuration information of the channal may be defined in the file udp.xml as required, and the configuration information is passed in as a parameter of the constructor.

[0091] Specifically, the jgroups middleware can be debugged through the protocol stack configuration: users can enter their own protocols and add them to the configuration.

[0092] Embodiment 3

[0093] See also Figure 3 , is a schematic diagram of the hardware architecture of the computer device of the third embodiment of the present invention. In this embodiment, the computer device 2 is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions. The computer device 2 can be a rack server, a blade server, a tower server or a cabinet server (including an independent server, or a server cluster composed of multiple servers), etc. As shown in the figure, the computer device 2 at least includes, but is not limited to, a memory 21, a processor 22, a network interface 23, and an XWIKI configuration system 20 that can communicate with each other through a system bus. Among them:

[0094] In this embodiment, the memory 21 includes at least one type of computer-readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 21 can be an internal storage unit of the computer device 2, such as a hard disk or memory of the computer device 2. In other embodiments, the memory 21 can also be an external storage device of the computer device 2, such as a plug-in hard disk equipped on the computer device 20, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. Of course, the memory 21 can also include both the internal storage unit of the computer device 2 and its external storage device. In this embodiment, the memory 21 is generally used to store the operating system and various application software installed on the computer device 2, such as the program code of the XWIKI configuration system 20 of the second embodiment. In addition, the memory 21 can also be used to temporarily store various types of data that have been output or are to be output.

[0095] In some embodiments, the processor 22 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips. The processor 22 is generally used to control the overall operation of the computer device 2. In this embodiment, the processor 22 is used to run the program code stored in the memory 21 or process data, such as running the XWIKI configuration system 20 to implement the XWIKI system configuration method of the first embodiment.

[0096] The network interface 23 may include a wireless network interface or a wired network interface, and the network interface 23 is generally used to establish a communication connection between the computer device 2 and other electronic devices. For example, the network interface 23 is used to connect the computer device 2 to an external terminal through a network, and to establish a data transmission channel and a communication connection between the computer device 2 and the external terminal. The network may be a wireless or wired network such as an Intranet, the Internet, the Global System of Mobile communication (GSM), Wideband Code Division Multiple Access (WCDMA), a 4G network, a 5G network, Bluetooth, or Wi-Fi.

[0097] It should be pointed out that Figure 3 Computer device 2 is shown only with components 20 - 23 , but it should be understood that implementation of all of the components shown is not a requirement, and more or fewer components may alternatively be implemented.

[0098] In this embodiment, the XWIKI configuration system 20 stored in the memory 21 may also be divided into one or more program modules, which are stored in the memory 21 and executed by one or more processors (processor 22 in this embodiment) to complete the present invention.

[0099] For example, Figure 2 The schematic diagram of program modules for implementing the second embodiment of the XWIKI configuration system 20 is shown. In this embodiment, the XWIKI-based configuration system 20 can be divided into a building module 200, a selection module 202, a configuration module 204, and an operation module 206. The program modules referred to in the present invention refer to a series of computer program instruction segments that can perform specific functions, which are more suitable for describing the execution process of the XWIKI configuration system 20 in the computer device 2 than programs. The specific functions of the program modules 200-206 have been described in detail in the second embodiment and will not be repeated here.

[0100] Embodiment 4

[0101] This embodiment also provides a computer-readable storage medium, such as a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., an SD or DX memory, etc.), a random access memory (RAM), a static random access memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a disk, an optical disk, a server, an App application store, etc., on which a computer program is stored, and when the program is executed by a processor, a corresponding function is realized. The computer-readable storage medium of this embodiment is used to store the XWIKI configuration system 20, and when executed by the processor, the XWIKI system configuration method of the first embodiment is realized.

[0102] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0103] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method.

[0104] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A method for configuring an XWIKI system, characterized in that: The method comprises: Building a container engine according to user instructions, wherein the container engine is used to manage multiple containers; Selecting a target base image from multiple candidate base images according to a preset rule; Configure multiple application images of the XWIKI system based on the target base image; and Start and run the corresponding container based on each application image to obtain the service instance corresponding to each application image; The steps to build a container engine according to user instructions include: Detect system environment information and hardware information, the system environment information includes network configuration parameters, system type and system version, and the hardware information includes CPU information and memory information; Sending the system environment information and the hardware information to a server, so that the server generates a build script according to the system environment information and the hardware information; receiving a build script returned by the server, wherein the build script is used to guide the build of the container engine; and The container engine is installed according to the build script.

2. The XWIKI system configuration method according to claim 1, characterized in that: The step of selecting a target base image from a plurality of candidate base images according to a preset rule includes: Generate an image list based on user instructions, the image list including each image file and the warehouse name, label, image ID, creation time and occupied space corresponding to each image file; and A target base image is selected from the image list, and a fetch instruction for the target base image is executed to obtain the target base image from the image repository.

3. The XWIKI system configuration method according to claim 2, characterized in that: The step of selecting a target base image from a plurality of candidate base images according to a preset rule includes: Receiving image requirement description information input by a user through a user graphical interface; and A semantic parsing operation is performed on the image requirement description information, and a corresponding target fetching instruction is generated based on the result of the semantic parsing operation, so as to obtain the target basic image from the image repository through the target fetching instruction.

4. The XWIKI system configuration method according to claim 2, characterized in that: The multiple application images include a MYSQL image, an XWIKI basic image, a SOLR engine image, an NGINX balancer image and / or a network packet capture test image.

5. The XWIKI system configuration method according to claim 4, characterized in that: The steps of starting and running corresponding containers based on each application image to obtain service instances corresponding to each application image include: Starting and running the corresponding first container based on the MYSQL image to obtain the corresponding MYSQL cluster instance; Starting and running a corresponding second container based on the XWIKI base image to obtain a corresponding XWIKI instance; Starting and running a corresponding third container based on the SOLR image to obtain a corresponding SOLR search engine instance; and / or Based on the NGINX balancer image, the corresponding fourth container is started and run to obtain the corresponding NGINX instance.

6. The XWIKI system configuration method according to claim 5, characterized in that: The steps of starting and running corresponding containers based on each application image to obtain service instances corresponding to each application image include: Deploy middleware in the XWIKI base image, the middleware including libreoffice middleware and jgroups middleware, create the second container based on the XWIKI base image in which the middleware is deployed, so as to obtain a corresponding XWIKI single instance; run the XWIKI single instance, and debug the libreoffice middleware according to the running parameters generated during the running process; if the XWIKI single instance runs successfully, run the XWIKI multi-node cluster, and debug the jgroups middleware according to the running parameters of the XWIKI multi-node cluster.

7. An XWIKI configuration system, characterized in that: include: A building module, used to build a container engine according to user instructions, wherein the container engine is used to manage multiple containers; A selection module, used to select a target base image from multiple candidate base images according to a preset rule; A configuration module, used to configure multiple application images of the XWIKI system based on the target basic image; and The running module is used to start and run the corresponding container based on each application image to obtain the service instance corresponding to each application image; Build the container engine according to user instructions, including: Detect system environment information and hardware information, the system environment information includes network configuration parameters, system type and system version, and the hardware information includes CPU information and memory information; Sending the system environment information and the hardware information to a server, so that the server generates a build script according to the system environment information and the hardware information; receiving a build script returned by the server, wherein the build script is used to guide the build of the container engine; and The container engine is installed according to the build script.

8. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the computer program is executed by a processor, the steps of the XWIKI system configuration method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program can be executed by at least one processor to enable the at least one processor to perform the steps of the XWIKI system configuration method according to any one of claims 1 to 6.