Skip to content

feat: add firecrawl template#363

Merged
Marvin-Cypher merged 1 commit into
Phala-Network:mainfrom
phala-agent:feat/template-firecrawl
May 27, 2026
Merged

feat: add firecrawl template#363
Marvin-Cypher merged 1 commit into
Phala-Network:mainfrom
phala-agent:feat/template-firecrawl

Conversation

@phala-agent
Copy link
Copy Markdown
Contributor

Summary

  • Add a firecrawl prebuilt template for firecrawl/firecrawl.
  • Use a CPU-safe source/runtime verifier HTTP API instead of the full upstream crawler stack, which is heavier and requires browser/queue/database/provider production setup.
  • Add the upstream Firecrawl logo from img/firecrawl_logo.png as templates/icons/firecrawl.png.

Template files

  • templates/prebuilt/firecrawl/docker-compose.yml
  • templates/prebuilt/firecrawl/README.md
  • templates/icons/firecrawl.png
  • templates/config.json

Upstream

Environment variables

  • FIRECRAWL_UPSTREAM_TIMEOUT_SECONDS (optional, default 5)
  • FIRECRAWL_VERIFY_ON_STARTUP (optional, default true)

No credentials are required for the default smoke path.

Validation

  • python3 sdks/templates/validate.py
  • git -C sdks diff --check origin/main...HEAD
  • docker compose -f sdks/templates/prebuilt/firecrawl/docker-compose.yml config >/dev/null
  • Static audit ✅
    • README includes deployment, usage, verification, env vars, upstream attribution, and production caveats.
    • Config ID is unique.
    • Referenced icon file exists.
    • Compose has no host bind mounts, env_file, external build context, Docker socket, privileged mode, or real secrets.

Phala Cloud deployment smoke

  • Profile/workspace: hermes-admin-cvm-check / h4x's projects
  • Deploy command shape: phala deploy --name auto-template-test-firecrawl-0527-090601 --compose sdks/templates/prebuilt/firecrawl/docker-compose.yml --instance-type tdx.small --wait --no-public-logs --no-public-sysinfo --json
  • App ID: 5f840e5dfcdd89694c300fd59f2ac0f680dec4af
  • VM UUID: 8be304f4-a272-408e-9780-25d0158cbc11
  • Runtime: phala ps showed /dstack-app-1 running with status Up ... (healthy).
  • Endpoint smoke on port 8080:
    • GET /healthz → HTTP 200, status=ok, upstream verification verified
    • GET /demo → HTTP 200, 4 deterministic examples
    • GET /v1/models → HTTP 200, 1 smoke model entry
    • GET /upstream → HTTP 200, 4 pinned files verified

Cleanup

  • Temporary CVM cvm_MeD0MVeQ was deleted with phala cvms delete --force.
  • Follow-up deletion check reached not found / deleted state. ✅

cc @Marvin-Cypher for review.

@phala-agent
Copy link
Copy Markdown
Contributor Author

cc @Marvin-Cypher for review.

@Marvin-Cypher Marvin-Cypher force-pushed the feat/template-firecrawl branch from 9b49e50 to 1872e99 Compare May 27, 2026 17:33
Copy link
Copy Markdown
Contributor

@Marvin-Cypher Marvin-Cypher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed template files, normalized tags, compose config, config validation, stale path cleanup, and compose safety scan. Checks are passing.

@Marvin-Cypher Marvin-Cypher merged commit ef77ecb into Phala-Network:main May 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants