CN115599401A - Publishing method, device, equipment and medium of user-defined model - Google Patents

Publishing method, device, equipment and medium of user-defined model Download PDF

Info

Publication number
CN115599401A
CN115599401A CN202211084108.4A CN202211084108A CN115599401A CN 115599401 A CN115599401 A CN 115599401A CN 202211084108 A CN202211084108 A CN 202211084108A CN 115599401 A CN115599401 A CN 115599401A
Authority
CN
China
Prior art keywords
source code
environment
publishing
mirror image
code
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
CN202211084108.4A
Other languages
Chinese (zh)
Inventor
陈嘉良
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Qianhai Huanrong Lianyi Information Technology Service Co Ltd
Original Assignee
Shenzhen Qianhai Huanrong Lianyi Information Technology Service 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 Shenzhen Qianhai Huanrong Lianyi Information Technology Service Co Ltd filed Critical Shenzhen Qianhai Huanrong Lianyi Information Technology Service Co Ltd
Priority to CN202211084108.4A priority Critical patent/CN115599401A/en
Publication of CN115599401A publication Critical patent/CN115599401A/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/70Software maintenance or management
    • G06F8/71Version control; Configuration management

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 application is applicable to the technical field of publishing services, and particularly relates to a publishing method, device, equipment and medium of a custom model. The issuing method is applied to a mirror image, a source code and an operating environment configuration file corresponding to a self-defined model are pulled from a code library by solidifying a corresponding logic function in the mirror image, the operating environment configuration file is executed, the environment of the mirror image is modified into a target operating environment, the target operating environment is verified, when the verification result of the target operating environment is normal, issuing service is started based on the source code to issue the source code, so that the self-defined model is issued, the issuing process is completed in the mirror image, the processes of making the mirror image and packaging are omitted, time consumption can be effectively reduced, the operating environment can be configured before the model is issued, the operating environment and the changed code can be timely corrected by pulling the code and the configuration file, and the issuing efficiency is improved.

Description

Publishing method, device, equipment and medium of user-defined model
Technical Field
The application is applicable to the technical field of model publishing services, and particularly relates to a publishing method, device, equipment and medium of a custom model.
Background
Currently, the custom model is one of the important expressions of machine learning in practical business application. The use of custom models in commerce requires that developers publish, i.e., continue to integrate and deliver, the custom models before they can be made available to users. The release of the current custom model needs to include the following steps: writing the implementation code of the custom model, writing a DockFile, packaging and manufacturing a mirror image, issuing a mirror image service and the like. The issuing process is generally carried out based on kserve, the kserve is an open source model reasoning service platform based on kubernet, can provide high-performance, telescopic and intelligent routing model service, and supports various frames and model formats such as sklern, tensorflow, pitcher and custom models, but the issuing and verifying process is long, the time for making the mirror image is long, and the problems of low issuing efficiency, difficulty in troubleshooting of operating environment abnormity and the like are caused. Therefore, how to optimize the publishing process of the custom model to improve the publishing efficiency becomes an urgent problem to be solved.
Disclosure of Invention
In view of this, embodiments of the present application provide a method, an apparatus, a device, and a medium for publishing a custom model, so as to solve a problem how to optimize a publishing process of the custom model, so as to improve publishing efficiency.
In a first aspect, an embodiment of the present application provides a publishing method of a custom model, where the publishing method is applied in a mirror image, and the publishing method includes:
pulling a source code and an operating environment configuration file corresponding to the custom model from a code library;
executing the operating environment configuration file, and modifying the environment of the mirror image into a target operating environment;
and verifying the target operating environment, and starting a release service based on the source code to release the source code when the verification result of the target operating environment is normal.
In one embodiment, executing the runtime environment configuration file to modify the environment of the image into a target runtime environment includes:
performing difference comparison on the operating environment configuration file and the environment of the mirror image to obtain a difference result;
and modifying the environment of the mirror image based on the difference result to obtain a target operation environment.
In an embodiment, before pulling the source code and the runtime environment configuration file corresponding to the custom model from the code library, the method further includes:
starting a command component or an args component in the mirror image to acquire configuration parameter information of the code library;
analyzing the configuration parameter information and determining a pull address of the code library;
the step of pulling the source code and the operating environment configuration file corresponding to the custom model from the code library comprises the following steps:
and pulling the source code and the operating environment configuration file corresponding to the custom model from a code library based on the pull address.
In one embodiment, after initiating a publishing service based on the source code to publish the source code, the method further comprises:
when detecting that the source code corresponding to the custom model is changed, pulling the changed source code from the code library;
and starting a publishing service based on the changed source code to publish the changed source code.
In one embodiment, after starting the publishing service based on the source code, the method further comprises:
verifying the publication service;
and when the verification result of the issuing service is normal, determining that the issuing is successful.
In one embodiment, after verifying the publishing service, the method further comprises:
and when the verification result of the issuing service is abnormal, determining that the issuing is abnormal, and outputting first abnormal information.
In one embodiment, after verifying the target operating environment, the method further comprises:
and when the verification result of the target operation environment is abnormal, determining to issue an abnormality, and outputting second abnormal information.
In a second aspect, an embodiment of the present application provides a publishing device of a custom model, where the publishing device is applied in a mirror image, and the publishing device includes:
the pulling module is used for pulling the source code and the running environment configuration file corresponding to the self-defined model from a code library;
the environment configuration module is used for executing the operating environment configuration file and modifying the environment of the mirror image into a target operating environment;
and the issuing module is used for verifying the target operation environment and starting issuing service based on the source code to issue the source code when the verification result of the target operation environment is normal.
In a third aspect, an embodiment of the present application provides a computer device, where the computer device includes a processor, a memory, and a computer program stored in the memory and executable on the processor, and the processor implements the publishing method according to the first aspect when executing the computer program.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the publishing method according to the first aspect.
Compared with the prior art, the embodiment of the application has the advantages that: the release method is applied to the mirror image, the source code and the running environment configuration file corresponding to the defined model are pulled from the code library by solidifying the corresponding logic function in the mirror image, the running environment configuration file is executed, the environment of the mirror image is modified into the target running environment, the target running environment is verified, when the verification result of the target running environment is normal, release service is started based on the source code to release the source code, so that the release of the self-defined model is realized, the release process is completed in the mirror image, the processes of mirror image manufacturing and packaging are omitted, the time consumption can be effectively reduced, the running environment can be configured before the model is released, the running environment and the code changing can be corrected in time by adopting the mode of pulling the code and the configuration file, and the release efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic view of an application environment of a method for publishing a custom model according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a method for publishing a custom model according to a second embodiment of the present application;
fig. 3 is a schematic flowchart of a method for publishing a custom model according to a third embodiment of the present application;
fig. 4 is a schematic structural diagram of a publishing device of a custom model according to a fourth embodiment of the present application;
fig. 5 is a schematic structural diagram of a computer device according to a fifth embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items and includes such combinations.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to" determining "or" in response to detecting ". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
Furthermore, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used for distinguishing between descriptions and not necessarily for describing or implying relative importance.
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.
It should be understood that, the sequence numbers of the steps in the following embodiments do not mean the execution sequence, and the execution sequence of each process should be determined by the function and the inherent logic of the process, and should not constitute any limitation to the implementation process of the embodiments of the present application.
In order to explain the technical means of the present application, the following description will be given by way of specific examples.
The method for publishing the custom model provided by the embodiment of the application can be applied to an application environment as shown in fig. 1, wherein a client communicates with a server. The client includes, but is not limited to, a palm top computer, a desktop computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a cloud computing device, a Personal Digital Assistant (PDA), and other computing devices. The server can be implemented by an independent server or a server cluster composed of a plurality of servers.
Referring to fig. 2, which is a schematic flow diagram of a publishing method of a custom model provided in the second embodiment of the present application, where the publishing method of the custom model is applied to the server in fig. 1, a user may access the server through a client, and use a corresponding publishing service platform in the server to construct a mirror image, and preset a corresponding function module in the mirror image to execute the publishing method. As shown in fig. 2, the publishing method of the custom model may include the following steps:
step S201, the source code and the running environment configuration file corresponding to the definition model are pulled from the code base.
In the application, the code library may be a database capable of storing source codes of the custom model, the database may be capable of communicating with a client, a server, and the like, a user may upload the source codes of the edited custom model to the database using the client, and the server may pull the source codes from the database to the local after receiving a release instruction of the user. For example, the code library may be a third party file source such as sftp, github, gitlab, etc., or a code hosting library.
The release method is executed in the mirror image, the pulling is to download the data into the container in a mirror image container constructed on the server side in a mirror image mode, a basic environment for running the source code is configured in the container, and the basic environment can be modified and configured according to requirements in order to meet the requirement of running the source code.
When a user constructs a custom model and writes source codes of the custom model, the operating environment of the source codes is fully considered, and corresponding operating environment configuration files are configured for the source codes, and the operating environment configuration files and the source codes can be stored by a code library together. For example, the runtime configuration file described above may be named using "requirement.
The above-mentioned pulling function can configure a pulling module in the mirror image, the pulling module can establish connection with the code library, and realize dynamic code pulling, that is, after the code is changed, the changed code can be pulled in the mirror image in time, so as to realize updating and releasing.
Step S202, executing the operation environment configuration file, and modifying the mirrored environment into a target operation environment.
In the application, in the initial mirror image, the environment is the basic environment, and since the pulled source code has requirements on the running environment, the running environment configuration file needs to be analyzed, so that the basic environment is modified, and the running condition of the source code is met.
And modifying the basic environment by using the operating environment configuration file, wherein the modified environment is a target operating environment, and the source code can operate in the target operating environment.
The mirror image environment is modified to obtain a target running environment, the running environment can be subjected to pre-verification before the custom model release stage, and a user can timely intervene and modify the running environment configuration and parameters. Because the environment is verified during releasing, if the verification is not passed, the operating environment needs to be reconfigured, and the steps of mirror image packaging, manufacturing and the like are carried out again, so that the conditions of long time consumption and low efficiency are caused, and the releasing efficiency of the custom model can be effectively improved by adopting the process.
Optionally, executing the operating environment configuration file, and modifying the environment of the image into the target operating environment includes:
performing difference comparison on the operating environment configuration file and the environment of the mirror image to obtain a difference result;
and modifying the environment of the mirror image based on the difference result to obtain a target operation environment.
And comparing the difference between the operating environment configuration file and the basic environment in the current mirror image to determine a difference result. For example, the difference result may be a missing plug-in or component, a plug-in or component with a version that is not satisfied, and may also be a difference in configuration parameters.
Based on the difference result, operations such as updating and replacing corresponding plug-ins or components, modifying configuration parameters and the like can be executed, modification of the basic environment is achieved, and then the target operation environment is obtained.
Step S203, verifying the target operation environment, and starting the release service based on the source code to release the source code when the verification result of the target operation environment is normal.
According to the method and the device, before the release service is executed, the running environment needs to be verified, the release service can be started only when the verification result of the running environment is normal, and the release of the source code, namely the release of the user-defined model, is realized.
For example, the server may support a Kserve service platform, and after the verification of the operating environment is passed, the release of the source code may be implemented based on the Kserve service platform. In addition, the service end can also be a service platform which can realize mirror image arrangement operation by adopting a Seldon Core service platform, a BentoML service platform and the like.
The verification of the running environment may refer to testing the running environment, for example, performing static analysis and dynamic debugging on the running environment by using a dynamic analysis technology, and detecting the security of the running environment through corresponding analysis software based on a customized sandbox environment to prevent the source code from being maliciously used by a third party or performing tracking analysis.
The release process can be completed by using the mirror image in the whole process, so that repeated manufacture and packaging processes of the mirror image are omitted, time consumption of mirror image manufacture in the model release process can be reduced, and meanwhile, repeated mirror image generation and extra mirror image management work are avoided in the process of customizing the model release, and storage resources are saved.
Optionally, after starting the publishing service based on the source code to publish the source code, the method further includes:
when detecting that a source code corresponding to the custom model is changed, pulling the changed source code from a code library;
and starting a publishing service based on the changed source code to publish the changed source code.
After the custom model is released, if a user wants to modify the custom model, the modified source code is uploaded to a code library, and after the source code is detected to be changed, the changed source code can be pulled to a mirror image to be released, so that the automation degree is high.
In addition, if the user changes the operating environment after changing the custom model, the changed operating environment configuration file also needs to be uploaded to the code base, and if the operating environment configuration file is detected to be changed, the current operating environment in the mirror image also needs to be modified according to the changed operating environment configuration file, and then the release is executed.
By adopting the mode of pulling the mirror image from the code library, the custom model can be easily changed and released by changing or modifying the mode when the custom model needs to be changed or the source file and the running environment configuration file are switched.
Optionally, after starting the publishing service based on the source code, the method further includes:
verifying the publishing service;
and when the verification result of the issuing service is normal, determining that the issuing is successful.
And verifying the issuing service after the issuing service is started, and knowing that the issuing is successful when the verification result is determined to be normal.
The verification of the publishing service may refer to that the corresponding source code is published through a publishing action, so that the corresponding source code can be accessed externally, and then a virtual user or a real user performs a test on the published source code to see whether a correct response can be made and a correct result can be obtained.
Optionally, after verifying the publishing service, the method further includes:
and when the verification result of the issuing service is abnormal, determining that the issuing is abnormal, and outputting first abnormal information.
Optionally, after verifying the target operating environment, the method further includes:
and when the verification result of the target operation environment is abnormal, determining to issue an abnormality and outputting second abnormal information.
And for the abnormal condition, the abnormal information needs to be provided and output, so that the user can locate the abnormal reason according to the abnormal information.
The publishing method is applied to the mirror image, the source code and the running environment configuration file corresponding to the self-defined model are pulled from the code library by solidifying the corresponding logic function in the mirror image, the running environment configuration file is executed, the environment of the mirror image is modified into the target running environment, the target running environment is verified, when the verification result of the target running environment is normal, the publishing service is started based on the source code to publish the source code, so that the self-defined model is published, the publishing process is completed in the mirror image, the processes of mirror image making and packaging are omitted, time consumption can be effectively reduced, the running environment can be configured before the model is published, the running environment can be timely corrected and the code can be changed by pulling the code and the configuration file, and the publishing efficiency is improved.
Referring to fig. 3, a schematic flow chart of a publishing method of a custom model provided in the third embodiment of the present application is shown, where the publishing method includes the following steps:
step S301, starting a command component or an args component in the mirror image to acquire configuration parameter information of the code base.
In the application, the parameter transmission between the code base and the mirror image can be realized by starting a corresponding command component or args component in the mirror image, for example, the address, account, password and other configuration parameter information of the code base, so that the communication between the mirror image and the code base is realized.
Step S302, analyzing the configuration parameter information and determining the pull address of the code base.
In the present application, by analyzing the configuration parameter information, the type, address, and connection necessary information of the code library may be obtained, so as to implement connection between the mirror image and the code library, and be used for dynamically pulling the source code based on the pull address in the subsequent step S303.
The user does not need to manage the codes independently every time of model release, and can easily realize release information records, such as the record parameters of gimittd, branch and the like of github, according to the parameters of the code escrow library related to transmission.
And step S303, based on the pull address, pulling the source code and the running environment configuration file corresponding to the definition model from the code library.
And step S304, executing the operating environment configuration file, and modifying the environment of the mirror image into a target operating environment.
Step S305, verifying the target operating environment, and starting a release service based on the source code to release the source code when the verification result of the target operating environment is normal.
The contents of the steps S303 to S304 are the same as the contents of the steps S201 to S203, and the descriptions of the steps S201 to S203 may be specifically referred to, and are not repeated herein.
The issuing method is applied to the mirror image, the command component or the args component in the mirror image is started by solidifying the corresponding logic function in the mirror image, the configuration parameter information of the code base is obtained, the configuration parameter information is analyzed, the pull address of the code base is determined, the source code and the running environment configuration file corresponding to the self-defined model are pulled from the code base based on the pull address, the running environment configuration file is executed, the environment of the mirror image is modified into the target running environment, the target running environment is verified, issuing service is started based on the source code when the verification result of the target running environment is normal, the source code is issued, the custom model is issued, the issuing process is completed in the mirror image, the processes of making the mirror image and packaging are omitted, time consumption can be effectively reduced, the running environment can be configured before the model is issued, the running environment and the code change can be corrected in time by adopting the mode of pulling the code and the configuration file, and the issuing efficiency is further improved.
Corresponding to the publishing method of the custom model in the foregoing embodiment, fig. 4 shows a structural block diagram of a publishing device of the custom model provided in the fourth embodiment of the present application, where the publishing device is applied to the server in fig. 1, a user can access the server through a client, and use a corresponding publishing service platform in the server to construct a mirror image, and preset a corresponding function module in the mirror image to execute the publishing method. For convenience of explanation, only portions related to the embodiments of the present application are shown.
Referring to fig. 4, the issuing apparatus includes:
a pulling module 41, configured to pull the source code and the operating environment configuration file corresponding to the definition model from the code library;
the environment configuration module 42 is used for executing the operating environment configuration file and modifying the environment of the mirror image into a target operating environment;
and the publishing module 43 is configured to verify the target operating environment, and start a publishing service based on the source code to publish the source code when the verification result of the target operating environment is normal.
Optionally, the environment configuration module 42 includes:
the difference comparison unit is used for performing difference comparison on the operating environment configuration file and the mirrored environment to obtain a difference result;
and the environment modification unit is used for modifying the environment of the mirror image based on the difference result to obtain a target operation environment.
Optionally, the issuing apparatus further includes:
the code library parameter acquisition module is used for starting a command component or an args component in the mirror image to acquire configuration parameter information of the code library before a source code and an operating environment configuration file corresponding to the self-defined model are pulled from the code library;
the parameter analysis module is used for analyzing the configuration parameter information and determining a pull address of the code library;
the pulling module 41 includes:
and the pulling unit is used for pulling the source code and the running environment configuration file corresponding to the definition model from the code library based on the pulling address.
Optionally, the issuing apparatus further includes:
the change detection module is used for pulling the changed source code from the code library when detecting the source code change corresponding to the custom model after starting the release service based on the source code to release the source code;
and the change issuing module is used for starting issuing service based on the changed source code so as to issue the changed source code.
Optionally, the issuing apparatus further includes:
the service verification module is used for verifying the issuing service after the issuing service is started based on the source code;
and the release state determining module is used for determining that the release is successful when the verification result of the release service is normal.
Optionally, the issuing apparatus further includes:
and the first exception output module is used for determining that the issuing is abnormal and outputting first exception information when the verification result of the issuing service is abnormal after the issuing service is verified.
Optionally, the issuing apparatus further includes:
and the second abnormity output module is used for determining to issue abnormity and outputting second abnormity information when the verification result of the target operation environment is abnormal after the target operation environment is verified.
It should be noted that, because the contents of information interaction, execution process, and the like between the modules are based on the same concept as that of the embodiment of the method of the present application, specific functions and technical effects thereof may be specifically referred to a part of the embodiment of the method, and details are not described here.
Fig. 5 is a schematic structural diagram of a computer device according to a fifth embodiment of the present application. As shown in fig. 5, the computer apparatus of this embodiment includes: at least one processor (only one shown in fig. 5), a memory, and a computer program stored in the memory and executable on the at least one processor, the processor when executing the computer program implementing the steps in any of the various custom model publishing method embodiments described above.
The computer device may include, but is not limited to, a processor, a memory. It will be appreciated by those skilled in the art that fig. 5 is merely an example of a computer device and is not intended to be limiting, and that a computer device may include more or fewer components than those shown, or some components may be combined, or different components may be included, such as a network interface, a display screen, and input devices, etc.
The Processor may be a CPU, or other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory includes readable storage medium, internal memory, etc., where the internal memory may be a memory of the computer device, and the internal memory provides an environment for the operating system and the execution of computer-readable instructions in the readable storage medium. The readable storage medium may be a hard disk of the computer device, and in other embodiments may also be an external storage device of the computer device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, provided on the computer device. Further, the memory may also include both internal and external storage units of the computer device. The memory is used for storing an operating system, application programs, a BootLoader (BootLoader), data, and other programs, such as program codes of a computer program, and the like. The memory may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules, so as to perform all or part of the functions described above. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. For the specific working processes of the units and modules in the above-mentioned apparatus, reference may be made to the corresponding processes in the foregoing method embodiments, which are not described herein again. The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow of the method of the embodiments described above can be implemented by a computer program, which can be stored in a computer readable storage medium and can implement the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include at least: any entity or device capable of carrying computer program code, recording medium, computer Memory, read-Only Memory (ROM), random Access Memory (RAM), electrical carrier signals, telecommunications signals, and software distribution media. Such as a usb-disk, a removable hard disk, a magnetic or optical disk, etc. In certain jurisdictions, computer-readable media may not be an electrical carrier signal or a telecommunications signal in accordance with legislative and patent practice.
When the computer program product runs on a computer device, the computer device is enabled to implement the steps in the method embodiments.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/computer device and method may be implemented in other ways. For example, the above-described apparatus/computer device embodiments are merely illustrative, and for example, a module or a unit may be divided into only one logical function, and may be implemented in other ways, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A publishing method of a custom model is applied to a mirror image, and the publishing method comprises the following steps:
pulling a source code and an operating environment configuration file corresponding to the custom model from a code library;
executing the operating environment configuration file, and modifying the environment of the mirror image into a target operating environment;
and verifying the target operation environment, and starting a release service based on the source code to release the source code when the verification result of the target operation environment is normal.
2. The publishing method of claim 1, wherein executing the runtime environment configuration file to modify the mirrored environment to a target runtime environment comprises:
performing difference comparison on the operating environment configuration file and the environment of the mirror image to obtain a difference result;
and modifying the environment of the mirror image based on the difference result to obtain a target operation environment.
3. The publishing method of claim 1, further comprising, before pulling the source code and the runtime environment configuration file corresponding to the custom model from the code library:
starting a command component or an args component in the mirror image to acquire configuration parameter information of the code library;
analyzing the configuration parameter information and determining a pull address of the code base;
the step of pulling the source code and the operating environment configuration file corresponding to the custom model from the code library comprises the following steps:
and pulling the source code and the operating environment configuration file corresponding to the custom model from a code library based on the pull address.
4. The publishing method of claim 1, further comprising, after initiating a publishing service to publish the source code based on the source code:
when detecting that the source code corresponding to the custom model is changed, pulling the changed source code from the code library;
starting a publishing service based on the changed source code to publish the changed source code.
5. The publishing method of claim 1, further comprising, after initiating a publishing service based on the source code:
verifying the publishing service;
and when the verification result of the issuing service is normal, determining that the issuing is successful.
6. The publishing method of claim 5, further comprising, after verifying the publishing service:
and when the verification result of the issuing service is abnormal, determining that the issuing is abnormal, and outputting first abnormal information.
7. The issuing method according to any one of claims 1 to 6, further comprising, after verifying the target operating environment:
and when the verification result of the target operation environment is abnormal, determining to issue an abnormality, and outputting second abnormal information.
8. A publishing device of a custom model, wherein the publishing device is applied in a mirror image, the publishing device comprising:
the pulling module is used for pulling the source code and the running environment configuration file corresponding to the self-defined model from a code library;
the environment configuration module is used for executing the operating environment configuration file and modifying the environment of the mirror image into a target operating environment;
and the issuing module is used for verifying the target operation environment and starting issuing service based on the source code to issue the source code when the verification result of the target operation environment is normal.
9. A computer device, characterized in that the computer device comprises a processor, a memory and a computer program stored in the memory and executable on the processor, the processor implementing the publishing method as claimed in any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, implements the distribution method according to any one of claims 1 to 7.
CN202211084108.4A 2022-09-06 2022-09-06 Publishing method, device, equipment and medium of user-defined model Pending CN115599401A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211084108.4A CN115599401A (en) 2022-09-06 2022-09-06 Publishing method, device, equipment and medium of user-defined model

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211084108.4A CN115599401A (en) 2022-09-06 2022-09-06 Publishing method, device, equipment and medium of user-defined model

