TWI754488B - Electronic device and method of selecting carrier for software container - Google Patents

Electronic device and method of selecting carrier for software container Download PDF

Info

Publication number
TWI754488B
TWI754488B TW109144027A TW109144027A TWI754488B TW I754488 B TWI754488 B TW I754488B TW 109144027 A TW109144027 A TW 109144027A TW 109144027 A TW109144027 A TW 109144027A TW I754488 B TWI754488 B TW I754488B
Authority
TW
Taiwan
Prior art keywords
container
carrier
software
software container
module
Prior art date
Application number
TW109144027A
Other languages
Chinese (zh)
Other versions
TW202223627A (en
Inventor
簡暉紘
陳姿君
Original Assignee
中華電信股份有限公司
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 中華電信股份有限公司 filed Critical 中華電信股份有限公司
Priority to TW109144027A priority Critical patent/TWI754488B/en
Application granted granted Critical
Publication of TWI754488B publication Critical patent/TWI754488B/en
Publication of TW202223627A publication Critical patent/TW202223627A/en

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

An electronic device and a method of selecting a carrier for a software container. The method includes: packaging at least one file as a software container according to a compile file, and generating at least one label of the software container according to the compile file; classifying the software container according to a container classification table and the at least one label to generate a feature table, and defining a storage address of the software container according to a container interface table; testing the software container according to a test script to generate a testing result; receiving carrier profiles respectively corresponding to carriers, calculating weights respectively corresponding to the carriers according to the carrier profiles, selecting the carrier from the carriers according to the weights, and installing the software container at the storage address of the carrier; and transmitting the testing result and a carrier profile corresponding to the carrier.

Description

為軟體容器選擇載體的電子裝置和方法Electronic device and method for selecting a carrier for a soft container

本發明是有關於一種為軟體容器選擇載體的電子裝置和方法。The present invention relates to an electronic device and method for selecting a carrier for a soft container.

為提供用戶穩定且便利之服務,且在資源(例如:實體設備或虛擬設備)有限的情況下,通常會選擇目前使用率較低的載體來安裝軟體容器。然而,若該軟體容器受到載體內的其他軟體影響而導致效能降低,往往需要管理人員再對該軟體容器進行異動,因而浪費了許多時間以及人力成本。此外,軟體容器的轉移流程相當緩慢,且在完成轉移後,管理人員還需確認軟體容器的封裝是否成功、命名名稱和容器版本是否正確。當遇到錯誤的容器封裝時,只能依靠管理人員來進行錯誤分析,且日後維運上,管理人員無法即時地將軟體容器上架或下架,而需再次依靠程式開發人員更改軟體容器的程式碼。據此,企業主不僅需承擔日益增加的人力成本,還需不斷地投入資金再每一台實體設備的升級。In order to provide users with stable and convenient services, and in the case of limited resources (such as physical devices or virtual devices), a carrier that is currently used less frequently is usually selected to install software containers. However, if the performance of the software container is reduced due to the influence of other software in the carrier, it is often necessary for the administrator to make changes to the software container, which wastes a lot of time and labor costs. In addition, the transfer process of the software container is quite slow, and after the transfer is completed, the administrator also needs to confirm whether the packaging of the software container is successful, the naming name and the container version are correct. When encountering the wrong container packaging, the administrator can only rely on the error analysis, and in the future maintenance and operation, the administrator cannot immediately put the software container on or off the shelf, and need to rely on the program developer to change the software container program again. code. Accordingly, business owners not only need to bear the increasing labor costs, but also need to continuously invest funds to upgrade each physical equipment.

本發明提供一種為軟體容器選擇載體的電子裝置和方法,可自動地為軟體容器選擇適當的載體。The present invention provides an electronic device and method for selecting a carrier for a soft container, which can automatically select an appropriate carrier for the soft container.

本發明的一種為軟體容器選擇載體的電子裝置,包含處理器、儲存媒體以及收發器。儲存媒體儲存多個模組。處理器耦接儲存媒體以及收發器,並且存取和執行多個模組,其中多個模組包含容器上架模組、容器編譯模組、容器分類模組、容器驗證模組、穩定容器載體比對模組以及容器確認模組。容器上架模組通過收發器接收至少一檔案以及編譯檔。容器編譯模組包含容器暫存區,其中容器編譯模組根據編譯檔將至少一檔案封裝為軟體容器,根據編譯檔產生軟體容器的至少一標籤,並且將軟體容器儲存於容器暫存區。容器分類模組根據容器類型對應表以及至少一標籤對軟體容器進行分類以產生特徵表格,並且根據容器介接對應表決定軟體容器的存放位址。容器驗證模組通過收發器接收測試腳本,並且根據測試腳本測試軟體容器以產生測試結果。穩定容器載體比對模組通過收發器接收分別對應於多個載體的多個載體資訊,根據多個載體資訊計算分別對應於多個載體的多個權重值,根據多個權重值從多個載體中選擇載體,並且將軟體容器安裝於載體的存放位址。容器確認模組通過收發器傳送測試結果以及對應於載體的載體資訊。An electronic device for selecting a carrier for a software container of the present invention includes a processor, a storage medium and a transceiver. The storage medium stores multiple modules. The processor is coupled to the storage medium and the transceiver, and accesses and executes a plurality of modules, wherein the plurality of modules include a container listing module, a container compilation module, a container classification module, a container verification module, and a stable container carrier ratio. Check the module for the module and container. The container racking module receives at least one file and a compiled file through the transceiver. The container compilation module includes a container temporary storage area, wherein the container compilation module encapsulates at least one file as a software container according to the compilation file, generates at least one label of the software container according to the compilation file, and stores the software container in the container temporary storage area. The container classification module classifies the software container according to the container type correspondence table and at least one label to generate a feature table, and determines the storage address of the software container according to the container interface correspondence table. The container verification module receives the test script through the transceiver, and tests the software container according to the test script to generate test results. The stable container carrier comparison module receives a plurality of carrier information corresponding to the plurality of carriers through the transceiver, calculates a plurality of weight values corresponding to the plurality of carriers according to the Select the carrier in the , and install the software container in the storage location of the carrier. The container verification module transmits the test result and the carrier information corresponding to the carrier through the transceiver.

在本發明的一實施例中,上述的多個載體資訊包含對應於載體的第一載體資訊,並且多個權重值包含對應於載體的第一權重值,其中穩定容器載體比對模組根據第一載體資訊計算第一權重值,並且響應於第一權重值為多個權重值中的最大者而選擇載體。In an embodiment of the present invention, the above-mentioned plurality of carrier information includes first carrier information corresponding to the carrier, and the plurality of weight values includes a first weight value corresponding to the carrier, wherein the stable container carrier comparison module is based on the first weight value. A carrier information calculates a first weight value, and selects a carrier in response to the first weight value being the largest of the plurality of weight values.

在本發明的一實施例中,上述的第一載體資訊包含對應於載體的異常發生次數以及對應於載體所在區域的至少一載體的平均異常發生次數,其中穩定容器載體比對模組將個別預設分數減去異常發生次數的第一函數以計算穩定趨勢參考值,並且將平均預設分數減去平均異常發生次數的第二函數以計算平均穩定趨勢參考值,其中穩定容器載體比對模組根據穩定趨勢參考值以及平均穩定趨勢參考值計算第一權重值。In an embodiment of the present invention, the above-mentioned first carrier information includes the number of abnormal occurrences corresponding to the carrier and the average number of abnormal occurrences corresponding to at least one carrier in the region where the carrier is located. A first function of subtracting the number of abnormal occurrences from the score is set to calculate a stable trend reference value, and a second function of subtracting the average number of abnormal occurrences from the average preset score is used to calculate the average stable trend reference value, wherein the stable container carrier is compared with the module The first weight value is calculated according to the stable trend reference value and the average stable trend reference value.

在本發明的一實施例中,上述的第一載體資訊包含對應於載體的效能以及對應於載體所在區域的至少一載體的平均效能,其中穩定容器載體比對模組根據效能以及平均效能計算第一權重值。In an embodiment of the present invention, the above-mentioned first carrier information includes the performance corresponding to the carrier and the average performance of at least one carrier corresponding to the region where the carrier is located, wherein the stable container carrier comparison module calculates the first carrier according to the performance and the average performance. a weight value.

在本發明的一實施例中,上述的第一載體資訊包含對應於載體的建議容納容器數量以及已容納容器數量,其中穩定容器載體比對模組根據建議容納容器數量以及已容納容器數量計算第一權重值。In an embodiment of the present invention, the above-mentioned first carrier information includes the recommended number of containers and the number of contained containers corresponding to the carrier, wherein the stable container carrier comparison module calculates the first number of containers according to the recommended number of containers and the number of contained containers. a weight value.

在本發明的一實施例中,上述的第一載體資訊包含對應於載體的可擴充硬體配置以及已建立硬體配置,其中穩定容器載體比對模組根據可擴充硬體配置以及已建立硬體配置計算第一權重值。In an embodiment of the present invention, the above-mentioned first carrier information includes an expandable hardware configuration corresponding to the carrier and an established hardware configuration, wherein the stable container carrier comparison module is based on the expandable hardware configuration and the established hardware configuration. The body configuration calculates the first weight value.

在本發明的一實施例中,上述的多個模組更包含容器管理模組。容器管理模組根據特徵表格管理軟體容器的版本,其中特徵表格包含軟體容器的軟體容器名稱。In an embodiment of the present invention, the above-mentioned modules further include a container management module. The container management module manages the version of the software container according to the feature table, wherein the feature table contains the software container name of the software container.

在本發明的一實施例中,上述的容器暫存區包含第一軟體容器以及第二軟體容器,其中容器管理模組響應於第一軟體容器的第一軟體容器名稱與第二軟體容器的第二軟體容器名稱相同,並且第一軟體容器的第一時間戳記早於第二軟體容器的第二時間戳記,而判斷第二軟體容器為第一軟體容器的更新版本,其中容器管理模組以第二軟體容器取代容器暫存區中的第一軟體容器,並且在第一時段過後刪除第一軟體容器。In an embodiment of the present invention, the container temporary storage area includes a first software container and a second software container, wherein the container management module responds to the first software container name of the first software container and the first software container name of the second software container. The names of the two software containers are the same, and the first time stamp of the first software container is earlier than the second time stamp of the second software container, and it is determined that the second software container is an updated version of the first software container, wherein the container management module uses the first The second soft container replaces the first soft container in the container temporary storage area, and the first soft container is deleted after the first period of time.

在本發明的一實施例中,上述的容器編譯模組根據編譯檔產生軟體容器的軟體容器名稱,其中特徵表格包含軟體容器名稱,其中容器管理模組根據容器名稱對應表更新軟體容器名稱。In an embodiment of the present invention, the above-mentioned container compilation module generates software container names of the software containers according to the compilation file, wherein the feature table includes the software container names, and the container management module updates the software container names according to the container name correspondence table.

在本發明的一實施例中,上述的容器編譯模組響應於至少一檔案與編譯檔不匹配而通過收發器傳送警示訊息。In an embodiment of the present invention, the above-mentioned container compilation module transmits an alert message through the transceiver in response to a mismatch between at least one file and the compilation file.

在本發明的一實施例中,上述的容器分類模組響應於容器類型對應表與至少一標籤不匹配而通過收發器傳送警示訊息。In an embodiment of the present invention, the above-mentioned container classification module transmits a warning message through the transceiver in response to a mismatch between the container type correspondence table and the at least one label.

在本發明的一實施例中,上述的容器驗證模組響應於在測試軟體容器時未接收到軟體容器的回應而通過收發器傳送警示訊息。In an embodiment of the present invention, the above-mentioned container verification module transmits an alert message through the transceiver in response to not receiving a response from the software container when testing the software container.

本發明的一種為軟體容器選擇載體的方法,包含:接收至少一檔案以及編譯檔;根據編譯檔將至少一檔案封裝為軟體容器,根據編譯檔產生軟體容器的至少一標籤,並且將軟體容器儲存於容器暫存區;根據容器類型對應表以及至少一標籤對軟體容器進行分類以產生特徵表格,並且根據容器介接對應表定義軟體容器的存放位址;接收測試腳本,並且根據測試腳本測試軟體容器以產生測試結果;接收分別對應於多個載體的多個載體資訊,根據多個載體資訊計算分別對應於多個載體的多個權重值,根據多個權重值從多個載體中選擇載體,並且將軟體容器安裝於載體的存放位址;以及傳送測試結果以及對應於載體的載體資訊。A method for selecting a carrier for a software container of the present invention includes: receiving at least one file and a compiled file; encapsulating at least one file into a software container according to the compiled file, generating at least one label of the software container according to the compiled file, and storing the software container in the container temporary storage area; classify the software container according to the container type correspondence table and at least one label to generate a feature table, and define the storage address of the software container according to the container interface correspondence table; receive the test script, and test the software according to the test script a container to generate test results; receive multiple carrier information corresponding to multiple carriers, calculate multiple weight values corresponding to multiple carriers according to the multiple carrier information, select a carrier from multiple carriers according to the multiple weight values, And the software container is installed in the storage address of the carrier; and the test result and the carrier information corresponding to the carrier are transmitted.

基於上述,本發明可在不需人力介入的情況下完成軟體容器的自動化封裝、分類、管理、驗證、比對和上架流程。本發明具備流程化與自動化的功能,且具時效性、正確性、整合性、效率性以及便利性等優點。本發明可減輕審核大量上架軟體容器時需花費的人力,並可大幅地提升維運管理之便利性。Based on the above, the present invention can complete the process of automatic packaging, classification, management, verification, comparison and putting on the shelf of the software container without human intervention. The present invention has the functions of streamlining and automation, and has the advantages of timeliness, correctness, integration, efficiency and convenience. The present invention can reduce the manpower required for reviewing a large number of software containers to be put on the shelf, and can greatly improve the convenience of maintenance, operation and management.

為了使本發明之內容可以被更容易明瞭,以下特舉實施例作為本發明確實能夠據以實施的範例。另外,凡可能之處,在圖式及實施方式中使用相同標號的元件/構件/步驟,係代表相同或類似部件。In order to make the content of the present invention more comprehensible, the following specific embodiments are given as examples according to which the present invention can indeed be implemented. Additionally, where possible, elements/components/steps using the same reference numerals in the drawings and embodiments represent the same or similar parts.

圖1根據本發明的實施例繪示一種為軟體容器選擇載體的電子裝置100的示意圖。電子裝置100可包含處理器110、儲存媒體120以及收發器130。FIG. 1 is a schematic diagram of an electronic device 100 for selecting a carrier for a software container according to an embodiment of the present invention. The electronic device 100 may include a processor 110 , a storage medium 120 and a transceiver 130 .

處理器110例如是中央處理單元(central processing unit,CPU),或是其他可程式化之一般用途或特殊用途的微控制單元(micro control unit,MCU)、微處理器(microprocessor)、數位信號處理器(digital signal processor,DSP)、可程式化控制器、特殊應用積體電路(application specific integrated circuit,ASIC)、圖形處理器(graphics processing unit,GPU)、影像訊號處理器(image signal processor,ISP)、影像處理單元(image processing unit,IPU)、算數邏輯單元(arithmetic logic unit,ALU)、複雜可程式邏輯裝置(complex programmable logic device,CPLD)、現場可程式化邏輯閘陣列(field programmable gate array,FPGA)或其他類似元件或上述元件的組合。處理器110可耦接至儲存媒體120以及收發器130,並且存取和執行儲存於儲存媒體120中的多個模組和各種應用程式。The processor 110 is, for example, a central processing unit (CPU), or other programmable general-purpose or special-purpose micro control unit (micro control unit, MCU), microprocessor (microprocessor), digital signal processing digital signal processor (DSP), programmable controller, application specific integrated circuit (ASIC), graphics processor (graphics processing unit, GPU), image signal processor (image signal processor, ISP) ), image processing unit (IPU), arithmetic logic unit (ALU), complex programmable logic device (CPLD), field programmable gate array (field programmable gate array) , FPGA) or other similar elements or a combination of the above. The processor 110 may be coupled to the storage medium 120 and the transceiver 130 , and access and execute a plurality of modules and various application programs stored in the storage medium 120 .

