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
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "processmaker/docker-executor-java",
"friendly_name": "Java Docker Executor",
"description": "Java script executor for processmaker 4",
"version": "1.0.4",
"version": "1.0.5",
"minimum-stability": "dev",
"autoload": {
"psr-4": {
Expand Down
11 changes: 7 additions & 4 deletions src/DockerExecutorJavaServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class DockerExecutorJavaServiceProvider extends ServiceProvider
{
use PluginServiceProviderTrait;

const version = '1.0.0'; // Required for PluginServiceProviderTrait
public const version = '1.0.5'; // Required for PluginServiceProviderTrait

public function register()
{
Expand All @@ -29,18 +29,21 @@ public function register()
*/
public function boot()
{
Artisan::command('docker-executor-java:install', function () {
Artisan::command('docker-executor-java:install {--no-build : Skip building the script executor image}', function () {
ScriptExecutor::install([
'language' => 'java',
'title' => 'Java Executor',
'description' => 'Default Java Executor',
]);

// Build the instance image. This is the same as if you were to build it from the admin UI
Artisan::call('processmaker:build-script-executor java');
// Skip building the image if the --no-build option is passed
if (!$this->option('no-build')) {
Artisan::call('processmaker:build-script-executor java');
}

// Restart the workers so they know about the new supported language
Artisan::call('horizon:terminate');
//Artisan::call('horizon:terminate');
});

config(['script-runners.java' => [
Expand Down