Publications (1)

Publication Number Publication Date
CN115599401A true CN115599401A (en) 2023-01-13

Family

ID=84843272

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211084108.4A Pending CN115599401A (en) 2022-09-06 2022-09-06 Publishing method, device, equipment and medium of user-defined model

Country Status (1)

Country Link
CN (1) CN115599401A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116028069A (en) * 2023-02-07 2023-04-28 之江实验室 Model deployment method and device, storage medium and electronic equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116028069A (en) * 2023-02-07 2023-04-28 之江实验室 Model deployment method and device, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
US10705942B1 (en) Simulated testing of API
CN113065656A (en) Rule engine configuration method and device, server and readable storage medium
CN111026367A (en) Micro-service arranging method and device, terminal equipment and storage medium
CN108111364B (en) Service system testing method and device
US11089000B1 (en) Automated source code log generation
CN111309734B (en) Method and system for automatically generating table data
CN111651219A (en) Method and equipment for managing multi-module project configuration file
US9715372B2 (en) Executable guidance experiences based on implicitly generated guidance models
US9934292B2 (en) Dynamic presentation of a results set by a form-based software application
CN116257438A (en) Updating method of interface test case and related equipment
CN115599401A (en) Publishing method, device, equipment and medium of user-defined model
US10452371B2 (en) Automating enablement state inputs to workflows in z/OSMF
CN114895935A (en) Method and device for flashing vehicle ECU, electronic equipment and storage medium
CN114048415A (en) Form generation method and device, electronic equipment and computer readable storage medium
CN117873597A (en) Method and system for realizing API arrangement through visual configuration mode
US11182272B2 (en) Application state monitoring
CN110362294A (en) Development task executes method, apparatus, electronic equipment and storage medium
US20150186252A1 (en) Testing of transaction tracking software
CN112068895B (en) Code configuration method, device, video playing equipment and storage medium
CN112764729B (en) Application software development method, device, computer equipment and readable storage medium
CN114911541A (en) Configuration information processing method and device, electronic equipment and storage medium
CN113986592A (en) Log recording method and device, terminal equipment and readable storage medium
CN114391133A (en) System and method for GUI development and deployment in real-time systems
CN112925523A (en) Object comparison method, device, equipment and computer readable medium
US9280441B2 (en) Detection and correction of race conditions in workflows

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