Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,15 @@ This docker image provides a sandboxed protected environment to run custom PHP s
User created script tasks should be isolated however have utilities available to them in order to get most common tasks done. This
PHP environment has PHP packages available and autoloaded so Script Tasks can take advantage of the following libraries:

- guzzlehttp/guzzle: ~6.0
- guzzlehttp/guzzle: ^7.9
- TODO : Identify most common libraries used for existing script tasks

The ProcessMaker SDK is generated from the application's OpenAPI document during
the executor build. The PHP generator must produce code compatible with Guzzle
7; do not replace the generated SDK with a manually patched copy. The build
uses `php artisan processmaker:sdk php <output> --clean`; the generator version
is pinned by ProcessMaker's `BuildSdk` service.

## How to use
The execution requires a data.json, config.json and an output.json file be present on the host system. The data.json represents the
Request instance data. The config.json represents configuration specific for this Script Task. And the output.json should be a blank
Expand Down
2 changes: 1 addition & 1 deletion src/DockerExecutorPhpServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function boot()
'language' => 'php',
'title' => 'PHP Executor',
'description' => 'Default PHP Executor',
'config' => 'RUN composer require aws/aws-sdk-php:3.226.0',
'config' => 'RUN composer require aws/aws-sdk-php:^3.367 --with-all-dependencies',
]);

// Build the instance image. This is the same as if you were to build it from the admin UI
Expand Down
7 changes: 5 additions & 2 deletions src/composer.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
{
"name": "processmaker/docker-executor-php-runtime",
"description": "Runtime dependencies for the ProcessMaker PHP script executor",
"license": "AGPL-3.0-or-later",
"require": {
"aws/aws-sdk-php": "^3.192,<3.368",
"guzzlehttp/guzzle": "~6.0"
"guzzlehttp/guzzle": "^7.9"
},
"require-dev": {
"phpunit/phpunit": "^6.5.14",
"phpunit/phpunit": "^9.6",
"mockery/mockery": "^1.2"
},
"autoload": {
Expand Down
Loading