Wener Notes

activepieces

约 1 分钟阅读
  • activepieces/activepiecesGitHubactivepieces/activepiecesactivepieces/activepieces · MIT, Typescript · no-code workflow builder · 存储: Postgres, SQLite3, Redis · 替代 n8n · 使用 isolate 做安全隔离笔记:activepieces
    • MIT, Typescript
    • no-code workflow builder
    • 存储: Postgres, SQLite3, Redis
    • 替代 n8n
    • 使用 isolate笔记isolateioi/isolate · GPLv2, C · 执行不安全程序 · adopted by · cms-dev/cms · OnlineJudge · activepieces · 参考 · A New Contest Sandbox http://mj.ucw.cz/papers/isolate.pdf打开:/notes/os/linux/sys/isolate 做安全隔离
    • nx 项目结构
    • 前端 angular
bash
docker run --rm -it \
  -p 8080:80 -v $PWD/data:/root/.activepieces \
  -e AP_TELEMETRY_ENABLED=false \
  -e AP_QUEUE_MODE=MEMORY \
  -e AP_DB_TYPE=SQLITE3 \
  -e AP_FRONTEND_URL="http://localhost:8080" \
  --name=activepieces activepieces/activepieces:latest

Configuration

Notes

前端

  • Angular

后端

  • fastify
  • BullMQ+redis
  • IsolateGitHubioi/isolateioi/isolate · GPLv2, C · 执行不安全程序 · adopted by · cms-dev/cms · OnlineJudge · activepieces · 参考 · A New Contest Sandbox http://mj.ucw.cz/papers/isolate.pdf笔记:isolate sandbox
  • Flow Queue - BullMQ
  • Flow Worker
  • 使用 Webpack Bundle

Flow Worker

  • 创建 sandbox - /var/local/lib/isolate/BOX_ID
  • 准备 sandbox - /var/local/lib/isolate/BOX_ID/box
    • 下载文件
text
.
├── BOX_ID
│   ├── box
│   │   ├── activepieces-engine.js
│   │   ├── flows
│   │   │   │── flow_version_id.json
│   │   ├── code
│   │   │   │── code_one_file_id.js
│   │   │   │── code_two_file_id.js
  • pnpm install
  • 调用引擎
bash
./isolate --box-id=%d --processes --wall-time=500 --run node /var/local/lib/isolate/BOX_ID/box/activepieces-engine.js
  • _output.json 记录结果

EE

关联信息

反向链接、本文链接的其他页面和外部资料。

站内链接

  • isolate
    笔记 · isolate

    ioi/isolate · GPLv2, C · 执行不安全程序 · adopted by · cms-dev/cms · OnlineJudge · activepieces · 参考 · A New Contest Sandbox http://mj.ucw.cz/papers/isolate.pdf

References

GitHub2 条
其他外链1 条
最近更新commit 456b1b1Edit

On this page