儲存媒體120例如是任何型態的固定式或可移動式的隨機存取記憶體(random access memory,RAM)、唯讀記憶體(read-only memory,ROM)、快閃記憶體(flash memory)、硬碟(hard disk drive,HDD)、固態硬碟(solid state drive,SSD)或類似元件或上述元件的組合,而用於儲存可由處理器OOO執行的多個模組或各種應用程式。在本實施例中,儲存媒體120可儲存包括容器上架模組121、容器編譯模組122、容器分類模組123、容器管理模組124、容器驗證模組125、穩定容器載體比對模組126以及容器確認模組127等多個模組,其功能將於後續說明。The storage medium 120 is, for example, any type of fixed or removable random access memory (random access memory, RAM), read-only memory (ROM), and flash memory (flash memory). , hard disk drive (HDD), solid state drive (solid state drive, SSD) or similar components or a combination of the above components for storing a plurality of modules or various applications executable by the processor OOO. In this embodiment, the storage medium 120 can store a container listing module 121 , a container compilation module 122 , a container classification module 123 , a container management module 124 , a container verification module 125 , and a stable container carrier comparison module 126 As well as multiple modules such as the container confirmation module 127, the functions of which will be described later.

收發器130以無線或有線的方式傳送及接收訊號。收發器130還可以執行例如低噪聲放大、阻抗匹配、混頻、向上或向下頻率轉換、濾波、放大以及類似的操作。The transceiver 130 transmits and receives signals in a wireless or wired manner. Transceiver 130 may also perform operations such as low noise amplification, impedance matching, frequency mixing, up or down frequency conversion, filtering, amplification, and the like.

