Skip to content

FOUR-31789: Add streaming tar entrypoint for PHP script executor#28

Open
AugustoLopezProcess wants to merge 1 commit into
developfrom
feature/FOUR-31789
Open

FOUR-31789: Add streaming tar entrypoint for PHP script executor#28
AugustoLopezProcess wants to merge 1 commit into
developfrom
feature/FOUR-31789

Conversation

@AugustoLopezProcess

Copy link
Copy Markdown

Summary

  • Adds src/run-stream.sh, a streaming entrypoint that accepts script task inputs via stdin (tar archive), runs bootstrap.php, and optionally returns output files via stdout (tar archive).
  • Enables Docker API–driven execution without bind mounts, complementing the existing volume-mount workflow documented in the README.

Context

Today the PHP executor is invoked directly:

docker run ... processmaker/executor:php php /opt/executor/bootstrap.php

The new script supports a pipe-based flow suitable for callers that inject files over stdin/stdout instead of mounting host paths:

Caller sends a tar of data.json, config.json, script.php, and an empty output.json on stdin.
Container extracts to /, executes the script via bootstrap.php.
Caller receives output.json (and any other requested paths) from stdout.

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.

1 participant