CN115167874B - Self-driving software image deployment method, device, electronic device and readable medium - Google Patents
Self-driving software image deployment method, device, electronic device and readable medium Download PDFInfo
- Publication number
- CN115167874B CN115167874B CN202211000418.3A CN202211000418A CN115167874B CN 115167874 B CN115167874 B CN 115167874B CN 202211000418 A CN202211000418 A CN 202211000418A CN 115167874 B CN115167874 B CN 115167874B
- Authority
- CN
- China
- Prior art keywords
- software
- target
- automatic driving
- version number
- environment
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/40—Transformation of program code
- G06F8/41—Compilation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/34—Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
- Information Transfer Between Computers (AREA)
Abstract
Description
技术领域technical field
本公开的实施例涉及计算机技术领域,具体涉及自动驾驶软件镜像部署方法、装置、电子设备和可读介质。The embodiments of the present disclosure relate to the field of computer technology, and in particular to a method, device, electronic device, and readable medium for autopilot software image deployment.
背景技术Background technique
自动驾驶软件镜像部署,是部署自动驾驶软件编译环境的一项技术。目前,在进行自动驾驶软件镜像部署时,通常采用的方式为:首先,通过人工操作子网络节点的主机与主节点建立网络连接,以供拷贝自动驾驶软件镜像。然后,根据拷贝的自动驾驶软件镜像部署编译环境。Self-driving software image deployment is a technology for deploying a self-driving software compilation environment. At present, when deploying the self-driving software image, the usual method is as follows: First, manually operate the host of the sub-network node to establish a network connection with the main node for copying the self-driving software image. Then, deploy the compilation environment according to the copied self-driving software image.
然而,发明人发现,当采用上述方式进行自动驾驶软件镜像部署时,经常会存在如下技术问题:However, the inventors have found that when deploying the self-driving software image in the above manner, there are often the following technical problems:
第一,未对不同子网络节点的编译环境镜像进行集中管控,若批量子网络节点需要进行自动驾驶软件镜像部署,会存在人工操作时间点不同的情况,使得对不同的网络节点,不能同步的部署编译环境,由此,导致自动驾驶软件镜像部署的效率降低;First, there is no centralized management and control of the compilation environment images of different sub-network nodes. If batches of sub-network nodes need to deploy self-driving software images, there will be situations where manual operation time points are different, so that different network nodes cannot be synchronized. Deploy the compilation environment, thus reducing the efficiency of self-driving software image deployment;
第二,未对网络节点的不同平台的编辑环境进行隔离,在进行自动驾驶软件镜像部署时,需要对所有平台对应的编译环境进行重新部署,从而,导致需要占用大量计算资源,同时也降低自动驾驶软件镜像部署的效率。Second, the editing environments of different platforms of the network nodes are not isolated. When deploying the self-driving software image, it is necessary to redeploy the compilation environments corresponding to all platforms, thus requiring a large amount of computing resources and reducing the automatic Drive the efficiency of software image deployments.
该背景技术部分中所公开的以上信息仅用于增强对本发明构思的背景的理解,并因此,其可包含并不形成本国的本领域普通技术人员已知的现有技术的信息。The above information disclosed in this Background section is only for enhancement of understanding of the background of the inventive concept and therefore it may contain information that does not form the prior art that is already known in this country to a person of ordinary skill in the art.
发明内容Contents of the invention
本公开的内容部分用于以简要的形式介绍构思,这些构思将在后面的具体实施方式部分被详细描述。本公开的内容部分并不旨在标识要求保护的技术方案的关键特征或必要特征,也不旨在用于限制所要求的保护的技术方案的范围。The Summary of the Disclosure is provided to introduce concepts in a simplified form that are described in detail in the Detailed Description that follows. The content of this disclosure is not intended to identify the key features or essential features of the claimed technical solution, nor is it intended to be used to limit the scope of the claimed technical solution.
本公开的一些实施例提出了自动驾驶软件镜像部署方法、装置、电子设备和可读介质,来解决以上背景技术部分提到的技术问题中的一项或多项。Some embodiments of the present disclosure propose a self-driving software image deployment method, device, electronic device, and readable medium to solve one or more of the technical problems mentioned in the background section above.
第一方面,本公开的一些实施例提供了一种自动驾驶软件镜像部署方法,该方法包括:响应于接收到自动驾驶软件镜像部署指令,向主服务端发出访问申请;响应于接收到上述主服务端返回的访问申请通过信息,从上述主服务端获取目标编译环境镜像容器文件,其中,上述目标编译环境镜像容器文件包括目标软件数据卷和目标软件传输端口号;启动上述目标编译环境镜像容器文件对应的目标编译环境镜像容器以进入目标编译环境容器的容器环境,以及基于上述目标编译环境镜像容器文件包括目标软件数据卷和目标软件传输端口号,获取自动驾驶软件包;对上述自动驾驶软件包进行编译,得到自动驾驶软件镜像容器文件;将上述自动驾驶软件镜像容器文件发送至上述主服务端以完成自动驾驶软件镜像部署。In the first aspect, some embodiments of the present disclosure provide a method for deploying an autopilot software image. The method includes: in response to receiving an autopilot software image deployment instruction, sending an access request to the main server; The access application pass information returned by the server obtains the target compilation environment image container file from the above-mentioned main server, wherein the above-mentioned target compilation environment image container file includes the target software data volume and the target software transmission port number; start the above-mentioned target compilation environment image container The target compilation environment image container corresponding to the file is used to enter the container environment of the target compilation environment container, and based on the above-mentioned target compilation environment image container file including the target software data volume and the target software transmission port number, the automatic driving software package is obtained; for the above-mentioned automatic driving software The package is compiled to obtain the autopilot software image container file; the above-mentioned autopilot software image container file is sent to the above-mentioned main server to complete the autopilot software image deployment.
第二方面,本公开的一些实施例提供了一种自动驾驶软件镜像部署装置,该装置包括:第一发送单元,被配置成响应于接收到自动驾驶软件镜像部署指令,向主服务端发出访问申请;第一获取单元,被配置成响应于接收到上述主服务端返回的访问申请通过信息,从上述主服务端获取目标编译环境镜像容器文件,其中,上述目标编译环境镜像容器文件包括目标软件数据卷和目标软件传输端口号;启动以及获取单元,被配置成启动上述目标编译环境镜像容器文件对应的目标编译环境镜像容器以进入目标编译环境容器的容器环境,以及基于上述目标编译环境镜像容器文件包括目标软件数据卷和目标软件传输端口号,获取自动驾驶软件包;编译单元,被配置成对上述自动驾驶软件包进行编译,得到自动驾驶软件镜像容器文件;第二发送单元,被配置成将上述自动驾驶软件镜像容器文件发送至上述主服务端以完成自动驾驶软件镜像部署。In a second aspect, some embodiments of the present disclosure provide an automatic driving software image deployment device, which includes: a first sending unit configured to send an access to the main server in response to receiving an automatic driving software image deployment instruction Application; the first obtaining unit is configured to obtain the target compilation environment image container file from the above-mentioned main server in response to receiving the access application pass information returned by the above-mentioned main server, wherein the above-mentioned target compilation environment image container file includes the target software Data volume and target software transmission port number; startup and acquisition unit, configured to start the target compilation environment image container corresponding to the above target compilation environment image container file to enter the container environment of the target compilation environment container, and based on the above target compilation environment image container The file includes the target software data volume and the target software transmission port number to obtain the autopilot software package; the compiling unit is configured to compile the above-mentioned autopilot software package to obtain the autopilot software image container file; the second sending unit is configured to Send the above autopilot software image container file to the above main server to complete the autopilot software image deployment.
第三方面,本公开的一些实施例提供了一种电子设备,包括:一个或多个处理器;存储装置,其上存储有一个或多个程序,当一个或多个程序被一个或多个处理器执行,使得一个或多个处理器实现上述第一方面任一实现方式所描述的方法。In a third aspect, some embodiments of the present disclosure provide an electronic device, including: one or more processors; The processor executes, so that one or more processors implement the method described in any implementation manner of the first aspect above.
第四方面,本公开的一些实施例提供了一种计算机可读介质,其上存储有计算机程序,其中,程序被处理器执行时实现上述第一方面任一实现方式所描述的方法。In a fourth aspect, some embodiments of the present disclosure provide a computer-readable medium on which a computer program is stored, wherein when the program is executed by a processor, the method described in any implementation manner of the above-mentioned first aspect is implemented.
第五方面,本公开的一些实施例提供了一种计算机程序产品,包括计算机程序,计算机程序在被处理器执行时实现上述第一方面任一实现方式所描述的方法。In a fifth aspect, some embodiments of the present disclosure provide a computer program product, including a computer program. When the computer program is executed by a processor, the method described in any implementation manner of the above-mentioned first aspect is implemented.
本公开的上述各个实施例具有如下有益效果:通过本公开的一些实施例的自动驾驶软件镜像部署方法,可以提高自动驾驶软件镜像部署的效率。具体来说,造成自动驾驶软件镜像部署的效率降低的原因在于:未对不同子网络节点的编译环境镜像进行集中管控,若批量子网络节点需要进行自动驾驶软件镜像部署,会存在人工操作时间点不同的情况,使得对不同的网络节点,不能同步的部署编译环境。基于此,本公开的一些实施例的自动驾驶软件镜像部署方法,首先,响应于接收到自动驾驶软件镜像部署指令,向主服务端发出访问申请。这里,通过引入主服务端,可以用于对自动驾驶软件镜像进行集中管控。然后,响应于接收到上述主服务端返回的访问申请通过信息,从上述主服务端获取目标编译环境镜像容器文件,其中,上述目标编译环境镜像容器文件包括目标软件数据卷和目标软件传输端口号。这里,所有子网络节点均可通过获取目标编译环境镜像容器文件,以用于进行自动驾驶软件镜像部署。接着,启动上述目标编译环境镜像容器文件对应的目标编译环境镜像容器以进入目标编译环境容器的容器环境,以及基于上述目标编译环境镜像容器文件包括目标软件数据卷和目标软件传输端口号,获取自动驾驶软件包。通过启动目标编译环境镜像容器以及进入目标编译环境容器的容器环境,可以避免破坏当前子网络节点的其它环境。之后,对上述自动驾驶软件包进行编译,得到自动驾驶软件镜像容器文件。由此,可以完成当前网络节点的自动驾驶软件镜像部署。最后,将上述自动驾驶软件镜像容器文件发送至上述主服务端以完成自动驾驶软件镜像部署。这里,通过再次将自动驾驶软件镜像容器文件发送至上述主服务端,可以供主服务端对各个网络节点自动驾驶软件镜像部署进行进度把控。使得可以进一步管控各个网络节点。从而,可以在批量子网络节点需要进行自动驾驶软件镜像部署时,同时对不同的网络节点,进行同步的部署编译环境。进而,提高自动驾驶软件镜像部署的效率。The above-mentioned embodiments of the present disclosure have the following beneficial effects: through the automatic driving software image deployment method of some embodiments of the present disclosure, the efficiency of automatic driving software image deployment can be improved. Specifically, the reason for the reduced efficiency of self-driving software image deployment is that the compilation environment images of different sub-network nodes are not centrally managed and controlled. Different situations make it impossible to deploy and compile environments synchronously for different network nodes. Based on this, in the self-driving software image deployment method of some embodiments of the present disclosure, firstly, in response to receiving the self-driving software image deployment instruction, an access request is sent to the main server. Here, by introducing the main server, it can be used to centrally manage and control the self-driving software image. Then, in response to receiving the access application passing information returned by the above-mentioned main server, obtain the target compilation environment image container file from the above-mentioned main server, wherein the above-mentioned target compilation environment image container file includes the target software data volume and the target software transmission port number . Here, all sub-network nodes can obtain the image container file of the target compilation environment for self-driving software image deployment. Then, start the target compilation environment image container corresponding to the above target compilation environment image container file to enter the container environment of the target compilation environment container, and based on the above target compilation environment image container file including the target software data volume and the target software transmission port number, obtain automatic driving software package. By starting the image container of the target compilation environment and entering the container environment of the target compilation environment container, damage to other environments of the current subnetwork node can be avoided. Afterwards, the above-mentioned automatic driving software package is compiled to obtain the automatic driving software image container file. In this way, the self-driving software image deployment of the current network node can be completed. Finally, the above-mentioned self-driving software image container file is sent to the above-mentioned main server to complete the self-driving software image deployment. Here, by sending the autopilot software image container file to the main server again, the main server can control the progress of the deployment of the autopilot software image on each network node. This makes it possible to further manage and control each network node. Therefore, when a batch of sub-network nodes need to deploy self-driving software images, different network nodes can be simultaneously deployed and compiled in a synchronous environment. Furthermore, the efficiency of self-driving software image deployment is improved.
附图说明Description of drawings
结合附图并参考以下具体实施方式,本公开各实施例的上述和其他特征、优点及方面将变得更加明显。贯穿附图中,相同或相似的附图标记表示相同或相似的元素。应当理解附图是示意性的,元件和元素不一定按照比例绘制。The above and other features, advantages and aspects of the various embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numerals denote the same or similar elements. It should be understood that the drawings are schematic and elements and elements have not necessarily been drawn to scale.
图1是根据本公开的自动驾驶软件镜像部署方法的一些实施例的流程图;FIG. 1 is a flow chart of some embodiments of a self-driving software image deployment method according to the present disclosure;
图2是根据本公开的自动驾驶软件镜像部署装置的一些实施例的结构示意图;2 is a schematic structural diagram of some embodiments of an automatic driving software image deployment device according to the present disclosure;
图3是适于用来实现本公开的一些实施例的电子设备的结构示意图。FIG. 3 is a schematic structural diagram of an electronic device suitable for implementing some embodiments of the present disclosure.
具体实施方式Detailed ways
下面将参照附图更详细地描述本公开的实施例。虽然附图中显示了本公开的某些实施例,然而应当理解的是,本公开可以通过各种形式来实现,而且不应该被解释为限于这里阐述的实施例。相反,提供这些实施例是为了更加透彻和完整地理解本公开。应当理解的是,本公开的附图及实施例仅用于示例性作用,并非用于限制本公开的保护范围。Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the disclosure are shown in the drawings, it should be understood that the disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these examples are provided so that the understanding of this disclosure will be thorough and complete. It should be understood that the drawings and embodiments of the present disclosure are for exemplary purposes only, and are not intended to limit the protection scope of the present disclosure.
另外还需要说明的是,为了便于描述,附图中仅示出了与有关发明相关的部分。在不冲突的情况下,本公开中的实施例及实施例中的特征可以相互组合。It should also be noted that, for the convenience of description, only the parts related to the related invention are shown in the drawings. In the case of no conflict, the embodiments in the present disclosure and the features in the embodiments can be combined with each other.
需要注意,本公开中提及的“第一”、“第二”等概念仅用于对不同的装置、模块或单元进行区分,并非用于限定这些装置、模块或单元所执行的功能的顺序或者相互依存关系。It should be noted that concepts such as "first" and "second" mentioned in this disclosure are only used to distinguish different devices, modules or units, and are not used to limit the sequence of functions performed by these devices, modules or units or interdependence.
需要注意,本公开中提及的“一个”、“多个”的修饰是示意性而非限制性的,本领域技术人员应当理解,除非在上下文另有明确指出,否则应该理解为“一个或多个”。It should be noted that the modifications of "one" and "multiple" mentioned in the present disclosure are illustrative and not restrictive, and those skilled in the art should understand that unless the context clearly indicates otherwise, it should be understood as "one or more" multiple".
本公开实施方式中的多个装置之间所交互的消息或者信息的名称仅用于说明性的目的,而并不是用于对这些消息或信息的范围进行限制。The names of messages or information exchanged between multiple devices in the embodiments of the present disclosure are used for illustrative purposes only, and are not used to limit the scope of these messages or information.
下面将参考附图并结合实施例来详细说明本公开。The present disclosure will be described in detail below with reference to the accompanying drawings and embodiments.
图1示出了根据本公开的自动驾驶软件镜像部署方法的一些实施例的流程100。该自动驾驶软件镜像部署方法的流程100,包括以下步骤:FIG. 1 shows a
步骤101,响应于接收到自动驾驶软件镜像部署指令,向主服务端发出访问申请。
在一些实施例中,自动驾驶软件镜像部署方法的执行主体可以响应于接收到自动驾驶软件镜像部署指令,向主服务端发出访问申请。其中,自动驾驶软件镜像部署指令可以是部署用于编译自动驾驶软件镜像的指令。访问申请可以用于向主服务端发出访问授权请求,以供可以从主服务端获取数据。另外,自动驾驶软件镜像部署指令可以包括自动驾驶软件镜像版本号。上述自动驾驶软件镜像版本号可以用于表征所需部署的自动驾驶软件镜像的版本。In some embodiments, the execution subject of the automatic driving software image deployment method may send an access request to the main server in response to receiving the automatic driving software image deployment instruction. Wherein, the automatic driving software image deployment instruction may be an instruction for deploying and compiling the automatic driving software image. The access application can be used to send an access authorization request to the main server, so that data can be obtained from the main server. In addition, the autopilot software image deployment instruction may include an autopilot software image version number. The above-mentioned version number of the self-driving software image can be used to represent the version of the self-driving software image to be deployed.
实践中,自动驾驶软件镜像部署指令可以是操作当前网络节点的人工通过当前网络节点的物理主机发出的。因此,对于不同的网络节点,可以实现自由部署。自动驾驶软件镜像部署指令还可以是操作主服务端发出的。使得可以同时对所有的网络节点进行同步部署。从而,可以用于提高自动驾驶软件镜像部署的效率。In practice, the self-driving software image deployment command may be issued by a person who operates the current network node through the physical host of the current network node. Therefore, for different network nodes, free deployment can be realized. The self-driving software image deployment command can also be issued by the main server. This enables synchronous deployment of all network nodes at the same time. Therefore, it can be used to improve the efficiency of self-driving software image deployment.
可选的,上述执行主体在向主服务端发出访问申请之前,还可以确定当前网络节点的自动驾驶软件镜像版本是否与上述自动驾驶软件镜像部署指令包括的自动驾驶软件镜像版本号相同。若不同,则可以向主服务端发出访问申请以供自动驾驶软件镜像部署。若相同,则无需再次部署。从而,可以减少对主服务端的资源占用。进而,可以进一步提高自动驾驶软件镜像部署的效率降低。Optionally, before the execution subject sends an access application to the main server, it may also determine whether the autopilot software image version of the current network node is the same as the autopilot software image version number included in the autopilot software image deployment instruction. If they are different, an access application can be sent to the main server for deployment of the self-driving software image. If they are the same, there is no need to deploy again. Therefore, the resource occupation of the main server can be reduced. Furthermore, the efficiency reduction of autopilot software image deployment can be further improved.
作为示例,主服务端可以是预先搭建的Harbor(容器镜像仓库)服务端程序。As an example, the main server may be a pre-built Harbor (container mirror warehouse) server program.
步骤102,响应于接收到主服务端返回的访问申请通过信息,从主服务端获取目标编译环境镜像容器文件。
在一些实施例中,上述执行主体可以响应于接收到上述主服务端返回的访问申请通过信息,从上述主服务端获取目标编译环境镜像容器文件。其中,上述目标编译环境镜像容器文件可以包括目标软件数据卷和目标软件传输端口号。访问申请能通过信息可以表征上述执行主体与上述主服务端通信连接成功。可以从上述主服务端获取与上述自动驾驶软件镜像版本号对应的目标编译环境镜像容器文件。上述目标软件数据卷和上述目标软件传输端口号,可以用于从上述主服务端获取目标编译环境镜像容器文件。In some embodiments, the execution subject may obtain the target compilation environment image container file from the main server in response to receiving the access application passing information returned by the main server. Wherein, the above target compilation environment image container file may include target software data volume and target software transmission port number. The access application can pass the information to indicate that the communication connection between the above-mentioned execution subject and the above-mentioned main server is successful. The target compilation environment image container file corresponding to the image version number of the above-mentioned autopilot software can be obtained from the above-mentioned main server. The above-mentioned target software data volume and the above-mentioned target software transmission port number can be used to obtain the target compilation environment image container file from the above-mentioned main server.
步骤103,启动目标编译环境镜像容器文件对应的目标编译环境镜像容器以进入目标编译环境容器的容器环境,以及基于目标编译环境镜像容器文件包括目标软件数据卷和目标软件传输端口号,获取自动驾驶软件包。
在一些实施例中,上述执行主体可以启动上述目标编译环境镜像容器文件对应的目标编译环境镜像容器以进入目标编译环境容器的容器环境,以及基于上述目标编译环境镜像容器文件包括目标软件数据卷和目标软件传输端口号,获取自动驾驶软件包。其中,可以通过预设的启动命令,启动上述目标编译环境镜像容器文件对应的目标编译环境镜像容器以进入目标编译环境容器的容器环境。In some embodiments, the execution subject can start the target compilation environment image container corresponding to the above target compilation environment image container file to enter the container environment of the target compilation environment container, and based on the above target compilation environment image container file includes the target software data volume and The target software transfers the port number to obtain the autopilot software package. Wherein, the target compilation environment image container corresponding to the above target compilation environment image container file can be started through a preset startup command to enter the container environment of the target compilation environment container.
作为示例,启动命令可以是docker(应用容器引擎)的命令。As an example, the start command may be a command of docker (an application container engine).
在一些实施例的一些可选的实现方式中,上述执行主体基于上述目标编译环境镜像容器文件包括目标软件数据卷和目标软件传输端口号,获取自动驾驶软件包,可以包括以下步骤:In some optional implementations of some embodiments, the execution subject obtains the autopilot software package based on the target compilation environment image container file including the target software data volume and the target software transmission port number, which may include the following steps:
从上述目标编译环境镜像容器文件包括目标软件传输端口号对应的端口,获取与上述目标软件数据卷对应的自动驾驶软件包。其中,目标软件传输端口号可以用于唯一标识一个端口。目标软件数据卷可以包括自动驾驶软件包在主服务端的路径。自动驾驶软件包可以是自动驾驶软件编译环境镜像,也可以是自动驾驶应用软件。The autopilot software package corresponding to the target software data volume is obtained from the target compilation environment image container file including the port corresponding to the target software transmission port number. Wherein, the target software transmission port number may be used to uniquely identify a port. The target software data volume may include the path of the autopilot software package on the main server. The autopilot software package can be an autopilot software compilation environment image, or an autopilot application software.
步骤104,对自动驾驶软件包进行编译,得到自动驾驶软件镜像容器文件。
在一些实施例中,上述执行主体可以对上述自动驾驶软件包进行编译,得到自动驾驶软件镜像容器文件。In some embodiments, the execution subject can compile the above-mentioned automatic driving software package to obtain the automatic driving software image container file.
在一些实施例的一些可选的实现方式中,上述执行主体对上述自动驾驶软件包进行编译,得到自动驾驶软件镜像容器文件,可以包括以下步骤:In some optional implementations of some embodiments, the execution subject compiles the above-mentioned automatic driving software package to obtain the automatic driving software image container file, which may include the following steps:
第一步,安装用于编译的镜像容器编译工具链。其中,可以通过预设的安装命令,安装用于编译的镜像容器编译工具链。这里,用于编译的镜像容器编译工具链可以是预先设置的,也可以是从上述主服务端获取的。第二步,在上述目标编译环境容器的容器环境下,利用上述镜像容器编译工具链,对上述自动驾驶软件包进行编译,得到自动驾驶软件镜像容器文件。其中,镜像容器编译工具链可以是用于编译,镜像容器的工具链。The first step is to install the image container compilation toolchain for compilation. Among them, the image container compilation toolchain for compilation can be installed through the preset installation command. Here, the image container compilation toolchain used for compilation may be pre-set, or obtained from the above-mentioned main server. In the second step, in the container environment of the above-mentioned target compilation environment container, use the above-mentioned image container compilation tool chain to compile the above-mentioned automatic driving software package, and obtain the automatic driving software image container file. Wherein, the image container compilation toolchain may be a toolchain for compiling the image container.
步骤105,将自动驾驶软件镜像容器文件发送至主服务端以完成自动驾驶软件镜像部署。
在一些实施例中,上述执行主体可以将上述自动驾驶软件镜像容器文件发送至上述主服务端以完成自动驾驶软件镜像部署。其中,通过发送,可以对主服务端反馈自动驾驶软件镜像部署进度以及结果。从而,可以便于主服务端对不同子网络节点的编译环境镜像的集中管控。从而,有利于同步的部署编译环境。进而,可以用于提高自动驾驶软件镜像部署的效率降低。In some embodiments, the execution subject may send the autopilot software image container file to the main server to complete the autopilot software image deployment. Among them, by sending, the progress and results of the self-driving software image deployment can be fed back to the main server. Therefore, it is convenient for the main server to centrally manage and control the compilation environment images of different subnetwork nodes. Thus, it is beneficial to deploy and compile the environment synchronously. Furthermore, it can be used to improve the efficiency reduction of autopilot software image deployment.
可选的,上述执行主体还可以执行如下步骤:Optionally, the above execution subject may also perform the following steps:
第一步,响应接收到自动驾驶软件升级信息,确定与上述自动驾驶软件升级信息包括的软件标识组中各个软件标识对应的软件版本号,得到软件版本号集合。其中,上述软件升级信息还包括软件升级版本号集合。自动驾驶软件升级信息也可以是由上述主服务端发出的,用于升级各个网络节点的自动驾驶软件。自动驾驶软件升级信息包括的软件标识组中的各个软件标识可以是需要升级的软件的唯一标识。可以将当前网络节点中各个软件的版本号中与软件标识表征同一软件的版本号确定为软件版本号,得到软件版本号集合。In the first step, in response to receiving the automatic driving software upgrade information, determine the software version number corresponding to each software identifier in the software identifier group included in the above automatic driving software upgrade information, and obtain a set of software version numbers. Wherein, the above software upgrade information also includes a set of software upgrade version numbers. The automatic driving software upgrade information may also be sent by the above-mentioned main server to upgrade the automatic driving software of each network node. Each software identifier in the software identifier group included in the automatic driving software upgrade information may be a unique identifier of the software that needs to be upgraded. Among the version numbers of each software in the current network node, the version number representing the same software as the software identifier can be determined as the software version number to obtain a set of software version numbers.
第二步,将上述软件升级版本号集合中与上述软件版本号集合中每个软件版本号相匹配的软件升级版本号确定为目标软件升级版本号,得到目标软件升级版本号组。其中,相匹配可以是软件版本号与软件升级版本号表征同一软件、且软件升级版本号大于软件版本号。The second step is to determine the software upgrade version number that matches each software version number in the above software upgrade version number set as the target software upgrade version number, and obtain the target software upgrade version number group. Wherein, matching may mean that the software version number and the software upgrade version number represent the same software, and the software upgrade version number is greater than the software version number.
第三步,从软件管理服务端获取与上述目标软件升级版本号组中各个目标软件升级版本号对应的目标软件镜像环境容器组。其中,软件管理服务端可以是自动管理软件的服务端。The third step is to obtain the target software image environment container group corresponding to each target software upgrade version number in the target software upgrade version number group from the software management server. Wherein, the software management server may be a server for automatic management software.
作为示例,软件管理服务端可以是k8s(Kubernetes)容器集群管理系统。As an example, the software management server may be a k8s (Kubernetes) container cluster management system.
第四步,基于上述目标软件镜像环境容器组,对与上述目标软件升级版本号组中每个目标软件升级版本号对应的自动驾驶软件进行升级操作以得到升级后自动驾驶软件,得到升级后自动驾驶软件组。Step 4: Based on the above-mentioned target software image environment container group, perform an upgrade operation on the automatic driving software corresponding to each target software upgrade version number in the above-mentioned target software upgrade version number group to obtain the upgraded automatic driving software, and obtain the upgraded automatic driving software. Driving software group.
在一些实施例的一些可选的实现方式中,上述执行主体基于上述目标软件镜像环境容器组,对与上述目标软件升级版本号组中每个目标软件升级版本号对应的自动驾驶软件进行升级操作以得到升级后自动驾驶软件,包括:In some optional implementations of some embodiments, the execution subject performs an upgrade operation on the automatic driving software corresponding to each target software upgrade version number in the target software upgrade version number group based on the target software image environment container group To get upgraded autopilot software, including:
第一步,启动上述目标软件镜像环境容器组中与目标软件升级版本号对应的目标软件镜像环境容器,作为目标软件升级环境。其中,上述目标软件镜像环境容器组中的每个目标软件镜像环境容器包括目标软镜像。可以通过上述启动命令启动上述目标软件镜像环境容器组中与目标软件升级版本号对应的目标软件镜像环境容器,作为目标软件升级环境。The first step is to start the target software mirror environment container corresponding to the target software upgrade version number in the target software mirror environment container group as the target software upgrade environment. Wherein, each target software mirroring environment container in the target software mirroring environment container group includes a target soft mirroring. The target software mirroring environment container corresponding to the target software upgrade version number in the target software mirroring environment container group can be started by the above start command as the target software upgrading environment.
第二步,在上述目标软件升级环境下,对与目标软件升级版本号对应的目标软件镜像环境容器包括的目标软镜像进行编译,得到升级后自动驾驶软件。其中,上述编译是对与上述目标软件升级版本号组中每个目标软件升级版本号对应的自动驾驶软件进行升级操作。可以通过上述镜像容器编译工具链,对与目标软件升级版本号对应的目标软件镜像环境容器包括的目标软镜像进行编译,得到升级后自动驾驶软件。The second step is to compile the target soft image included in the target software image environment container corresponding to the target software upgrade version number in the above-mentioned target software upgrade environment to obtain the upgraded automatic driving software. Wherein, the above compilation is to upgrade the automatic driving software corresponding to each target software upgrade version number in the above target software upgrade version number group. The target soft image included in the target software mirror environment container corresponding to the target software upgrade version number can be compiled through the above mirror container compilation tool chain to obtain the upgraded automatic driving software.
可选的,上述执行主体还可以执行如下步骤:Optionally, the above execution subject may also perform the following steps:
第一步,确定上述升级后自动驾驶软件组中每个升级后自动驾驶软件的升级状态和程序运行状态以生成升级结果,得到升级结果集。其中,升级状态可以是自动驾驶软件的升级过程的状态。程序运行状态可以是自动驾驶软件在升级后的运行状态。The first step is to determine the upgrade status and program running status of each upgraded auto-driving software in the above-mentioned upgraded auto-driving software group to generate an upgrade result and obtain an upgrade result set. Wherein, the upgrade state may be the state of the upgrade process of the automatic driving software. The running state of the program may be the running state of the automatic driving software after the upgrade.
作为示例,升级状态可以是:“升级成功”或“未升级成功”。程序运行状态可以是:“正常运行”或“异常运行”。As an example, the upgrade status may be: "upgrade successful" or "upgrade not successful". The running state of the program can be: "normal operation" or "abnormal operation".
第二步,对上述升级结果集和上述目标软件升级版本号组作为升级记录数据进行存储。其中,通过存储可以便于主服务端对各个网络节点的编译环境镜像进行集中管控。In the second step, the above-mentioned upgrade result set and the above-mentioned target software upgrade version number group are stored as upgrade record data. Among them, the storage can facilitate the centralized management and control of the compilation environment image of each network node by the main server.
上述步骤及其相关内容作为本公开的实施例的一个发明点,解决了背景技术提及的技术问题二“未对网络节点的不同平台的编辑环境进行隔离,在进行自动驾驶软件镜像部署时,需要对所有平台对应的编译环境进行重新部署,从而,导致需要占用大量计算资源,同时也降低自动驾驶软件镜像部署的效率”。导致需要占用大量计算资源,同时也降低自动驾驶软件镜像部署的效率的因素往往如下:未对网络节点的不同平台的编辑环境进行隔离,在进行自动驾驶软件镜像部署时,需要对所有平台对应的编译环境进行重新部署。如果解决了上述因素,就能降低计算资源的占用,同时进一步降低自动驾驶软件镜像部署的效率。为了达到这一效果,首先,通过在容器环境中对目标软镜像进行编译,可以使得不同环境之间相互不影响。从而,达到隔离不同软件编译环境的目的。进而,避免在部署过程中,出现对无需升级的环境进行升级操作的情况。从而,可以减少计算资源的占用。然后,还通过引入软件管理服务端,用于对各个版本的编译环境容器进行集中管控,从而,可以自动化对网络节点的软件镜像或编译环境进行升级。进而,也可以提高自动驾驶软件镜像部署的效率。The above-mentioned steps and related content are an inventive point of the embodiment of the present disclosure, which solves the technical problem 2 mentioned in the background technology "the editing environment of different platforms of the network node is not isolated, and when deploying the self-driving software image, The compilation environment corresponding to all platforms needs to be redeployed, which leads to the need to occupy a large amount of computing resources, and also reduces the efficiency of self-driving software image deployment.” Factors that require a large amount of computing resources and reduce the efficiency of autopilot software image deployment are often as follows: the editing environments of different platforms of network nodes are not isolated, and when deploying autopilot software images, it is necessary to Compile the environment for redeployment. If the above factors are resolved, the occupancy of computing resources can be reduced, and at the same time, the efficiency of self-driving software image deployment can be further reduced. In order to achieve this effect, first of all, by compiling the target soft image in the container environment, different environments can not affect each other. Thus, the purpose of isolating different software compilation environments is achieved. Furthermore, during the deployment process, it is avoided that an environment that does not need to be upgraded is upgraded. Therefore, the occupation of computing resources can be reduced. Then, by introducing a software management server, it is used to centrally manage and control each version of the compilation environment container, so that the software image or compilation environment of the network nodes can be automatically upgraded. Furthermore, the efficiency of self-driving software image deployment can also be improved.
本公开的上述各个实施例具有如下有益效果:通过本公开的一些实施例的自动驾驶软件镜像部署方法,可以提高自动驾驶软件镜像部署的效率。具体来说,造成自动驾驶软件镜像部署的效率降低的原因在于:未对不同子网络节点的编译环境镜像进行集中管控,若批量子网络节点需要进行自动驾驶软件镜像部署,会存在人工操作时间点不同的情况,使得对不同的网络节点,不能同步的部署编译环境。基于此,本公开的一些实施例的自动驾驶软件镜像部署方法,首先,响应于接收到自动驾驶软件镜像部署指令,向主服务端发出访问申请。这里,通过引入主服务端,可以用于对自动驾驶软件镜像进行集中管控。然后,响应于接收到上述主服务端返回的访问申请通过信息,从上述主服务端获取目标编译环境镜像容器文件,其中,上述目标编译环境镜像容器文件包括目标软件数据卷和目标软件传输端口号。这里,所有子网络节点均可通过获取目标编译环境镜像容器文件,以用于进行自动驾驶软件镜像部署。接着,启动上述目标编译环境镜像容器文件对应的目标编译环境镜像容器以进入目标编译环境容器的容器环境,以及基于上述目标编译环境镜像容器文件包括目标软件数据卷和目标软件传输端口号,获取自动驾驶软件包。通过启动目标编译环境镜像容器以及进入目标编译环境容器的容器环境,可以避免破坏当前子网络节点的其它环境。之后,对上述自动驾驶软件包进行编译,得到自动驾驶软件镜像容器文件。由此,可以完成当前网络节点的自动驾驶软件镜像部署。最后,将上述自动驾驶软件镜像容器文件发送至上述主服务端以完成自动驾驶软件镜像部署。这里,通过再次将自动驾驶软件镜像容器文件发送至上述主服务端,可以供主服务端对各个网络节点自动驾驶软件镜像部署进行进度把控。使得可以进一步管控各个网络节点。从而,可以在批量子网络节点需要进行自动驾驶软件镜像部署时,同时对不同的网络节点,进行同步的部署编译环境。进而,提高自动驾驶软件镜像部署的效率。The above-mentioned embodiments of the present disclosure have the following beneficial effects: through the automatic driving software image deployment method of some embodiments of the present disclosure, the efficiency of automatic driving software image deployment can be improved. Specifically, the reason for the reduced efficiency of self-driving software image deployment is that the compilation environment images of different sub-network nodes are not centrally managed and controlled. Different situations make it impossible to deploy and compile environments synchronously for different network nodes. Based on this, in the self-driving software image deployment method of some embodiments of the present disclosure, firstly, in response to receiving the self-driving software image deployment instruction, an access request is sent to the main server. Here, by introducing the main server, it can be used to centrally manage and control the self-driving software image. Then, in response to receiving the access application passing information returned by the above-mentioned main server, obtain the target compilation environment image container file from the above-mentioned main server, wherein the above-mentioned target compilation environment image container file includes the target software data volume and the target software transmission port number . Here, all sub-network nodes can obtain the image container file of the target compilation environment for self-driving software image deployment. Then, start the target compilation environment image container corresponding to the above target compilation environment image container file to enter the container environment of the target compilation environment container, and based on the above target compilation environment image container file including the target software data volume and the target software transmission port number, obtain automatic driving software package. By starting the image container of the target compilation environment and entering the container environment of the target compilation environment container, damage to other environments of the current subnetwork node can be avoided. Afterwards, the above-mentioned automatic driving software package is compiled to obtain the automatic driving software image container file. In this way, the self-driving software image deployment of the current network node can be completed. Finally, the above-mentioned self-driving software image container file is sent to the above-mentioned main server to complete the self-driving software image deployment. Here, by sending the autopilot software image container file to the main server again, the main server can control the progress of the deployment of the autopilot software image on each network node. This makes it possible to further manage and control each network node. Therefore, when a batch of sub-network nodes need to deploy self-driving software images, different network nodes can be simultaneously deployed and compiled in a synchronous environment. Furthermore, the efficiency of self-driving software image deployment is improved.
进一步参考图2,作为对上述各图所示方法的实现,本公开提供了一种自动驾驶软件镜像部署装置的一些实施例,这些装置实施例与图1所示的那些方法实施例相对应,该装置具体可以应用于各种电子设备中。Further referring to FIG. 2 , as an implementation of the methods shown in the above figures, the present disclosure provides some embodiments of an automatic driving software image deployment device, and these device embodiments correspond to those method embodiments shown in FIG. 1 , The device can be specifically applied to various electronic devices.
如图2所示,一些实施例的自动驾驶软件镜像部署装置200包括:第一发送单元201、第一获取单元202、启动以及获取单元203、编译单元204和第二发送单元205。其中,第一发送单元201,被配置成响应于接收到自动驾驶软件镜像部署指令,向主服务端发出访问申请;第一获取单元202,被配置成响应于接收到上述主服务端返回的访问申请通过信息,从上述主服务端获取目标编译环境镜像容器文件,其中,上述目标编译环境镜像容器文件包括目标软件数据卷和目标软件传输端口号;启动以及获取单元203,被配置成启动上述目标编译环境镜像容器文件对应的目标编译环境镜像容器以进入目标编译环境容器的容器环境,以及基于上述目标编译环境镜像容器文件包括目标软件数据卷和目标软件传输端口号,获取自动驾驶软件包;编译单元204,被配置成对上述自动驾驶软件包进行编译,得到自动驾驶软件镜像容器文件;第二发送单元205,被配置成将上述自动驾驶软件镜像容器文件发送至上述主服务端以完成自动驾驶软件镜像部署。As shown in FIG. 2 , the automatic driving software
可以理解的是,该装置200中记载的诸单元与参考图1描述的方法中的各个步骤相对应。由此,上文针对方法描述的操作、特征以及产生的有益效果同样适用于装置200及其中包含的单元,在此不再赘述。It can be understood that the units recorded in the
下面参考图3,其示出了适于用来实现本公开的一些实施例的电子设备300的结构示意图。图3示出的电子设备仅仅是一个示例,不应对本公开的实施例的功能和使用范围带来任何限制。Referring now to FIG. 3 , it shows a schematic structural diagram of an
如图3所示,电子设备300可以包括处理装置(例如中央处理器、图形处理器等)301,其可以根据存储在只读存储器(ROM)302中的程序或者从存储装置308加载到随机访问存储器(RAM)303中的程序而执行各种适当的动作和处理。在RAM 303中,还存储有电子设备300操作所需的各种程序和数据。处理装置301、ROM 302以及RAM 303通过总线304彼此相连。输入/输出(I/O)接口305也连接至总线304。As shown in FIG. 3 , an
通常,以下装置可以连接至I/O接口305:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置306;包括例如液晶显示器(LCD)、扬声器、振动器等的输出装置307;包括例如磁带、硬盘等的存储装置308;以及通信装置309。通信装置309可以允许电子设备300与其他设备进行无线或有线通信以交换数据。虽然图3示出了具有各种装置的电子设备300,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。图3中示出的每个方框可以代表一个装置,也可以根据需要代表多个装置。Typically, the following devices can be connected to the I/O interface 305:
特别地,根据本公开的一些实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的一些实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的一些实施例中,该计算机程序可以通过通信装置309从网络上被下载和安装,或者从存储装置308被安装,或者从ROM 302被安装。在该计算机程序被处理装置301执行时,执行本公开的一些实施例的方法中限定的上述功能。In particular, according to some embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, some embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, where the computer program includes program codes for executing the methods shown in the flowcharts. In some such embodiments, the computer program may be downloaded and installed from a network via communication means 309, or from storage means 308, or from
需要说明的是,本公开的一些实施例上述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开的一些实施例中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开的一些实施例中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、RF(射频)等等,或者上述的任意合适的组合。It should be noted that the above-mentioned computer-readable medium in some embodiments of the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer diskettes, hard disks, random access memory (RAM), read-only memory (ROM), erasable Programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above. In some embodiments of the present disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In some embodiments of the present disclosure, however, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code thereon. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which can transmit, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device . Program code embodied on a computer readable medium may be transmitted by any appropriate medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
在一些实施方式中,客户端、服务器可以利用诸如HTTP(HyperText TransferProtocol,超文本传输协议)之类的任何当前已知或未来研发的网络协议进行通信,并且可以与任意形式或介质的数字数据通信(例如,通信网络)互连。通信网络的示例包括局域网(“LAN”),广域网(“WAN”),网际网(例如,互联网)以及端对端网络(例如,ad hoc端对端网络),以及任何当前已知或未来研发的网络。In some embodiments, the client and the server can communicate using any currently known or future developed network protocols such as HTTP (HyperText Transfer Protocol), and can communicate with digital data in any form or medium (eg, communication network) interconnections. Examples of communication networks include local area networks (“LANs”), wide area networks (“WANs”), internetworks (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network of.
上述计算机可读介质可以是上述装置中所包含的;也可以是单独存在,而未装配入该电子设备中。上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备:响应于接收到自动驾驶软件镜像部署指令,向主服务端发出访问申请;响应于接收到上述主服务端返回的访问申请通过信息,从上述主服务端获取目标编译环境镜像容器文件,其中,上述目标编译环境镜像容器文件包括目标软件数据卷和目标软件传输端口号;启动上述目标编译环境镜像容器文件对应的目标编译环境镜像容器以进入目标编译环境容器的容器环境,以及基于上述目标编译环境镜像容器文件包括目标软件数据卷和目标软件传输端口号,获取自动驾驶软件包;对上述自动驾驶软件包进行编译,得到自动驾驶软件镜像容器文件;将上述自动驾驶软件镜像容器文件发送至上述主服务端以完成自动驾驶软件镜像部署。The above-mentioned computer-readable medium may be included in the above-mentioned device, or may exist independently without being incorporated into the electronic device. The above-mentioned computer-readable medium carries one or more programs, and when the above-mentioned one or more programs are executed by the electronic device, the electronic device: in response to receiving an autopilot software image deployment instruction, sends an access request to the main server ; In response to receiving the access application passing information returned by the above-mentioned main server, obtain the target compilation environment image container file from the above-mentioned main server, wherein the above-mentioned target compilation environment image container file includes the target software data volume and the target software transmission port number; Start the target compilation environment image container corresponding to the above target compilation environment image container file to enter the container environment of the target compilation environment container, and obtain the automatic driving software based on the above target compilation environment image container file including the target software data volume and the target software transmission port number package; the above-mentioned automatic driving software package is compiled to obtain the automatic driving software image container file; the above-mentioned automatic driving software image container file is sent to the above-mentioned main server to complete the automatic driving software image deployment.
可以以一种或多种程序设计语言或其组合来编写用于执行本公开的一些实施例的操作的计算机程序代码,上述程序设计语言包括面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)——连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for carrying out operations of some embodiments of the present disclosure may be written in one or more programming languages, or combinations thereof, including object-oriented programming languages—such as Java, Smalltalk, C++, Also included are conventional procedural programming languages - such as the "C" language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In cases involving a remote computer, the remote computer can be connected to the user computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (for example, using an Internet service provider to connected via the Internet).
附图中的流程图和框图,图示了按照本公开各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in a flowchart or block diagram may represent a module, program segment, or portion of code that contains one or more logical functions for implementing specified executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved. It should also be noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by a dedicated hardware-based system that performs the specified functions or operations , or may be implemented by a combination of dedicated hardware and computer instructions.
描述于本公开的一些实施例中的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。所描述的单元也可以设置在处理器中,例如,可以描述为:一种处理器包括第一发送单元、第一获取单元、启动以及获取单元、编译单元和第二发送单元。其中,这些单元的名称在某种情况下并不构成对该单元本身的限定,例如,第一发送单元还可以被描述为“向主服务端发出访问申请的单元”。The units described in some embodiments of the present disclosure may be realized by software or by hardware. The described units may also be set in a processor. For example, it may be described as: a processor includes a first sending unit, a first obtaining unit, an activation and obtaining unit, a compiling unit, and a second sending unit. Wherein, the names of these units do not constitute a limitation on the unit itself under certain circumstances, for example, the first sending unit may also be described as "a unit that sends an access application to the main server".
本文中以上描述的功能可以至少部分地由一个或多个硬件逻辑部件来执行。例如,非限制性地,可以使用的示范类型的硬件逻辑部件包括:现场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、片上系统(SOC)、复杂可编程逻辑设备(CPLD)等等。The functions described herein above may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), System on Chips (SOCs), Complex Programmable Logical device (CPLD) and so on.
以上描述仅为本公开的一些较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本公开的实施例中所涉及的发明范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述发明构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本公开的实施例中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。The above descriptions are only some preferred embodiments of the present disclosure and illustrations of the applied technical principles. Those skilled in the art should understand that the scope of the invention involved in the embodiments of the present disclosure is not limited to the technical solution formed by the specific combination of the above-mentioned technical features, but also covers the above-mentioned invention without departing from the above-mentioned inventive concept. Other technical solutions formed by any combination of technical features or equivalent features. For example, a technical solution formed by replacing the above-mentioned features with technical features having similar functions disclosed in (but not limited to) the embodiments of the present disclosure.
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211000418.3A CN115167874B (en) | 2022-08-19 | 2022-08-19 | Self-driving software image deployment method, device, electronic device and readable medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211000418.3A CN115167874B (en) | 2022-08-19 | 2022-08-19 | Self-driving software image deployment method, device, electronic device and readable medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115167874A CN115167874A (en) | 2022-10-11 |
CN115167874B true CN115167874B (en) | 2023-04-14 |
Family
ID=83481277
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211000418.3A Active CN115167874B (en) | 2022-08-19 | 2022-08-19 | Self-driving software image deployment method, device, electronic device and readable medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115167874B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115756514A (en) * | 2022-11-14 | 2023-03-07 | 中国电子科技集团公司第十五研究所 | A software automatic compilation method and system |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110955431A (en) * | 2018-09-27 | 2020-04-03 | 北京国双科技有限公司 | Processing method and device of compiling environment |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
RU2628176C2 (en) * | 2012-12-14 | 2017-08-15 | Телефонактиеболагет Л М Эрикссон (Пабл) | Systems, methods and computer software products for assembly and loading process of software with use of compilation and deployment service |
CN108282513B (en) * | 2017-12-08 | 2021-01-29 | 广州视源电子科技股份有限公司 | Server deployment method, system, storage medium and computer equipment |
FR3079328B1 (en) * | 2018-03-20 | 2022-01-21 | Orange | METHOD AND SYSTEM FOR CREATING AN IMAGE OF AN APPLICATION |
CN111984261B (en) * | 2019-05-24 | 2025-05-16 | 北京京东尚科信息技术有限公司 | Compilation method and compilation system |
CN111625316A (en) * | 2020-05-15 | 2020-09-04 | 苏州浪潮智能科技有限公司 | Environment deployment method and device, electronic equipment and storage medium |
CN112256278B (en) * | 2020-11-09 | 2024-10-01 | Oppo广东移动通信有限公司 | Compiling method, compiling device, compiling equipment and storage medium |
-
2022
- 2022-08-19 CN CN202211000418.3A patent/CN115167874B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110955431A (en) * | 2018-09-27 | 2020-04-03 | 北京国双科技有限公司 | Processing method and device of compiling environment |
Also Published As
Publication number | Publication date |
---|---|
CN115167874A (en) | 2022-10-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110647332A (en) | Software deployment method and device based on container cloud | |
JP2023518779A (en) | Network connection method and apparatus for training participants of common training model | |
CN109032620A (en) | The configuration file generation method and device of application program | |
CN113821352A (en) | Method and device for invoking remote service | |
CN111309375A (en) | Method, device, medium and electronic equipment for generating remote procedure call toolkit | |
CN114625479A (en) | Cloud edge collaborative application management method in edge computing and corresponding device | |
CN113900721A (en) | Operating system starting method and device and electronic equipment | |
CN113805858B (en) | Method and device for continuously deploying software developed by scripting language | |
CN115167874B (en) | Self-driving software image deployment method, device, electronic device and readable medium | |
US20240370274A1 (en) | Operating system startup method, apparatus, and electronic device | |
CN114157658B (en) | Mirror warehouse deployment method, apparatus, electronic device and computer readable medium | |
CN109218338B (en) | Information processing system, method and device | |
CN116360802A (en) | Middleware processing method, middleware processing device, electronic equipment and storage medium | |
CN113467883A (en) | Container management method and device in application development and computer-readable storage medium | |
CN114490588B (en) | Database deployment method, device, electronic equipment and computer readable medium | |
CN105827467B (en) | A kind of registration center's upgrade method, relevant device and system | |
CN116975012A (en) | File synchronization method, file updating method, device, electronic equipment and medium | |
CN114398035A (en) | Method, apparatus, apparatus and computer-readable medium for providing services using components | |
CN116319322B (en) | Power equipment node communication connection method, device, equipment and computer medium | |
CN113900643B (en) | Method and device for generating code | |
CN116133058B (en) | Session establishment method, system, device, equipment and storage medium | |
US12118054B2 (en) | Method, server, and system for image deployment | |
CN113721934B (en) | Hot patch installation method, device, electronic device and computer readable medium | |
CN120447917A (en) | Intelligent agent deployment method, development method, medium, electronic device and program product | |
CN119788686A (en) | Information synchronization method, device, electronic device and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address | ||
CP03 | Change of name, title or address |
Address after: 201, 202, 301, No. 56-4 Fenghuang South Road, Huadu District, Guangzhou City, Guangdong Province, 510806 Patentee after: Heduo Technology (Guangzhou) Co.,Ltd. Address before: 100099 101-15, 3rd floor, building 9, yard 55, zique Road, Haidian District, Beijing Patentee before: HOLOMATIC TECHNOLOGY (BEIJING) Co.,Ltd. |
|
PP01 | Preservation of patent right | ||
PP01 | Preservation of patent right |
Effective date of registration: 20250121 Granted publication date: 20230414 |