圖2根據本發明的實施例繪示由電子裝置100為軟體容器選擇載體的示意圖。容器上架模組121可通過收發器130接收一或多個檔案以及對應所述一或多個檔案的編譯檔。容器編譯模組122可包含容器暫存區。容器編譯模組122可自容器上架模組121取得一或多個檔案以及對應所述一或多個檔案的編譯檔。接著,容器編譯模組122可根據編譯檔來將一或多個檔案封裝為軟體容器。FIG. 2 is a schematic diagram illustrating selection of a carrier for a software container by the electronic device 100 according to an embodiment of the present invention. The container listing module 121 can receive one or more files and compiled files corresponding to the one or more files through the transceiver 130 . The container compilation module 122 may include a container staging area. The container compilation module 122 can obtain one or more files and a compilation file corresponding to the one or more files from the container listing module 121 . Then, the container compilation module 122 can package one or more files into a software container according to the compilation file.

容器編譯模組122可根據編譯檔來產生軟體容器的軟體容器名稱。舉例來說,編譯檔可包含軟體容器名稱。容器編譯模組122可根據編譯檔中的軟體容器名稱來命名軟體容器。此外,容器編譯模組122還可根據編譯檔來為封裝好的軟體容器建立一或多個標籤(或索引),並將軟體容器儲存在容器暫存區中,以供容器驗證模組125存取,藉此提高軟體容器的使用率。若在封裝軟體容器的過程中,容器編譯模組122發現存在與編譯檔不匹配的檔案,則容器編譯模組122將不會產生軟體容器。此外,容器編譯模組122可響應於檔案與編譯檔不匹配而在日誌中記錄異常情形,並可通過收發器130傳送警示訊息或日誌。管理人員可依據警示訊息或日誌的提示來判斷是否重新配置需封裝成軟體容器的檔案或重新編寫編譯檔。The container compilation module 122 can generate the software container name of the software container according to the compilation file. For example, the build file may contain the software container name. The container compilation module 122 can name the software container according to the software container name in the compilation file. In addition, the container compilation module 122 can also create one or more labels (or indexes) for the packaged software container according to the compilation file, and store the software container in the container temporary storage area for the container verification module 125 to store. to increase the usage rate of the soft container. If during the process of packaging the software container, the container compilation module 122 finds that there is a file that does not match the compilation file, the container compilation module 122 will not generate the software container. In addition, the container compilation module 122 can record an abnormal situation in the log in response to the mismatch between the file and the compiled file, and can transmit a warning message or log through the transceiver 130 . The administrator can judge whether to reconfigure the files that need to be packaged into software containers or rewrite the compiled files according to the warning message or the prompt of the log.

