Skip to content

FIRERPA internal Python script encrypt/compiler | FIRERPA 内置 Python 运行时脚本编译/加密器

Notifications You must be signed in to change notification settings

firerpa/compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Module Compiler 脚本编译器

本镜像用于将 FIRERPA 扩展模块或是在内部环境中执行的脚本进行编译处理以减少逻辑泄漏的可能。通过 Cython 将核心 Python 脚本转换并编译为 so (shared library) 文件,支持多平台。您可以通过此镜像来将 FIRERPA 中放置在 /data/usr/module/(task|extension) 或是在内部 Python 环境中运行的脚本进行编译化加密。This image is designed for compiling FIRERPA extension modules or scripts executed in internal environments to reduce the possibility of logic leakage. It uses Cython to convert and compile core Python scripts into so (shared library) files, supporting multiple platforms. You can utilize this image to compile and encrypt scripts located in /data/usr/module/(task|extension) within FIRERPA, or those running in the internal Python environment.

Build Docker Image

docker build -t compiler .

Command Usage

使用如下命令将源代码映射到镜像内并编译,支持的 arch 包括 armarm64x86x86_64,对应 FIRERPA 服务端的不同架构。Use the following command to map the source code into the image and compile it. The supported arch types are arm, arm64, x86, and x86_64, corresponding to the different architectures of server.

docker run -it --rm -v /source/dir:/data compiler:latest compile.sh --arch arm64 /data/my_script.py

About

FIRERPA internal Python script encrypt/compiler | FIRERPA 内置 Python 运行时脚本编译/加密器

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages