Unlock instant, AI-driven research and patent intelligence for your innovation.

Cross-platform script language deployment method

A scripting language, cross-platform technology, applied in the field of cross-platform deployment scripting language, can solve the problems of large resource consumption, high system complexity, and invalid space occupied by duplicate files.

Active Publication Date: 2021-07-06
CHENGDU DBAPP SECURITY
View PDF9 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0009] Aiming at the disadvantages of the prior art such as excessive resource consumption, high system complexity, and space being invalidly occupied by repeated files, the present invention proposes a method for deploying a script language across platforms. The deployment method solves the problem of dependency isolation when running in a single environment, and reduces the system administrator's management of dependent libraries. Compared with the existing technology, this method takes up less system resources and disk resources, and only needs The fuse library and compression library can run various scripting language programs without other dependencies, and can run on devices with relatively few resources or embedded devices

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Cross-platform script language deployment method
  • Cross-platform script language deployment method
  • Cross-platform script language deployment method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0030] This embodiment proposes a method of deploying a cross-platform deployment scripting language, such as figure 1 As shown, first copy the scripting language engineering to be deployed to the build environment, then analyze and copy the dependency of the scripting language project to be deployed in the build environment, then put the project documents and dependencies of the scripting language engineering. Go to a directory; then generate the meta-information file of the directory content, and the executable Bootstrap file, and compress the directory, meta information file, and bootstrap files into single-text executables; finally deploy single file executable to the operating environment Perform execution.

[0031] In order to better implement the present invention, further, first decompress the contents of the single file executable program according to the meta-information file and the bootstrap file, and mount the directory into the FUSE user file system, then perform sin...

Embodiment 2

[0034] In addition to the above-described embodiment 1, in order to better achieve the present invention, for example, figure 2As shown, after copying the scripting language engineering to be deployed to the build environment, you need to judge whether there is a package manager profile. If you have a package manager profile, depending on the package manager profile analysis library dependent the language level. Relying on information; if there is no package manager profile, find the library dependence of all script files in the scripting language project, resulting in a library dependency information of the language level.

[0035] Further, after obtaining the library dependency information of the language level, it is further determined whether or not there is a cache; set the local cache module, if there is a cache, copy the dependency of the library dependency information of the language level by the local cache module to the language level In the dependency library directory;...

Embodiment 3

[0046] Based on any of the above embodiments 1-2, in order to better achieve the present invention, further, such as image 3 As shown, the compression production process of the single file executable program is: first compress the Bootstrap file, meta information file, engineering file, depending on the project file, the meta-information file, the project file, and the project record is compressed as a single file executable.

[0047] The other portions of the present embodiment are the same as any of the above-described embodiments, so it will not be described again.

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a cross-platform scripting language deployment method, which comprises the following steps of firstly, copying a scripting language project to be deployed into a construction environment, then analyzing the dependency of the scripting language project to be deployed in the construction environment, and copying a dependency item; then putting the project file of the script language project and a dependency item into a directory; then generating a meta-information file of the content of the directory and an executable bootstrap file, and compressing the directory, the meta-information file and the bootstrap file into a single-file executable program; and finally, deploying the single-file executable program into a running environment for execution. According to the method, a problem of dependency isolation during single-environment operation is solved, management of a system administrator on a dependency database is reduced, compared with the prior art, fewer system resources and disk resources are occupied, various script language programs can be operated only through a fuse database and a compressed database without other dependencies, and the method can be operated in equipment with relatively few resources or embedded equipment.

Description

Technical field [0001] The present invention belongs to the field of computer scripting language deployment, and in particular, to a method of deploying a cross-platform deployment scripting language. Background technique [0002] In a computer network, there are various types of operating systems, classes, UNIX, and Windows, etc., install the system libraries, deployment configuration, and cumbersome and easy errors for multiple scripting languages. Script language programs running on the network single node may be different versions, such as Ruby has Ruby2 and Ruby1, Python has 2 and 3, which is large, sometimes because of the dependence system library version conflicts can't share there in a single node, Virtual machine or container can solve this isolation problem, but the network has limited resources, unable to install the virtual machine, and the large number of virtual machines in the management cluster also increase the complexity of the system; some nodes are embedded d...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F8/60G06F8/71G06F16/174G06F16/16
CPCG06F8/60G06F8/71G06F16/1744G06F16/16Y02D10/00
Inventor 张达彬范渊吴永越郑学新刘韬
Owner CHENGDU DBAPP SECURITY