容器分類模組123可預存或通過收發器130取得容器類型對應表以及容器介接對應表。容器類型對應表可記載標籤與分類的關係。容器介接對應表可記載軟體容器的存放位址。容器分類模組123可根據容器類型對應表以及軟體容器的一或多個標籤來對容器暫存區中的軟體容器進行分類以產生特徵表格。特徵表格可包含軟體容器名稱及/或分類結果等資訊。容器分類模組123還可根據容器介接對應表決定軟體容器的存放位址。在一實施例中,容器分類模組123可通過收發器130接收來自外部電子裝置的存取指令,並且根據存取指令而通過收發器130輸出特徵表格,以供外部電子裝置的使用者判斷軟體容器的分類。在一實施例中,容器分類模組123可通過收發器130接收來自外部電子裝置的回饋指令,並可根據回饋指令更新特徵表格。換句話說,使用者可在軟體容器被錯誤分類的情況下,通過回饋指令指示容器分類模組123校正軟體容器的分類結果,增加人員作業效率及減少人工審核成本。The container classification module 123 may pre-store or obtain the container type correspondence table and the container interface correspondence table through the transceiver 130 . The container type correspondence table can record the relationship between labels and classifications. The container interface correspondence table can record the storage address of the software container. The container classification module 123 can classify the soft containers in the container temporary storage area according to the container type correspondence table and one or more labels of the soft containers to generate a feature table. The feature table may contain information such as software container names and/or classification results. The container classification module 123 can also determine the storage address of the software container according to the container interface correspondence table. In one embodiment, the container classification module 123 can receive an access command from an external electronic device through the transceiver 130, and output a feature table through the transceiver 130 according to the access command, so that the user of the external electronic device can determine the software Classification of containers. In one embodiment, the container classification module 123 can receive feedback commands from an external electronic device through the transceiver 130, and can update the feature table according to the feedback commands. In other words, when the software container is wrongly classified, the user can instruct the container classification module 123 to correct the classification result of the software container through a feedback command, thereby increasing the working efficiency of personnel and reducing the cost of manual review.

容器管理模組124可根據特徵表格來管理軟體容器的版本。具體來說,容器管理模組124可判斷特徵表格是否包含了多個具有相同軟體容器名稱的軟體容器。若特徵表格包含了多個具有相同軟體容器名稱的軟體容器,代表容器暫存區儲存了多個具有相同軟體容器名稱的軟體容器。據此,容器管理模組124可讀取軟體暫存區中的多個具有相同軟體容器名稱的軟體容器的時間戳記,並且將具有最晚的時間戳記的軟體容器判斷為該些軟體容器中的更新版本。The container management module 124 can manage the version of the software container according to the feature table. Specifically, the container management module 124 can determine whether the feature table includes a plurality of software containers with the same software container name. If the feature table contains multiple software containers with the same software container name, it means that the container temporary storage area stores multiple software containers with the same software container name. Accordingly, the container management module 124 can read the time stamps of multiple software containers with the same software container name in the software temporary storage area, and determine the software container with the latest time stamp as the software container among the software containers. updated version.

容器管理模組124可將更新版本的軟體容器取代舊版本的軟體容器,並可將舊版本的軟體容器暫存一特定時段,例如,容器管理模組124可在容器暫存區中規劃出一特定區域以儲存舊版本的軟體容器。若在所述特定時段期間容器管理模組124並未通過收發器130接收恢復舊版本的軟體容器的指令,則容器管理模組124可在所述特定時段過後刪除舊版本的軟體容器。若在所述特定時間容器管理模組124通過收發器130接收恢復舊版本的軟體容器的指令,則容器管理模組124可將舊版本的軟體容器取代更新版本的軟體容器。The container management module 124 can replace the software container of the newer version with the software container of the old version, and can temporarily store the software container of the old version for a certain period of time. A specific area to store older versions of software containers. If the container management module 124 does not receive an instruction to restore the old version of the software container through the transceiver 130 during the specified period, the container management module 124 may delete the old version of the software container after the specified period of time. If the container management module 124 receives an instruction to restore the old version of the software container through the transceiver 130 at the specific time, the container management module 124 may replace the old version of the software container with the updated version of the software container.

在一實施例中,容器管理模組124可預存或通過收發器130取得容器名稱對應表。容器管理模組124可根據容器名稱對應表來更新軟體容器的軟體容器名稱。例如,容器管理模組124可根據容器名稱對應表來將軟體容器名稱中的特定字串或符號(例如:無法被判斷的字串或符號)過濾掉,或利用容器名稱對應表中的字串或符號取代所述特定字串或符號,藉以更新軟體容器名稱。更新軟體容器名稱可有效地降低軟體容器名稱被執行時的失敗率。In one embodiment, the container management module 124 may pre-store or obtain the container name correspondence table through the transceiver 130 . The container management module 124 can update the software container name of the software container according to the container name correspondence table. For example, the container management module 124 can filter out specific strings or symbols (eg, undetermined strings or symbols) in the software container names according to the container name correspondence table, or use the strings in the container name correspondence table or symbol to replace the specific string or symbol, thereby updating the software container name. Updating the software container name can effectively reduce the failure rate when the software container name is executed.

容器驗證模組125可通過收發器130接收測試腳本,並可根據測試腳本測試容器暫存區中的軟體容器以產生測試結果。例如,容器驗證模組125可根據測試腳本輸入參數至軟體容器並自軟體容器接收輸出參數。容器驗證模組125可比對輸入參數和輸出參數以為軟體容器進行位元數、英數、字元或特殊參數的檢驗。在為軟體容器進行測試的期間,若容器驗證模組125並未接收到軟體容器的回應,則容器驗證模組125可判斷軟體容器的測試過程出現異常,並可在日誌中記錄異常情形。據此,容器驗證模組125可通過收發器130傳送警示訊息或日誌給管理人員。使用者可彈性地增加或更新測試腳本的內容,提高軟體容器之間的執行的相容率。The container verification module 125 can receive the test script through the transceiver 130, and can test the software container in the container temporary storage area according to the test script to generate the test result. For example, the container validation module 125 may input parameters to the software container and receive output parameters from the software container according to the test script. The container verification module 125 can compare the input parameters and the output parameters to verify the number of bits, letters, characters or special parameters for the software container. During the testing of the software container, if the container verification module 125 does not receive a response from the software container, the container verification module 125 may determine that the testing process of the software container is abnormal, and may record the abnormal situation in the log. Accordingly, the container verification module 125 can transmit warning messages or logs to the management personnel through the transceiver 130 . The user can flexibly add or update the content of the test script to improve the compatibility rate of execution between software containers.

穩定容器載體比對模組126可通過收發器130接收分別對應於多個載體的多個載體資訊,其中所述多個載體中的每一者可包含伺服器、客戶端、桌上型電腦、筆記型電腦、網路型電腦、工作站、個人數位助理(personal digital assistant,PDA)、個人電腦(personal computer,PC)或平板電腦等具有運算能力的電子裝置。穩定容器載體比對模組126可根據多個載體資訊來計算分別對應於多個載體的多個權重值,並可根據多個權重值以從多個載體中選擇一載體以安裝軟體容器。穩定容器載體比對模組126可將軟體容器安裝在受選載體的存放位址(即:由容器分類模組123所決定的存放位址)。在一實施例中,穩定容器載體比對模組126可包含容器資料庫。容器資料庫可儲存安裝了軟體容器的載體的載體資訊,以供管理人員參考。The stable container carrier comparison module 126 may receive, via the transceiver 130, a plurality of carrier information respectively corresponding to a plurality of carriers, wherein each of the plurality of carriers may include a server, a client, a desktop computer, a Notebook computers, network computers, workstations, personal digital assistants (PDAs), personal computers (personal computers, PCs) or tablet computers and other electronic devices with computing capabilities. The stable container carrier comparison module 126 can calculate a plurality of weight values corresponding to the plurality of carriers according to the plurality of carrier information, and can select a carrier from the plurality of carriers to install the software container according to the plurality of weight values. The stable container carrier comparison module 126 can install the soft container at the storage location of the selected carrier (ie, the storage location determined by the container classification module 123). In one embodiment, the stable container carrier comparison module 126 may include a container database. The container database can store the carrier information of the carrier in which the software container is installed for the reference of the management personnel.

穩定容器載體比對模組126可根據載體資訊而考量載體的穩定趨勢、效能、效率或擴充性等因素來選擇安裝軟體容器的載體,並將根據上述因素所選擇的載體的載體資訊儲存在容器資料庫中。具體來說,穩定容器載體比對模組126可根據公式(1)計算載體的權重值,並從多個載體中選擇具有最大權重值的載體以安裝軟體容器。公式(1)中的各個參數可自載體資訊取得。

Figure 02_image001
…(1) The stable container carrier comparison module 126 can select the carrier for installing the software container by considering factors such as the stability trend, performance, efficiency or expandability of the carrier according to the carrier information, and store the carrier information of the carrier selected according to the above factors in the container. in the database. Specifically, the stable container carrier comparison module 126 can calculate the weight value of the carrier according to formula (1), and select the carrier with the largest weight value from the multiple carriers to install the software container. Each parameter in formula (1) can be obtained from carrier information.
Figure 02_image001
…(1)

在公式(1)中, W為權重值,

Figure 02_image003
Figure 02_image005
Figure 02_image007
Figure 02_image009
為權重因子。 Ds- i為前 i天之目標載體的穩定趨勢參考值 f1( i)以及目標載體所在區域的平均穩定趨勢參考值 f2( i)的函數,如公式(2)所示。 Q為穩定質量,並且 QDs- ii=1,2,…,n,n正整數)的函數。
Figure 02_image011
…(2) In formula (1), W is the weight value,
Figure 02_image003
,
Figure 02_image005
,
Figure 02_image007
and
Figure 02_image009
is the weight factor. Ds - i is a function of the stable trend reference value f 1( i ) of the target carrier on the previous i day and the average stable trend reference value f 2( i ) of the area where the target carrier is located, as shown in formula (2). Q is the stable mass, and Q is a function of Ds - i ( i = 1,2,...,n, n positive integers).
Figure 02_image011
…(2)

具體來說,載體資訊可包含目標載體的在前 i天的異常發生次數 B1( i),並可包含對應於目標載體所在區域的多個載體(所述多個載體包含目標載體)在前 i天的平均異常發生次數 B2( i),其中所述多個載體中的每一者的地理位置與目標載體相同,或所述多個載體中的每一者與目標載體是由相同的閘道器管理。穩定容器載體比對模組126可將對應於目標載體的個別預設分數 A1減去異常發生次數的函數 g1( B1( i))以計算穩定趨勢參考值 f1( i)。穩定容器載體比對模組126可將對應於目標載體所在區域的平均預設分數減去平均異常發生次數的函數 g2( B2( i))以計算平均穩定趨勢參考值 f2( i)。穩定容器載體比對模組126可根據穩定趨勢參考值 f1( i)以及平均穩定趨勢參考值 f2( i)計算穩定質量 Q,從而根據穩定質量 Q計算權重值 WSpecifically, the carrier information may include the number of abnormal occurrences B 1( i ) of the target carrier in the previous i days, and may include a plurality of carriers (the plurality of carriers including the target carrier) corresponding to the region where the target carrier is located. Average number of abnormal occurrences B2 ( i ) for i days, wherein each of the plurality of carriers is geographically the same as the target carrier, or each of the plurality of carriers and the target carrier are composed of the same Gateway management. The stable container carrier comparison module 126 may subtract the function g 1( B 1( i )) of the number of abnormal occurrences from the individual preset score A 1 corresponding to the target carrier to calculate the stable trend reference value f 1( i ). The stable container carrier comparison module 126 can calculate the average stable trend reference value f 2( i ) by subtracting the function g 2( B 2( i )) of the average number of abnormal occurrences from the average preset score corresponding to the region where the target carrier is located . The stable container carrier comparison module 126 can calculate the stable mass Q according to the stable trend reference value f 1( i ) and the average stable trend reference value f 2( i ), so as to calculate the weight value W according to the stable mass Q.

在公式(1)中, S為載體個別因素,並且S為效能 B和平均效能 I的函數。具體來說,載體資訊還可包含目標載體的效能 B,並可包含目標載體所在區域的多個載體(所述多個載體包含目標載體)的平均效能 I。穩定容器載體比對模組126可根據效能 B以及平均效能 I計算個別因素 S,從而根據個別因素 S計算權重值 W。在一實施例中,載體的效能與載體的頻寬、硬體效能數值、RAID陣列資源或快取支援等參數有關。 In formula (1), S is the carrier individual factor, and S is a function of efficacy B and average efficacy I. Specifically, the carrier information may further include the performance B of the target carrier, and may include the average performance I of a plurality of carriers in the region where the target carrier is located (the plurality of carriers include the target carrier). The stable container carrier comparison module 126 can calculate the individual factor S according to the performance B and the average performance I , so as to calculate the weight value W according to the individual factor S. In one embodiment, the performance of the carrier is related to parameters such as bandwidth of the carrier, hardware performance value, RAID array resources, or cache support.

載體資訊還可包含目標載體的建議容納容器數量 O(可由管理人員根據載體的規格而定義),並可包含目標載體的已容納容器數量 U(即:目標載體已經安裝的軟體容器的個數)。穩定容器載體比對模組126可根據建議容納容器數量 O以及已容納容器數量 U計算權重值 WThe carrier information can also include the recommended number of containers O of the target carrier (which can be defined by the management personnel according to the specifications of the carrier), and the number of containers that have been accommodated by the target carrier U (ie: the number of software containers that the target carrier has installed) . The stable container-carrier comparison module 126 may calculate the weight value W according to the number O of the proposed container and the number U of the container already contained.

載體資訊還可包含目標載體的可擴充硬體配置 E(可由管理人員根據載體的規格而定義),並可包含目標載體的已建立硬體配置 F(即:目標載體已經擴充的硬體配置)。穩定容器載體比對模組126可根據建議可擴充硬體配置 E以及已建立硬體配置 F計算權重值 WThe carrier information can also include the expandable hardware configuration E of the target carrier (which can be defined by the administrator according to the specifications of the carrier), and can include the established hardware configuration F of the target carrier (ie: the hardware configuration of the target carrier that has been expanded) . The stable container carrier comparison module 126 can calculate the weight value W according to the suggested scalable hardware configuration E and the established hardware configuration F.

在穩定容器載體比對模組126為軟體容器選擇適當的載體後,穩定容器載體比對模組126可將受選載體的載體資訊儲存在容器資料庫中。容器確認模組127可自容器資料庫取得載體資訊,並可自容器驗證模組125取得軟體容器的測試結果。容器驗證模組125可通過收發器130將載體資訊傳送給管理人員(例如:傳送至管理人員的電子信箱),以供管理人員參考。After the stable container carrier comparison module 126 selects an appropriate carrier for the soft container, the stable container carrier comparison module 126 may store the carrier information of the selected carrier in the container database. The container verification module 127 can obtain the carrier information from the container database, and can obtain the test result of the software container from the container verification module 125 . The container verification module 125 can transmit the carrier information to the management personnel through the transceiver 130 (eg, to the management personnel's electronic mailbox) for the management personnel's reference.

圖3根據本發明的實施例繪示一種為軟體容器選擇載體的方法的流程圖,其中所述方法可由如圖1所示的電子裝置100實施。在步驟S301中,接收至少一檔案以及編譯檔。在步驟S302中,根據編譯檔將至少一檔案封裝為軟體容器,根據編譯檔產生軟體容器的至少一標籤,並且將軟體容器儲存於容器暫存區。在步驟S303中,根據容器類型對應表以及至少一標籤對軟體容器進行分類以產生特徵表格,並且根據容器介接對應表定義軟體容器的存放位址。在步驟S304中,接收測試腳本,並且根據測試腳本測試軟體容器以產生測試結果。在步驟S305中,接收分別對應於多個載體的多個載體資訊,根據多個載體資訊計算分別對應於多個載體的多個權重值,根據多個權重值從多個載體中選擇載體,並且將軟體容器安裝於載體的存放位址。在步驟S306中,傳送測試結果以及對應於載體的載體資訊。3 is a flowchart illustrating a method for selecting a carrier for a software container according to an embodiment of the present invention, wherein the method may be implemented by the electronic device 100 as shown in FIG. 1 . In step S301, at least one file and a compiled file are received. In step S302, at least one file is packaged into a software container according to the compiled file, at least one label of the software container is generated according to the compiled file, and the software container is stored in the container temporary storage area. In step S303, the software containers are classified according to the container type correspondence table and at least one label to generate a feature table, and the storage addresses of the software containers are defined according to the container interface correspondence table. In step S304, a test script is received, and the software container is tested according to the test script to generate a test result. In step S305, receiving a plurality of bearer information corresponding to the plurality of bearers respectively, calculating a plurality of weight values corresponding to the plurality of bearers according to the plurality of bearer information, selecting a bearer from the plurality of bearers according to the plurality of weight values, and Install the software container in the storage location of the carrier. In step S306, the test result and the carrier information corresponding to the carrier are transmitted.

綜上所述,本發明的容器編譯模組可依據業務功能特性進行軟體容器的上架。容器編譯模組可負責封裝獨立的軟體容器,並且其分配為單一或多個檔案配置,建立單一或多個檔案的封裝,即不須重複開發同一功能的軟體容器。容器編譯模組還可將軟體容器存放在容器暫存區,從而有效地提高軟體容器的使用率。To sum up, the container compiling module of the present invention can carry out the launch of the software container according to the business function characteristics. The container compilation module is responsible for encapsulating independent software containers, and assigning them to single or multiple file configurations, creating a single or multiple file encapsulation, that is, it is not necessary to repeatedly develop software containers with the same function. The container compilation module can also store the software container in the container temporary storage area, thereby effectively improving the utilization rate of the software container.

本發明的容器分類模組可依據使用者自訂的組態來為軟體容器進行分類。且可透過條件設定來判斷軟體容器的組態,區分各型態的軟體容器。容器分類模組可讓使用者得以有效率地使用分類好的軟體容器,並可接收來自使用者的回饋意見,從而增加人員作業效率以及有效減少人工審核成本。The container classification module of the present invention can classify software containers according to a user-defined configuration. Moreover, the configuration of the software container can be judged through the condition setting, and various types of software containers can be distinguished. The container classification module allows users to efficiently use the classified software containers, and can receive feedback from users, thereby increasing the efficiency of personnel work and effectively reducing the cost of manual review.

本發明的容器管理模組可為軟體容器進行版本管理。容器管理模組可刪除軟體容器的舊有版本,保留舊有版本一定期限。在期限內可恢復。容器管理模組還可對容器命名規則做檢查和異動,自動過濾無效名稱或符號,可有效降低容器執行之失敗率。The container management module of the present invention can perform version management for software containers. The container management module can delete the old version of the software container and keep the old version for a certain period of time. Recoverable within the time limit. The container management module can also check and change the container naming rules, and automatically filter invalid names or symbols, which can effectively reduce the failure rate of container execution.

本發明的容器驗證模組可對軟體容器進行測試和驗證,判斷軟體容器是否可依照測試和驗證腳本正常地執行。容器驗證模組還可彈性地增加、更新腳本資料內容,且對輸入/輸出參數進行確認檢查,以有效地提高軟體容器之間的相容率。The container verification module of the present invention can test and verify the software container, and judge whether the software container can be executed normally according to the test and verification script. The container verification module can also flexibly increase and update the content of script data, and perform confirmation checks on input/output parameters, so as to effectively improve the compatibility rate between software containers.

本發明的穩定容器載體比對模組可從眾多的載體中挑選適於安裝軟體容器的載體。穩定容器載體比對模組可透過權重公式的計算,考量比對各個載體的穩定趨勢、效能、效率或擴充性等條件,在短時間內找出與軟體容器匹配的載體,大幅地提升軟體容器載體維運管理之便利性。The stable container carrier comparison module of the present invention can select a carrier suitable for installing a soft container from a large number of carriers. The stable container carrier comparison module can calculate the stable trend, performance, efficiency or scalability of each carrier through the calculation of the weight formula, and find the carrier that matches the software container in a short time, greatly improving the software container. The convenience of carrier maintenance and management.

本發明的容器確認模組可讀取安裝了軟體容器之載體的載體資訊,可不需管理人員介入,並可減少因人為因素而導致資訊內容回報錯誤。容器確認模組可自動化地依據郵件寄發之模板,將資訊內容有效篩選出來,並回傳至管理者信箱。The container confirmation module of the present invention can read the carrier information of the carrier in which the software container is installed, without the intervention of management personnel, and can reduce the error of information content reporting due to human factors. The container confirmation module can automatically filter out the information content according to the template sent by the mail, and send it back to the administrator's mailbox.

100:電子裝置100: Electronics

110:處理器110: Processor

120:儲存媒體120: Storage Media

121:容器上架模組121: Container Shelving Module

122:容器編譯模組122: Container Compilation Module

123:容器分類模組123: Container classification module

124:容器管理模組124: Container Management Module

125:容器驗證模組125: Container Verification Module

126:穩定容器載體比對模組126: Stable container carrier comparison module

127:容器確認模組127: Container Confirmation Module

130:收發器130: Transceiver

S301、S302、S303、S304、S305、S306:步驟S301, S302, S303, S304, S305, S306: Steps

圖1根據本發明的實施例繪示一種為軟體容器選擇載體的電子裝置的示意圖。 圖2根據本發明的實施例繪示由電子裝置為軟體容器選擇載體的示意圖。 圖3根據本發明的實施例繪示一種為軟體容器選擇載體的方法的流程圖。 FIG. 1 is a schematic diagram illustrating an electronic device for selecting a carrier for a software container according to an embodiment of the present invention. FIG. 2 is a schematic diagram illustrating selection of a carrier for a software container by an electronic device according to an embodiment of the present invention. 3 is a flowchart illustrating a method of selecting a carrier for a soft container according to an embodiment of the present invention.

S301、S302、S303、S304、S305、S306:步驟 S301, S302, S303, S304, S305, S306: Steps

Claims (12)

一種為軟體容器選擇載體的電子裝置,包括:收發器;儲存媒體,儲存多個模組;以及處理器,耦接所述儲存媒體以及所述收發器,並且存取和執行所述多個模組,其中所述多個模組包括:容器上架模組,通過所述收發器接收至少一檔案以及編譯檔;容器編譯模組,包括容器暫存區,其中所述容器編譯模組根據所述編譯檔將所述至少一檔案封裝為所述軟體容器,根據所述編譯檔產生所述軟體容器的至少一標籤,並且將所述軟體容器儲存於所述容器暫存區;容器分類模組,根據容器類型對應表以及所述至少一標籤對所述軟體容器進行分類以產生特徵表格,並且根據容器介接對應表決定所述軟體容器的存放位址;容器驗證模組,通過所述收發器接收測試腳本,並且根據所述測試腳本測試所述軟體容器以產生測試結果,其中所述容器驗證模組響應於在測試所述軟體容器時未接收到所述軟體容器的回應而通過所述收發器傳送警示訊息;穩定容器載體比對模組,通過所述收發器接收分別對應於多個載體的多個載體資訊,根據所述多個載體資訊計算分別對應於所述多個載體的多個權重值,根據所述多個權重值 從所述多個載體中選擇所述載體,並且將所述軟體容器安裝於所述載體的所述存放位址;以及容器確認模組,通過所述收發器傳送所述測試結果以及對應於所述載體的載體資訊。 An electronic device for selecting a carrier for a software container, comprising: a transceiver; a storage medium, storing a plurality of modules; and a processor, coupled to the storage medium and the transceiver, and accessing and executing the plurality of modules group, wherein the multiple modules include: a container listing module, which receives at least one file and a compilation file through the transceiver; a container compilation module, including a container temporary storage area, wherein the container compilation module is based on the The compilation file encapsulates the at least one file as the software container, generates at least one label of the software container according to the compilation file, and stores the software container in the container temporary storage area; the container classification module, The software container is classified according to the container type correspondence table and the at least one label to generate a feature table, and the storage address of the software container is determined according to the container interface correspondence table; the container verification module, through the transceiver receiving a test script, and testing the software container according to the test script to generate a test result, wherein the container verification module passes the transceiver in response to not receiving a response from the software container when testing the software container The device transmits a warning message; stabilizes the container-carrier comparison module, receives a plurality of carrier information corresponding to a plurality of carriers through the transceiver, and calculates a plurality of carrier information corresponding to the plurality of carriers according to the plurality of carrier information weight value, according to the plurality of weight values the carrier is selected from the plurality of carriers, and the soft container is installed at the storage location of the carrier; and a container validation module that transmits the test result and corresponding to the carrier through the transceiver The carrier information of the mentioned carrier. 如請求項1所述的電子裝置,其中所述多個載體資訊包括對應於所述載體的第一載體資訊,並且所述多個權重值包括對應於所述載體的第一權重值,其中所述穩定容器載體比對模組根據所述第一載體資訊計算所述第一權重值,並且響應於所述第一權重值為所述多個權重值中的最大者而選擇所述載體。 The electronic device of claim 1, wherein the plurality of bearer information includes first bearer information corresponding to the bearer, and the plurality of weight values includes a first weight value corresponding to the bearer, wherein the The stable container carrier comparison module calculates the first weight value according to the first carrier information, and selects the carrier in response to the first weight value being the largest of the plurality of weight values. 如請求項2所述的電子裝置,其中所述第一載體資訊包括對應於所述載體的異常發生次數以及對應於所述載體所在區域的至少一載體的平均異常發生次數,其中所述穩定容器載體比對模組將個別預設分數減去所述異常發生次數的第一函數以計算穩定趨勢參考值,並且將平均預設分數減去所述平均異常發生次數的第二函數以計算平均穩定趨勢參考值,其中所述穩定容器載體比對模組根據所述穩定趨勢參考值以及所述平均穩定趨勢參考值計算所述第一權重值。 The electronic device according to claim 2, wherein the first carrier information includes the number of abnormal occurrences corresponding to the carrier and the average number of abnormal occurrences of at least one carrier corresponding to the region where the carrier is located, wherein the stable container The carrier comparison module subtracts the first function of the number of abnormal occurrences from the individual preset scores to calculate a stable trend reference value, and subtracts the second function of the average number of abnormal occurrences from the average preset score to calculate the average stability A trend reference value, wherein the stable container carrier comparison module calculates the first weight value according to the stable trend reference value and the average stable trend reference value. 如請求項2所述的電子裝置,其中所述第一載體資訊包括對應於所述載體的效能以及對應於所述載體所在區域的至少一載體的平均效能,其中所述穩定容器載體比對模組根據所述效能以及所述平均效能計算所述第一權重值。 The electronic device of claim 2, wherein the first carrier information includes performance corresponding to the carrier and an average performance of at least one carrier corresponding to an area where the carrier is located, wherein the stable container carrier is compared with a model The group calculates the first weight value based on the performance and the average performance. 如請求項2所述的電子裝置,其中所述第一載體資訊包括對應於所述載體的建議容納容器數量以及已容納容器數量,其中所述穩定容器載體比對模組根據所述建議容納容器數量以及所述已容納容器數量計算所述第一權重值。 The electronic device of claim 2, wherein the first carrier information includes a recommended number of accommodating containers and a number of accommodating containers corresponding to the carrier, wherein the stable container-carrier comparison module accommodates containers according to the suggestion The first weight value is calculated based on the number and the number of the accommodated containers. 如請求項2所述的電子裝置,其中所述第一載體資訊包括對應於所述載體的可擴充硬體配置以及已建立硬體配置,其中所述穩定容器載體比對模組根據所述可擴充硬體配置以及所述已建立硬體配置計算所述第一權重值。 The electronic device of claim 2, wherein the first carrier information includes an expandable hardware configuration and an established hardware configuration corresponding to the carrier, wherein the stable container carrier comparison module is based on the scalable hardware configuration. The first weight value is calculated by extending the hardware configuration and the established hardware configuration. 如請求項1所述的電子裝置,其中所述多個模組更包括:容器管理模組,根據所述特徵表格管理所述軟體容器的版本,其中所述特徵表格包括所述軟體容器的軟體容器名稱。 The electronic device of claim 1, wherein the modules further comprise: a container management module, which manages the version of the software container according to the feature table, wherein the feature table includes the software of the software container Container name. 如請求項7所述的電子裝置,其中所述容器暫存區包括第一軟體容器以及第二軟體容器,其中所述容器管理模組響應於所述第一軟體容器的第一軟體容器名稱與所述第二軟體容器的第二軟體容器名稱相同,並且所述第一軟體容器的第一時間戳記早於所述第二軟體容器的第二時間戳記,而判斷所述第二軟體容器為所述第一軟體容器的更新版本,其中所述容器管理模組以所述第二軟體容器取代所述容器暫存區中的所述第一軟體容器,並且在第一時段過後刪除所述第一軟體容器。 The electronic device of claim 7, wherein the container temporary storage area includes a first software container and a second software container, wherein the container management module is responsive to the first software container name of the first software container and the The name of the second software container of the second software container is the same, and the first time stamp of the first software container is earlier than the second time stamp of the second software container, and the second software container is determined to be the same. an updated version of the first soft container, wherein the container management module replaces the first soft container in the container temporary area with the second soft container, and deletes the first soft container after a first period of time has elapsed Soft container. 如請求項7所述的電子裝置,其中所述容器編譯模組根據所述編譯檔產生所述軟體容器的軟體容器名稱,其中 所述特徵表格包括所述軟體容器名稱,其中所述容器管理模組根據容器名稱對應表更新所述軟體容器名稱。 The electronic device according to claim 7, wherein the container compilation module generates a software container name of the software container according to the compilation file, wherein The feature table includes the software container name, wherein the container management module updates the software container name according to the container name correspondence table. 如請求項1所述的電子裝置,其中所述容器編譯模組響應於所述至少一檔案與所述編譯檔不匹配而通過所述收發器傳送所述警示訊息。 The electronic device of claim 1, wherein the container compilation module transmits the alert message through the transceiver in response to a mismatch between the at least one file and the compilation file. 如請求項1所述的電子裝置,其中所述容器分類模組響應於所述容器類型對應表與所述至少一標籤不匹配而通過所述收發器傳送所述警示訊息。 The electronic device of claim 1, wherein the container classification module transmits the alert message through the transceiver in response to a mismatch between the container type correspondence table and the at least one label. 一種為軟體容器選擇載體的方法,包括:接收至少一檔案以及編譯檔;根據所述編譯檔將所述至少一檔案封裝為所述軟體容器,根據所述編譯檔產生所述軟體容器的至少一標籤,並且將所述軟體容器儲存於容器暫存區;根據容器類型對應表以及所述至少一標籤對所述軟體容器進行分類以產生特徵表格,並且根據容器介接對應表定義所述軟體容器的存放位址;接收測試腳本,並且根據所述測試腳本測試所述軟體容器以產生測試結果;響應於在測試所述軟體容器時未接收到所述軟體容器的回應而傳送警示訊息;接收分別對應於多個載體的多個載體資訊,根據所述多個載體資訊計算分別對應於所述多個載體的多個權重值,根據所述多 個權重值從所述多個載體中選擇所述載體,並且將所述軟體容器安裝於所述載體的所述存放位址;以及傳送所述測試結果以及對應於所述載體的載體資訊。 A method for selecting a carrier for a software container, comprising: receiving at least one file and a compiled file; encapsulating the at least one file as the software container according to the compiled file, and generating at least one of the software container according to the compiled file label, and store the software container in the container temporary storage area; classify the software container according to the container type correspondence table and the at least one label to generate a feature table, and define the software container according to the container interface correspondence table storage address; receive a test script, and test the software container according to the test script to generate a test result; transmit a warning message in response to not receiving a response from the software container when testing the software container; receive a separate A plurality of carrier information corresponding to a plurality of carriers, a plurality of weight values corresponding to the plurality of carriers are calculated according to the plurality of carrier information, and a plurality of weight values corresponding to the plurality of carriers are calculated according to the plurality of carrier information. A weight value selects the carrier from the plurality of carriers, and installs the software container at the storage address of the carrier; and transmits the test result and carrier information corresponding to the carrier.
TW109144027A 2020-12-14 2020-12-14 Electronic device and method of selecting carrier for software container TWI754488B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW109144027A TWI754488B (en) 2020-12-14 2020-12-14 Electronic device and method of selecting carrier for software container

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW109144027A TWI754488B (en) 2020-12-14 2020-12-14 Electronic device and method of selecting carrier for software container

Publications (2)

Publication Number Publication Date
TWI754488B true TWI754488B (en) 2022-02-01
TW202223627A TW202223627A (en) 2022-06-16

Family

ID=81329350

Family Applications (1)

Application Number Title Priority Date Filing Date
TW109144027A TWI754488B (en) 2020-12-14 2020-12-14 Electronic device and method of selecting carrier for software container

Country Status (1)

Country Link
TW (1) TWI754488B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160351936A1 (en) * 2015-03-17 2016-12-01 Keegan Cooke Substrate-powered energy storage and generation system
TW201820128A (en) * 2016-11-21 2018-06-01 財團法人資訊工業策進會 Computer device and method for facilitating user to manage containers
TW201901551A (en) * 2017-05-24 2019-01-01 大陸商中國銀聯股份有限公司 Method and device for configuring safety carrier
TW202008154A (en) * 2018-08-03 2020-02-16 廣達電腦股份有限公司 Software container based systems and methods for providing cloud services

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160351936A1 (en) * 2015-03-17 2016-12-01 Keegan Cooke Substrate-powered energy storage and generation system
TW201820128A (en) * 2016-11-21 2018-06-01 財團法人資訊工業策進會 Computer device and method for facilitating user to manage containers
TW201901551A (en) * 2017-05-24 2019-01-01 大陸商中國銀聯股份有限公司 Method and device for configuring safety carrier
TW202008154A (en) * 2018-08-03 2020-02-16 廣達電腦股份有限公司 Software container based systems and methods for providing cloud services

Also Published As

Publication number Publication date
TW202223627A (en) 2022-06-16

Similar Documents

Publication Publication Date Title
US11106459B2 (en) Distributed parallel build system
CN111033468B (en) System and method for implementing different types of blockchain contracts
US7483959B2 (en) Method and system for extensible data gathering
US6678885B2 (en) System and method for common code generation
EP1872215B1 (en) Implementing data-compatibility-based version scheme
US9424003B1 (en) Schema-less system output object parser and code generator
CN116757843A (en) System and method for executing different types of blockchain contracts
US8396846B2 (en) Database trigger modification system and method
US7650346B2 (en) User-defined type consistency checker
US20070245335A1 (en) Software management apparatus and software management method
CN112654977A (en) Publish to data warehouse
CN108595187A (en) Method, device and the storage medium of Android installation kit integrated software development kit
CN110532182B (en) Automatic testing method and device for virtualization platform
WO2008024594A2 (en) Methods for efficient data version verification
CN110688096B (en) Method and device for constructing application program containing plug-in, medium and electronic equipment
US7840603B2 (en) Method and apparatus for database change management
US8296723B2 (en) Configurable unified modeling language building blocks
CN111736762B (en) Synchronous updating method, device, equipment and storage medium of data storage network
WO2022012305A1 (en) Method and apparatus for managing model file in inference application
US8533702B2 (en) Dynamically resolving fix groups for managing multiple releases of multiple products on multiple systems
JP2020197873A (en) Information processing system and method for controlling information processing system
US20210124752A1 (en) System for Data Collection, Aggregation, Storage, Verification and Analytics with User Interface
TWI754488B (en) Electronic device and method of selecting carrier for software container
WO2023151397A1 (en) Application program deployment method and apparatus, device, and medium
US10055516B1 (en) Testing open mobile alliance server payload on an open mobile alliance client simulator