From 56da61586504cfebe743fa02b21801d5ea62b9d3 Mon Sep 17 00:00:00 2001 From: Willem Leuverink Date: Tue, 2 Apr 2024 13:06:18 +0200 Subject: [PATCH 01/48] wip - not working due to issue (https://github.com/NativePHP/laravel/issues/264) --- app/Livewire/Inbox.php | 2 + app/Providers/NativeAppServiceProvider.php | 33 ++ composer.json | 4 +- composer.lock | 395 ++++++++++++++------- config/nativephp.php | 117 ++++++ 5 files changed, 414 insertions(+), 137 deletions(-) create mode 100644 app/Providers/NativeAppServiceProvider.php create mode 100644 config/nativephp.php diff --git a/app/Livewire/Inbox.php b/app/Livewire/Inbox.php index 3f0640b..07e4ba6 100644 --- a/app/Livewire/Inbox.php +++ b/app/Livewire/Inbox.php @@ -2,8 +2,10 @@ namespace App\Livewire; +use Livewire\Attributes\Title; use Livewire\Component; +#[Title('Phost | Inbox')] class Inbox extends Component { public function render() diff --git a/app/Providers/NativeAppServiceProvider.php b/app/Providers/NativeAppServiceProvider.php new file mode 100644 index 0000000..8864730 --- /dev/null +++ b/app/Providers/NativeAppServiceProvider.php @@ -0,0 +1,33 @@ +titleBarHidden() + ->hideMenu() + ->width(1200) + ->height(740) + ->minWidth(540) + ->minHeight(500); + } + + /** + * Return an array of php.ini directives to be set. + */ + public function phpIni(): array + { + return [ + ]; + } +} diff --git a/composer.json b/composer.json index 3e06dd0..e00d66f 100644 --- a/composer.json +++ b/composer.json @@ -8,12 +8,12 @@ "php": "^8.2", "laravel/framework": "^11.0", "laravel/tinker": "^2.9", - "livewire/livewire": "^3.4" + "livewire/livewire": "^3.4", + "nativephp/electron": "^0.5.0" }, "require-dev": { "fakerphp/faker": "^1.23", "laravel/pint": "^1.13", - "laravel/sail": "^1.26", "mockery/mockery": "^1.6", "nunomaduro/collision": "^8.0", "pestphp/pest": "^2.34", diff --git a/composer.lock b/composer.lock index 7220c78..5d070ac 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "f61a0bc4c774fb073f4ea5c996e687f3", + "content-hash": "2566c90275d87acef8f380c8e7106460", "packages": [ { "name": "brick/math", @@ -2002,6 +2002,205 @@ ], "time": "2023-10-27T15:32:31+00:00" }, + { + "name": "nativephp/electron", + "version": "0.5.0", + "source": { + "type": "git", + "url": "https://github.com/NativePHP/electron.git", + "reference": "8b696907e6c56cc1649dd73d85bbf90b2cf7f8aa" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/NativePHP/electron/zipball/8b696907e6c56cc1649dd73d85bbf90b2cf7f8aa", + "reference": "8b696907e6c56cc1649dd73d85bbf90b2cf7f8aa", + "shasum": "" + }, + "require": { + "illuminate/contracts": "^10.0|^11.0", + "laravel/prompts": "^0.1.1", + "nativephp/laravel": "*", + "nativephp/php-bin": "*", + "php": "^8.1", + "spatie/laravel-package-tools": "^1.14.0" + }, + "require-dev": { + "laravel/pint": "^1.0", + "nunomaduro/collision": "^7.9", + "nunomaduro/larastan": "^2.0.1", + "orchestra/testbench": "^8.0", + "pestphp/pest": "^2.0", + "pestphp/pest-plugin-arch": "^2.0", + "pestphp/pest-plugin-laravel": "^2.0", + "phpstan/extension-installer": "^1.1", + "phpstan/phpstan-deprecation-rules": "^1.0", + "phpstan/phpstan-phpunit": "^1.0", + "spatie/laravel-ray": "^1.26" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Native\\Electron\\ElectronServiceProvider" + ], + "aliases": { + "Updater": "Native\\Electron\\Facades\\Updater" + } + } + }, + "autoload": { + "psr-4": { + "Native\\Electron\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Marcel Pociot", + "email": "marcel@beyondco.de", + "role": "Developer" + } + ], + "description": "Electron wrapper for the NativePHP framework.", + "homepage": "https://github.com/nativephp/electron", + "keywords": [ + "electron", + "laravel", + "nativephp" + ], + "support": { + "source": "https://github.com/NativePHP/electron/tree/0.5.0" + }, + "time": "2024-04-01T16:29:10+00:00" + }, + { + "name": "nativephp/laravel", + "version": "0.5.0", + "source": { + "type": "git", + "url": "https://github.com/NativePHP/laravel.git", + "reference": "691c8c2f9d894e6ead65e274046825e179ef8fd5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/NativePHP/laravel/zipball/691c8c2f9d894e6ead65e274046825e179ef8fd5", + "reference": "691c8c2f9d894e6ead65e274046825e179ef8fd5", + "shasum": "" + }, + "require": { + "illuminate/contracts": "^10.0|^11.0", + "php": "^8.1", + "spatie/laravel-package-tools": "^1.14.0", + "symfony/finder": "^6.2|^7.0" + }, + "require-dev": { + "guzzlehttp/guzzle": "^7.0", + "laravel/pint": "^1.0", + "nunomaduro/collision": "^7.9", + "nunomaduro/larastan": "^2.0.1", + "orchestra/testbench": "^8.0", + "pestphp/pest": "^2.0", + "pestphp/pest-plugin-arch": "^2.0", + "pestphp/pest-plugin-laravel": "^2.0", + "phpstan/extension-installer": "^1.1", + "phpstan/phpstan-deprecation-rules": "^1.0", + "phpstan/phpstan-phpunit": "^1.0", + "spatie/laravel-ray": "^1.26" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Native\\Laravel\\NativeServiceProvider" + ], + "aliases": { + "ContextMenu": "Native\\Laravel\\Facades\\ContextMenu", + "Dock": "Native\\Laravel\\Facades\\Dock", + "Process": "Native\\Laravel\\Facades\\Process", + "Window": "Native\\Laravel\\Facades\\Window", + "Clipboard": "Native\\Laravel\\Facades\\Clipboard" + } + } + }, + "autoload": { + "psr-4": { + "Native\\Laravel\\": "src/", + "Native\\Laravel\\Database\\Factories\\": "database/factories/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Marcel Pociot", + "email": "marcel@beyondco.de", + "role": "Developer" + } + ], + "description": "Laravel wrapper for the NativePHP framework.", + "homepage": "https://github.com/nativephp/laravel", + "keywords": [ + "laravel", + "nativephp", + "nativephp-laravel" + ], + "support": { + "issues": "https://github.com/NativePHP/laravel/issues", + "source": "https://github.com/NativePHP/laravel/tree/0.5.0" + }, + "time": "2024-04-01T16:29:53+00:00" + }, + { + "name": "nativephp/php-bin", + "version": "0.3.0", + "source": { + "type": "git", + "url": "https://github.com/NativePHP/php-bin.git", + "reference": "36fec9027b2be29d1a5d1aa83baf6d8030da66e9" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/NativePHP/php-bin/zipball/36fec9027b2be29d1a5d1aa83baf6d8030da66e9", + "reference": "36fec9027b2be29d1a5d1aa83baf6d8030da66e9", + "shasum": "" + }, + "type": "library", + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0", + "GPL-3.0-or-later", + "MIT", + "PHP-3.01" + ], + "authors": [ + { + "name": "Marcel Pociot", + "email": "marcel@beyondco.de", + "role": "Developer" + }, + { + "name": "Simon Hamp", + "email": "simon.hamp@me.com", + "role": "Developer" + } + ], + "description": "PHP binaries used by the NativePHP framework", + "homepage": "https://nativephp.com", + "keywords": [ + "nativephp", + "php" + ], + "support": { + "issues": "https://github.com/NativePHP/php-bin/issues", + "source": "https://github.com/NativePHP/php-bin/tree/0.3.0" + }, + "time": "2023-07-27T10:44:16+00:00" + }, { "name": "nesbot/carbon", "version": "3.2.3", @@ -3193,6 +3392,66 @@ ], "time": "2023-11-08T05:53:05+00:00" }, + { + "name": "spatie/laravel-package-tools", + "version": "1.16.4", + "source": { + "type": "git", + "url": "https://github.com/spatie/laravel-package-tools.git", + "reference": "ddf678e78d7f8b17e5cdd99c0c3413a4a6592e53" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/laravel-package-tools/zipball/ddf678e78d7f8b17e5cdd99c0c3413a4a6592e53", + "reference": "ddf678e78d7f8b17e5cdd99c0c3413a4a6592e53", + "shasum": "" + }, + "require": { + "illuminate/contracts": "^9.28|^10.0|^11.0", + "php": "^8.0" + }, + "require-dev": { + "mockery/mockery": "^1.5", + "orchestra/testbench": "^7.7|^8.0", + "pestphp/pest": "^1.22", + "phpunit/phpunit": "^9.5.24", + "spatie/pest-plugin-test-time": "^1.1" + }, + "type": "library", + "autoload": { + "psr-4": { + "Spatie\\LaravelPackageTools\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Freek Van der Herten", + "email": "freek@spatie.be", + "role": "Developer" + } + ], + "description": "Tools for creating Laravel packages", + "homepage": "https://github.com/spatie/laravel-package-tools", + "keywords": [ + "laravel-package-tools", + "spatie" + ], + "support": { + "issues": "https://github.com/spatie/laravel-package-tools/issues", + "source": "https://github.com/spatie/laravel-package-tools/tree/1.16.4" + }, + "funding": [ + { + "url": "https://github.com/spatie", + "type": "github" + } + ], + "time": "2024-03-20T07:29:11+00:00" + }, { "name": "symfony/clock", "version": "v7.0.5", @@ -6272,69 +6531,6 @@ }, "time": "2024-03-26T16:40:24+00:00" }, - { - "name": "laravel/sail", - "version": "v1.29.1", - "source": { - "type": "git", - "url": "https://github.com/laravel/sail.git", - "reference": "8be4a31150eab3b46af11a2e7b2c4632eefaad7e" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/laravel/sail/zipball/8be4a31150eab3b46af11a2e7b2c4632eefaad7e", - "reference": "8be4a31150eab3b46af11a2e7b2c4632eefaad7e", - "shasum": "" - }, - "require": { - "illuminate/console": "^9.52.16|^10.0|^11.0", - "illuminate/contracts": "^9.52.16|^10.0|^11.0", - "illuminate/support": "^9.52.16|^10.0|^11.0", - "php": "^8.0", - "symfony/console": "^6.0|^7.0", - "symfony/yaml": "^6.0|^7.0" - }, - "require-dev": { - "orchestra/testbench": "^7.0|^8.0|^9.0", - "phpstan/phpstan": "^1.10" - }, - "bin": [ - "bin/sail" - ], - "type": "library", - "extra": { - "laravel": { - "providers": [ - "Laravel\\Sail\\SailServiceProvider" - ] - } - }, - "autoload": { - "psr-4": { - "Laravel\\Sail\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Taylor Otwell", - "email": "taylor@laravel.com" - } - ], - "description": "Docker files for running a basic Laravel application.", - "keywords": [ - "docker", - "laravel" - ], - "support": { - "issues": "https://github.com/laravel/sail/issues", - "source": "https://github.com/laravel/sail" - }, - "time": "2024-03-20T20:09:31+00:00" - }, { "name": "mockery/mockery", "version": "1.6.11", @@ -8874,77 +9070,6 @@ ], "time": "2024-04-02T06:30:22+00:00" }, - { - "name": "symfony/yaml", - "version": "v7.0.3", - "source": { - "type": "git", - "url": "https://github.com/symfony/yaml.git", - "reference": "2d4fca631c00700597e9442a0b2451ce234513d3" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/yaml/zipball/2d4fca631c00700597e9442a0b2451ce234513d3", - "reference": "2d4fca631c00700597e9442a0b2451ce234513d3", - "shasum": "" - }, - "require": { - "php": ">=8.2", - "symfony/polyfill-ctype": "^1.8" - }, - "conflict": { - "symfony/console": "<6.4" - }, - "require-dev": { - "symfony/console": "^6.4|^7.0" - }, - "bin": [ - "Resources/bin/yaml-lint" - ], - "type": "library", - "autoload": { - "psr-4": { - "Symfony\\Component\\Yaml\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Loads and dumps YAML files", - "homepage": "https://symfony.com", - "support": { - "source": "https://github.com/symfony/yaml/tree/v7.0.3" - }, - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "time": "2024-01-23T15:02:46+00:00" - }, { "name": "ta-tikoma/phpunit-architecture-test", "version": "0.8.4", diff --git a/config/nativephp.php b/config/nativephp.php new file mode 100644 index 0000000..8e4e4ed --- /dev/null +++ b/config/nativephp.php @@ -0,0 +1,117 @@ + env('NATIVEPHP_APP_VERSION', '1.0.0'), + + /** + * The ID of your application. This should be a unique identifier + * usually in the form of a reverse domain name. + * For example: com.nativephp.app + */ + 'app_id' => env('NATIVEPHP_APP_ID'), + + /** + * If your application allows deep linking, you can specify the scheme + * to use here. This is the scheme that will be used to open your + * application from within other applications. + * For example: "nativephp" + * + * This would allow you to open your application using a URL like: + * nativephp://some/path + */ + 'deeplink_scheme' => env('NATIVEPHP_DEEPLINK_SCHEME'), + + /** + * The author of your application. + */ + 'author' => env('NATIVEPHP_APP_AUTHOR'), + + /** + * The default service provider for your application. This provider + * takes care of bootstrapping your application and configuring + * any global hotkeys, menus, windows, etc. + */ + 'provider' => \App\Providers\NativeAppServiceProvider::class, + + /** + * A list of environment keys that should be removed from the + * .env file when the application is bundled for production. + * You may use wildcards to match multiple keys. + */ + 'cleanup_env_keys' => [ + 'AWS_*', + 'GITHUB_*', + 'DO_SPACES_*', + '*_SECRET', + 'NATIVEPHP_UPDATER_PATH', + 'NATIVEPHP_APPLE_ID', + 'NATIVEPHP_APPLE_ID_PASS', + 'NATIVEPHP_APPLE_TEAM_ID', + ], + + /** + * A list of files and folders that should be removed from the + * final app before it is bundled for production. + * You may use glob / wildcard patterns here. + */ + 'cleanup_exclude_files' => [ + 'content', + 'storage/app/framework/{sessions,testing,cache}', + 'storage/logs/laravel.log', + ], + + /** + * The NativePHP updater configuration. + */ + 'updater' => [ + /** + * Whether or not the updater is enabled. Please note that the + * updater will only work when your application is bundled + * for production. + */ + 'enabled' => env('NATIVEPHP_UPDATER_ENABLED', true), + + /** + * The updater provider to use. + * Supported: "github", "s3", "spaces" + */ + 'default' => env('NATIVEPHP_UPDATER_PROVIDER', 'spaces'), + + 'providers' => [ + 'github' => [ + 'driver' => 'github', + 'repo' => env('GITHUB_REPO'), + 'owner' => env('GITHUB_OWNER'), + 'token' => env('GITHUB_TOKEN'), + 'vPrefixedTagName' => env('GITHUB_V_PREFIXED_TAG_NAME', true), + 'private' => env('GITHUB_PRIVATE', false), + 'channel' => env('GITHUB_CHANNEL', 'latest'), + 'releaseType' => env('GITHUB_RELEASE_TYPE', 'draft'), + ], + + 's3' => [ + 'driver' => 's3', + 'key' => env('AWS_ACCESS_KEY_ID'), + 'secret' => env('AWS_SECRET_ACCESS_KEY'), + 'region' => env('AWS_DEFAULT_REGION'), + 'bucket' => env('AWS_BUCKET'), + 'endpoint' => env('AWS_ENDPOINT'), + 'path' => env('NATIVEPHP_UPDATER_PATH', null), + ], + + 'spaces' => [ + 'driver' => 'spaces', + 'key' => env('DO_SPACES_KEY_ID'), + 'secret' => env('DO_SPACES_SECRET_ACCESS_KEY'), + 'name' => env('DO_SPACES_NAME'), + 'region' => env('DO_SPACES_REGION'), + 'path' => env('NATIVEPHP_UPDATER_PATH', null), + ], + ], + ], +]; From 97734b277ea166708c5e78ba8920c52fcaa20bca Mon Sep 17 00:00:00 2001 From: Willem Leuverink Date: Fri, 5 Apr 2024 16:59:47 +0200 Subject: [PATCH 02/48] boyscouting --- .env.example | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.env.example b/.env.example index 7b49625..a303681 100644 --- a/.env.example +++ b/.env.example @@ -1,9 +1,9 @@ -APP_NAME=Laravel +APP_NAME=Phost APP_ENV=local APP_KEY= APP_DEBUG=true APP_TIMEZONE=UTC -APP_URL=http://localhost +APP_URL=http://phost.test APP_LOCALE=en APP_FALLBACK_LOCALE=en From 1776e373b69cafc9ce0a62263aa234855979e4af Mon Sep 17 00:00:00 2001 From: Willem Leuverink Date: Fri, 5 Apr 2024 20:54:03 +0200 Subject: [PATCH 03/48] boyscouting --- resources/views/components/message/index.blade.php | 2 +- resources/views/components/message/tabs/preview.blade.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/views/components/message/index.blade.php b/resources/views/components/message/index.blade.php index e2e049d..1339216 100644 --- a/resources/views/components/message/index.blade.php +++ b/resources/views/components/message/index.blade.php @@ -80,7 +80,7 @@ class="flex flex-col w-full px-4 overflow-y-scroll bg-white" class="px-3 py-1 transition rounded-md cursor-default" x-bind:class="$tab.isSelected ? 'bg-neutral-100 text-neutral-500 shadow-inner': 'hover:bg-neutral-100 hover:text-neutral-500'" > - HTML + Preview + - + - + - + - + {{-- tab panels --}}
- - - - - + + + + +
diff --git a/resources/views/components/message/tabs/headers.blade.php b/resources/views/components/message/panel/headers.blade.php similarity index 100% rename from resources/views/components/message/tabs/headers.blade.php rename to resources/views/components/message/panel/headers.blade.php diff --git a/resources/views/components/message/panel.blade.php b/resources/views/components/message/panel/index.blade.php similarity index 100% rename from resources/views/components/message/panel.blade.php rename to resources/views/components/message/panel/index.blade.php diff --git a/resources/views/components/message/tabs/preview.blade.php b/resources/views/components/message/panel/preview.blade.php similarity index 100% rename from resources/views/components/message/tabs/preview.blade.php rename to resources/views/components/message/panel/preview.blade.php diff --git a/resources/views/components/message/tabs/raw.blade.php b/resources/views/components/message/panel/raw.blade.php similarity index 100% rename from resources/views/components/message/tabs/raw.blade.php rename to resources/views/components/message/panel/raw.blade.php diff --git a/resources/views/components/message/tabs/source.blade.php b/resources/views/components/message/panel/source.blade.php similarity index 100% rename from resources/views/components/message/tabs/source.blade.php rename to resources/views/components/message/panel/source.blade.php diff --git a/resources/views/components/message/tabs/text.blade.php b/resources/views/components/message/panel/text.blade.php similarity index 100% rename from resources/views/components/message/tabs/text.blade.php rename to resources/views/components/message/panel/text.blade.php diff --git a/resources/views/components/message/tab-button.blade.php b/resources/views/components/message/tab-button.blade.php new file mode 100644 index 0000000..de5bd80 --- /dev/null +++ b/resources/views/components/message/tab-button.blade.php @@ -0,0 +1,7 @@ + From fe6a7ff0081ddefd4e42d15ab130b0c288963e1f Mon Sep 17 00:00:00 2001 From: Willem Leuverink Date: Fri, 5 Apr 2024 23:20:23 +0200 Subject: [PATCH 05/48] run server via polling --- .../Commands/HandleIncomingMessages.php | 23 +++---------------- app/Livewire/Inbox.php | 20 +++++++++++++++- app/Services/Smtp/Server.php | 1 - .../views/components/message/index.blade.php | 1 - .../message/panel/preview.blade.php | 14 +++++------ resources/views/livewire/inbox.blade.php | 1 + 6 files changed, 30 insertions(+), 30 deletions(-) diff --git a/app/Console/Commands/HandleIncomingMessages.php b/app/Console/Commands/HandleIncomingMessages.php index 2411ffb..a4caaf0 100644 --- a/app/Console/Commands/HandleIncomingMessages.php +++ b/app/Console/Commands/HandleIncomingMessages.php @@ -4,7 +4,6 @@ use App\Models\Message; use App\Services\Smtp\Server; -use Exception; use Illuminate\Console\Command; class HandleIncomingMessages extends Command @@ -13,27 +12,11 @@ class HandleIncomingMessages extends Command protected $description = 'Starts SMTP server & handles incoming messages'; - protected Server $server; - - public function __construct() - { - parent::__construct(); - $this->server = Server::new(2525); - } - public function handle() { - try { - - $this->server - ->onMessageReceived(fn ($content) => Message::fromContent($content)) - ->serve(); - - } catch (Exception $e) { - - $this->server->stop(); - throw $e; - } + Server::new(2525) + ->onMessageReceived(fn ($content) => Message::fromContent($content)) + ->serve(); return Command::SUCCESS; } diff --git a/app/Livewire/Inbox.php b/app/Livewire/Inbox.php index dce2196..c2e5a1a 100644 --- a/app/Livewire/Inbox.php +++ b/app/Livewire/Inbox.php @@ -3,6 +3,7 @@ namespace App\Livewire; use App\Models\Message; +use App\Services\Smtp\Server; use Illuminate\Support\Collection; use Livewire\Attributes\Computed; use Livewire\Attributes\Title; @@ -31,6 +32,7 @@ public function selectMessage(int $id) $this->message?->markRead(); // Not pretty, but most reliable way to ensure properly sized iframe + // TODO: Hook into render with alpine & dispatch there (or even on the component?) $this->dispatch('reload-message-preview'); } @@ -52,6 +54,23 @@ public function toggleBookmark(int $id) $this->dispatch('reload-message-preview'); } + public function supervisor($previousTotal) + { + // Ensure sever is running (fail silently, could be started via multiple windows) + rescue( + fn () => Server::new(2525) + ->onMessageReceived(fn ($content) => Message::fromContent($content)) + ->serve() + ); + + // Skip render when no new messages + if ($this->inbox->count() !== $previousTotal) { + $this->dispatch('reload-message-preview'); + } else { + $this->skipRender(); + } + } + #[Computed()] public function message(): ?Message { @@ -60,7 +79,6 @@ public function message(): ?Message } return Message::find($this->selectedMessageId); - } #[Computed()] diff --git a/app/Services/Smtp/Server.php b/app/Services/Smtp/Server.php index 1ed97c4..7af76c2 100644 --- a/app/Services/Smtp/Server.php +++ b/app/Services/Smtp/Server.php @@ -71,7 +71,6 @@ public function serve(): void $connection->write(Reply::Okay->value." Ok!\r\n"); call_user_func($this->onMessageReceivedCallback, $content); - // $this->onMessageReceivedCallback($content); $transferring = false; return false; diff --git a/resources/views/components/message/index.blade.php b/resources/views/components/message/index.blade.php index da8c5dd..fa8467d 100644 --- a/resources/views/components/message/index.blade.php +++ b/resources/views/components/message/index.blade.php @@ -4,7 +4,6 @@ 'message' ]) - @php $parsed = $message->parsed(); @endphp diff --git a/resources/views/components/message/panel/preview.blade.php b/resources/views/components/message/panel/preview.blade.php index 1d60667..12ddd95 100644 --- a/resources/views/components/message/panel/preview.blade.php +++ b/resources/views/components/message/panel/preview.blade.php @@ -1,3 +1,5 @@ +@use('ZBateson\MailMimeParser\Header\HeaderConsts', 'Header') + @props([ 'message' ]) @@ -11,16 +13,14 @@ diff --git a/resources/views/components/message/panel/raw.blade.php b/resources/views/components/message/panel/raw.blade.php index 0f5b598..b0b8ac0 100644 --- a/resources/views/components/message/panel/raw.blade.php +++ b/resources/views/components/message/panel/raw.blade.php @@ -1,6 +1,4 @@ -@props([ - 'message' -]) +@props(['message']) diff --git a/resources/views/components/message/panel/source.blade.php b/resources/views/components/message/panel/source.blade.php index 5a25297..0518c09 100644 --- a/resources/views/components/message/panel/source.blade.php +++ b/resources/views/components/message/panel/source.blade.php @@ -1,6 +1,4 @@ -@props([ - 'message' -]) +@props(['message']) diff --git a/resources/views/components/message/panel/text.blade.php b/resources/views/components/message/panel/text.blade.php index a99a332..a946577 100644 --- a/resources/views/components/message/panel/text.blade.php +++ b/resources/views/components/message/panel/text.blade.php @@ -1,6 +1,4 @@ -@props([ - 'message' -]) +@props(['message']) diff --git a/resources/views/components/message/tab-button.blade.php b/resources/views/components/message/tab-button.blade.php index de5bd80..f54e06a 100644 --- a/resources/views/components/message/tab-button.blade.php +++ b/resources/views/components/message/tab-button.blade.php @@ -1,7 +1,8 @@ - diff --git a/resources/views/livewire/inbox.blade.php b/resources/views/livewire/inbox.blade.php index 9dba800..3864770 100644 --- a/resources/views/livewire/inbox.blade.php +++ b/resources/views/livewire/inbox.blade.php @@ -1,24 +1,24 @@ -
- -
+
-
    - @forelse($this->inbox as $message) - + @forelse ($this->inbox as $message)
  • - @endforelse
- - @if($this->message) - - - + @if ($this->message) + @else - -
- +
+
- @endif
diff --git a/routes/web.php b/routes/web.php index 33f6362..bd3fa95 100644 --- a/routes/web.php +++ b/routes/web.php @@ -3,4 +3,4 @@ use App\Livewire; use Illuminate\Support\Facades\Route; -Route::get('/{selectedMessageId?}', Livewire\Inbox::class)->name('inbox'); +Route::get('{selectedMessageId?}', Livewire\Inbox::class)->name('inbox'); From 3af926aaf74f81c1ed4bb5e03dec86833be10f6b Mon Sep 17 00:00:00 2001 From: Willem Leuverink Date: Fri, 12 Apr 2024 17:09:04 +0200 Subject: [PATCH 18/48] wip --- .github/workflows/codestyle.yml | 158 +++++++++++++++++--------------- 1 file changed, 85 insertions(+), 73 deletions(-) diff --git a/.github/workflows/codestyle.yml b/.github/workflows/codestyle.yml index d362e07..3c4f030 100644 --- a/.github/workflows/codestyle.yml +++ b/.github/workflows/codestyle.yml @@ -4,78 +4,90 @@ name: codestyle # Checkout Duster's documentation for a workaround on: - pull_request: - branches: [development, dev, acceptance, staging, main, master] + pull_request: + branches: [development, dev, acceptance, staging, main, master] jobs: - skip-duplicates: - continue-on-error: true # Uncomment once integration is finished - runs-on: ubuntu-latest - - # Map a step output to a job output - outputs: - should_skip: ${{ steps.skip_check.outputs.should_skip }} - - steps: - - id: skip_check - uses: fkirc/skip-duplicate-actions@v5 - with: - # All of these options are optional, so you can remove them if you are happy with the defaults - cancel_others: "true" - concurrent_skipping: "same_content" - skip_after_successful_duplicate: "true" - paths_ignore: '["**/README.md", "**/docs/**"]' - - duster-fix: - needs: skip-duplicates - if: needs.skip-duplicates.outputs.should_skip != 'true' - - runs-on: ubuntu-latest - - permissions: - contents: write - - steps: - - uses: actions/checkout@v3 - with: - ref: ${{ github.head_ref }} - - - name: "Duster Fix" - uses: tighten/duster-action@v2 - with: - args: fix - - - uses: stefanzweifel/git-auto-commit-action@v4 - id: auto_commit_action - with: - commit_message: Dusting - commit_user_name: GitHub Action - commit_user_email: actions@github.com - - - name: Ignore Duster commit in git blame - if: steps.auto_commit_action.outputs.changes_detected == 'true' - run: echo ${{ steps.auto_commit_action.outputs.commit_hash }} >> .git-blame-ignore-revs - - - uses: stefanzweifel/git-auto-commit-action@v4 - with: - commit_message: Ignore Dusting commit in git blame - commit_user_name: GitHub Action - commit_user_email: actions@github.com - - duster-lint: - needs: skip-duplicates - if: needs.skip-duplicates.outputs.should_skip != 'true' - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - with: - ref: ${{ github.head_ref }} - - - uses: php-actions/composer@v6 - - - name: "Duster Lint" - uses: tighten/duster-action@v2 - with: - args: lint + skip-duplicates: + continue-on-error: true # Uncomment once integration is finished + runs-on: ubuntu-latest + + # Map a step output to a job output + outputs: + should_skip: ${{ steps.skip_check.outputs.should_skip }} + + steps: + - id: skip_check + uses: fkirc/skip-duplicate-actions@v5 + with: + # All of these options are optional, so you can remove them if you are happy with the defaults + cancel_others: "true" + concurrent_skipping: "same_content" + skip_after_successful_duplicate: "true" + paths_ignore: '["**/README.md", "**/docs/**"]' + + duster-fix: + needs: skip-duplicates + if: needs.skip-duplicates.outputs.should_skip != 'true' + + runs-on: ubuntu-latest + + permissions: + contents: write + + steps: + - uses: actions/checkout@v3 + with: + ref: ${{ github.head_ref }} + + - uses: actions/setup-node@v4 + with: + node-version: 20 + cache: "npm" + - run: npm ci + + - name: "Duster Fix" + uses: tighten/duster-action@v2 + with: + args: fix + + - uses: stefanzweifel/git-auto-commit-action@v4 + id: auto_commit_action + with: + commit_message: Dusting + commit_user_name: GitHub Action + commit_user_email: actions@github.com + + - name: Ignore Duster commit in git blame + if: steps.auto_commit_action.outputs.changes_detected == 'true' + run: echo ${{ steps.auto_commit_action.outputs.commit_hash }} >> .git-blame-ignore-revs + + - uses: stefanzweifel/git-auto-commit-action@v4 + with: + commit_message: Ignore Dusting commit in git blame + commit_user_name: GitHub Action + commit_user_email: actions@github.com + + duster-lint: + needs: skip-duplicates + if: needs.skip-duplicates.outputs.should_skip != 'true' + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + with: + ref: ${{ github.head_ref }} + + - uses: actions/setup-node@v4 + with: + node-version: 20 + cache: "npm" + - run: npm ci + + - uses: php-actions/composer@v6 + + - name: "Duster Lint" + uses: tighten/duster-action@v2 + with: + args: lint From f166d67a76c9a8d74807b4ce13e2689f1ca68436 Mon Sep 17 00:00:00 2001 From: Willem Leuverink Date: Fri, 12 Apr 2024 17:10:45 +0200 Subject: [PATCH 19/48] fix ci --- .github/workflows/test.yml | 99 +++++++++++++++++++------------------- 1 file changed, 50 insertions(+), 49 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ec32302..29ec500 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,67 +1,68 @@ name: tests on: - pull_request: - branches: [development, dev, acceptance, staging, main, master] + pull_request: + branches: [development, dev, acceptance, staging, main, master] jobs: - skip-duplicates: - continue-on-error: true # Uncomment once integration is finished - runs-on: ubuntu-latest + skip-duplicates: + continue-on-error: true # Uncomment once integration is finished + runs-on: ubuntu-latest - # Map a step output to a job output - outputs: - should_skip: ${{ steps.skip_check.outputs.should_skip }} + # Map a step output to a job output + outputs: + should_skip: ${{ steps.skip_check.outputs.should_skip }} - steps: - - id: skip_check - uses: fkirc/skip-duplicate-actions@v5 - with: - # All of these options are optional, so you can remove them if you are happy with the defaults - cancel_others: "true" - concurrent_skipping: "same_content" - skip_after_successful_duplicate: "true" - paths_ignore: '["**/README.md", "**/docs/**"]' + steps: + - id: skip_check + uses: fkirc/skip-duplicate-actions@v5 + with: + # All of these options are optional, so you can remove them if you are happy with the defaults + cancel_others: "true" + concurrent_skipping: "same_content" + skip_after_successful_duplicate: "true" + paths_ignore: '["**/README.md", "**/docs/**"]' - laravel-tests: - needs: skip-duplicates - if: needs.skip-duplicates.outputs.should_skip != 'true' + laravel-tests: + needs: skip-duplicates + if: needs.skip-duplicates.outputs.should_skip != 'true' - runs-on: ubuntu-latest + runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 + steps: + - uses: actions/checkout@v3 - - uses: shivammathur/setup-php@v2 - with: - php-version: "8.2" + - uses: shivammathur/setup-php@v2 + with: + php-version: "8.2" + extensions: pcntl - - name: Cache Composer dependencies - uses: actions/cache@v3 - with: - path: /tmp/composer-cache - key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }} + - name: Cache Composer dependencies + uses: actions/cache@v3 + with: + path: /tmp/composer-cache + key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }} - - uses: php-actions/composer@v6 - with: - version: 2.x + - uses: php-actions/composer@v6 + with: + version: 2.x - - name: Copy .env - run: php -r "file_exists('.env') || copy('.env.example', '.env');" + - name: Copy .env + run: php -r "file_exists('.env') || copy('.env.example', '.env');" - - name: Generate key - run: php artisan key:generate + - name: Generate key + run: php artisan key:generate - - name: Directory Permissions - run: chmod -R 777 storage bootstrap/cache + - name: Directory Permissions + run: chmod -R 777 storage bootstrap/cache - - name: Create Database - run: | - mkdir -p database - touch database/database.sqlite + - name: Create Database + run: | + mkdir -p database + touch database/database.sqlite - - name: Execute tests - env: - DB_CONNECTION: sqlite - DB_DATABASE: database/database.sqlite - run: php artisan test --parallel + - name: Execute tests + env: + DB_CONNECTION: sqlite + DB_DATABASE: database/database.sqlite + run: php artisan test --parallel From 075f70876053cef6817f65d8895283f50b101bc1 Mon Sep 17 00:00:00 2001 From: Willem Leuverink Date: Fri, 12 Apr 2024 17:12:50 +0200 Subject: [PATCH 20/48] wip --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 29ec500..0c92057 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -34,7 +34,7 @@ jobs: - uses: shivammathur/setup-php@v2 with: - php-version: "8.2" + php-version: "8.1" extensions: pcntl - name: Cache Composer dependencies From 3099afca90c73ab26dde5d51a057e629546e703c Mon Sep 17 00:00:00 2001 From: Willem Leuverink Date: Fri, 12 Apr 2024 17:15:20 +0200 Subject: [PATCH 21/48] wip --- .github/workflows/test.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0c92057..e2ce2ee 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -32,10 +32,10 @@ jobs: steps: - uses: actions/checkout@v3 - - uses: shivammathur/setup-php@v2 - with: - php-version: "8.1" - extensions: pcntl + # - uses: shivammathur/setup-php@v2 + # with: + # php-version: "8.1" + # extensions: pcntl - name: Cache Composer dependencies uses: actions/cache@v3 @@ -45,6 +45,8 @@ jobs: - uses: php-actions/composer@v6 with: + php_version: "8.1" + php_extensions: pcntl version: 2.x - name: Copy .env From 8e7f5ed809bddac24c8c63ce0d1ac605ed6566ad Mon Sep 17 00:00:00 2001 From: Willem Leuverink Date: Fri, 12 Apr 2024 17:17:17 +0200 Subject: [PATCH 22/48] wip --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e2ce2ee..7fde159 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -45,7 +45,7 @@ jobs: - uses: php-actions/composer@v6 with: - php_version: "8.1" + php_version: "8.2" php_extensions: pcntl version: 2.x From b600c6d79d0b620aaa7cef7153e070de9f8d5066 Mon Sep 17 00:00:00 2001 From: Willem Leuverink Date: Fri, 12 Apr 2024 17:19:22 +0200 Subject: [PATCH 23/48] wip --- .github/workflows/test.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7fde159..31e0f9f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -32,10 +32,10 @@ jobs: steps: - uses: actions/checkout@v3 - # - uses: shivammathur/setup-php@v2 - # with: - # php-version: "8.1" - # extensions: pcntl + - uses: shivammathur/setup-php@v2 + with: + php-version: "8.2" + extensions: pcntl - name: Cache Composer dependencies uses: actions/cache@v3 From b9b595028803cc20ed3bf11ac59b2cd71e41f4f7 Mon Sep 17 00:00:00 2001 From: Willem Leuverink Date: Fri, 12 Apr 2024 17:19:27 +0200 Subject: [PATCH 24/48] wip --- .github/workflows/test.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 31e0f9f..5d5d4f2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -35,7 +35,6 @@ jobs: - uses: shivammathur/setup-php@v2 with: php-version: "8.2" - extensions: pcntl - name: Cache Composer dependencies uses: actions/cache@v3 From 93e32ccf7b43e20c5f02e344ccedfa95df370b15 Mon Sep 17 00:00:00 2001 From: Willem Leuverink Date: Fri, 12 Apr 2024 17:21:43 +0200 Subject: [PATCH 25/48] wip --- .github/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5d5d4f2..a269df3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -54,8 +54,8 @@ jobs: - name: Generate key run: php artisan key:generate - - name: Directory Permissions - run: chmod -R 777 storage bootstrap/cache + # - name: Directory Permissions + # run: chmod -R 777 storage bootstrap/cache - name: Create Database run: | From 777588ed34d3e894c3ce02c8b411bb3c8f2fdc01 Mon Sep 17 00:00:00 2001 From: Willem Leuverink Date: Tue, 16 Apr 2024 09:37:58 +0200 Subject: [PATCH 26/48] wip --- .github/workflows/codestyle.yml | 32 +++++++++++++++++++++++++------- .github/workflows/test.yml | 2 +- 2 files changed, 26 insertions(+), 8 deletions(-) diff --git a/.github/workflows/codestyle.yml b/.github/workflows/codestyle.yml index 3c4f030..eb62fdb 100644 --- a/.github/workflows/codestyle.yml +++ b/.github/workflows/codestyle.yml @@ -46,10 +46,20 @@ jobs: cache: "npm" - run: npm ci - - name: "Duster Fix" - uses: tighten/duster-action@v2 + - name: Cache Composer dependencies + uses: actions/cache@v3 with: - args: fix + path: /tmp/composer-cache + key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }} + + - uses: php-actions/composer@v6 + with: + php_version: "8.2" + php_extensions: pcntl + version: 2.x + + - name: Run fixers + run: composer fix - uses: stefanzweifel/git-auto-commit-action@v4 id: auto_commit_action @@ -85,9 +95,17 @@ jobs: cache: "npm" - run: npm ci - - uses: php-actions/composer@v6 + - name: Cache Composer dependencies + uses: actions/cache@v3 + with: + path: /tmp/composer-cache + key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }} - - name: "Duster Lint" - uses: tighten/duster-action@v2 + - uses: php-actions/composer@v6 with: - args: lint + php_version: "8.2" + php_extensions: pcntl + version: 2.x + + - name: Run linters & static analysis + run: composer lint diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a269df3..c6f6bbd 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -66,4 +66,4 @@ jobs: env: DB_CONNECTION: sqlite DB_DATABASE: database/database.sqlite - run: php artisan test --parallel + run: php artisan test From 022d92c18a4a5a38658ee14dc4af958b26e597cf Mon Sep 17 00:00:00 2001 From: gwleuverink Date: Tue, 16 Apr 2024 07:39:18 +0000 Subject: [PATCH 27/48] Dusting --- DOCKER_ENV | 132 ++++++++++++++++ Dockerfile-php-build | 4 + docker_tag | 1 + output.log | 369 +++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 506 insertions(+) create mode 100644 DOCKER_ENV create mode 100644 Dockerfile-php-build create mode 100644 docker_tag create mode 100644 output.log diff --git a/DOCKER_ENV b/DOCKER_ENV new file mode 100644 index 0000000..80cca2b --- /dev/null +++ b/DOCKER_ENV @@ -0,0 +1,132 @@ +SELENIUM_JAR_PATH=/usr/share/java/selenium-server.jar +CONDA=/usr/share/miniconda +GITHUB_WORKSPACE=/home/runner/work/phost/phost +JAVA_HOME_11_X64=/usr/lib/jvm/temurin-11-jdk-amd64 +GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_f4da1ecb-c8f8-4c25-994f-7d927acd2b4d +GITHUB_ACTION=__php-actions_composer +JAVA_HOME=/usr/lib/jvm/temurin-11-jdk-amd64 +ACTION_COMMAND=install +GITHUB_RUN_NUMBER=9 +RUNNER_NAME=GitHub Actions 11 +GRADLE_HOME=/usr/share/gradle-8.7 +ACTION_INTERACTION=no +GITHUB_REPOSITORY_OWNER_ID=17123491 +ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE=/opt/actionarchivecache +XDG_CONFIG_HOME=/home/runner/.config +DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1 +ANT_HOME=/usr/share/ant +JAVA_HOME_8_X64=/usr/lib/jvm/temurin-8-jdk-amd64 +GITHUB_TRIGGERING_ACTOR=gwleuverink +GITHUB_REF_TYPE=branch +ACTION_PHP_EXTENSIONS=pcntl +HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS=3650 +ANDROID_NDK=/usr/local/lib/android/sdk/ndk/25.2.9519653 +BOOTSTRAP_HASKELL_NONINTERACTIVE=1 +PIPX_BIN_DIR=/opt/pipx_bin +ACTION_ARGS= +STATS_TRP=true +ACTION_SSH_PORT= +GOROOT_1_20_X64=/opt/hostedtoolcache/go/1.20.14/x64 +DEPLOYMENT_BASEPATH=/opt/runner +GITHUB_REPOSITORY_ID=782565156 +GITHUB_ACTIONS=true +STATS_VMD=true +ACTION_PHP_VERSION=8.2 +ANDROID_NDK_LATEST_HOME=/usr/local/lib/android/sdk/ndk/26.2.11394342 +SYSTEMD_EXEC_PID=470 +GITHUB_SHA=abbcbf7e9e74c82c26157df0c2ad42a770c47588 +GITHUB_WORKFLOW_REF=gwleuverink/phost/.github/workflows/codestyle.yml@refs/pull/1/merge +POWERSHELL_DISTRIBUTION_CHANNEL=GitHub-Actions-ubuntu22 +RUNNER_ENVIRONMENT=github-hosted +STATS_EXTP=https://provjobdsettingscdn.blob.core.windows.net/settings/provjobdsettings-0.5.172+1/provjobd.data +DOTNET_MULTILEVEL_LOOKUP=0 +STATS_TIS=mining +GITHUB_REF=refs/pull/1/merge +RUNNER_OS=Linux +ACTION_QUIET=no +GITHUB_REF_PROTECTED=false +GITHUB_API_URL=https://api.github.com +LANG=C.UTF-8 +RUNNER_TRACKING_ID=github_aadde152-8df2-4683-b07d-3f780570fc25 +ACTION_MEMORY_LIMIT= +RUNNER_ARCH=X64 +GOROOT_1_21_X64=/opt/hostedtoolcache/go/1.21.9/x64 +RUNNER_TEMP=/home/runner/work/_temp +GITHUB_STATE=/home/runner/work/_temp/_runner_file_commands/save_state_f4da1ecb-c8f8-4c25-994f-7d927acd2b4d +EDGEWEBDRIVER=/usr/local/share/edge_driver +JAVA_HOME_21_X64=/usr/lib/jvm/temurin-21-jdk-amd64 +GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_f4da1ecb-c8f8-4c25-994f-7d927acd2b4d +INVOCATION_ID=b57b39a1127b46a882a62a373a7c0b9e +GITHUB_EVENT_PATH=/home/runner/work/_temp/_github_workflow/event.json +STATS_D=false +GITHUB_EVENT_NAME=pull_request +GITHUB_RUN_ID=8701757744 +JAVA_HOME_17_X64=/usr/lib/jvm/temurin-17-jdk-amd64 +ANDROID_NDK_HOME=/usr/local/lib/android/sdk/ndk/25.2.9519653 +GITHUB_STEP_SUMMARY=/home/runner/work/_temp/_runner_file_commands/step_summary_f4da1ecb-c8f8-4c25-994f-7d927acd2b4d +HOMEBREW_NO_AUTO_UPDATE=1 +GITHUB_ACTOR=gwleuverink +ACTION_DEV=yes +NVM_DIR=/home/runner/.nvm +SGX_AESM_ADDR=1 +GITHUB_RUN_ATTEMPT=1 +STATS_RDCL=true +ANDROID_HOME=/usr/local/lib/android/sdk +GITHUB_GRAPHQL_URL=https://api.github.com/graphql +RUNNER_USER=runner +ACCEPT_EULA=Y +STATS_UE=true +USER=runner +ACTION_TOKEN=ghs_I7cnc80mDgI9BCFa1t9UhdzqCxJhlS41bpVj +GITHUB_ACTION_PATH=/home/runner/work/_actions/php-actions/composer/v6 +GITHUB_SERVER_URL=https://github.com +STATS_V3PS=true +PIPX_HOME=/opt/pipx +GECKOWEBDRIVER=/usr/local/share/gecko_driver +STATS_EXT=true +CHROMEWEBDRIVER=/usr/local/share/chromedriver-linux64 +ACTION_SSH_DOMAIN= +ANDROID_SDK_ROOT=/usr/local/lib/android/sdk +VCPKG_INSTALLATION_ROOT=/usr/local/share/vcpkg +GITHUB_ACTOR_ID=17123491 +ACTION_VERSION=2.x +RUNNER_TOOL_CACHE=/opt/hostedtoolcache +ImageVersion=20240407.1.0 +DOTNET_NOLOGO=1 +ACTION_ONLY_ARGS= +GITHUB_WORKFLOW_SHA=abbcbf7e9e74c82c26157df0c2ad42a770c47588 +GITHUB_REF_NAME=1/merge +GITHUB_JOB=duster-fix +COMPOSER_CACHE_DIR=/tmp/composer-cache +XDG_RUNTIME_DIR=/run/user/1001 +AZURE_EXTENSION_DIR=/opt/az/azcliextensions +PERFLOG_LOCATION_SETTING=RUNNER_PERFLOG +STATS_VMFE=true +GITHUB_REPOSITORY=gwleuverink/phost +GOROOT_1_22_X64=/opt/hostedtoolcache/go/1.22.2/x64 +ANDROID_NDK_ROOT=/usr/local/lib/android/sdk/ndk/25.2.9519653 +CHROME_BIN=/usr/bin/google-chrome +ACTION_CONTAINER_WORKDIR= +GITHUB_RETENTION_DAYS=90 +JOURNAL_STREAM=8:18652 +RUNNER_WORKSPACE=/home/runner/work/phost +LEIN_HOME=/usr/local/lib/lein +LEIN_JAR=/usr/local/lib/lein/self-installs/leiningen-2.11.2-standalone.jar +GITHUB_ACTION_REPOSITORY= +RUNNER_PERFLOG=/home/runner/perflog +GITHUB_BASE_REF=main +GHCUP_INSTALL_BASE_PREFIX=/usr/local +CI=true +SWIFT_PATH=/usr/share/swift/usr/bin +ImageOS=ubuntu22 +STATS_D_D=false +GITHUB_REPOSITORY_OWNER=gwleuverink +GITHUB_HEAD_REF=mvp/working +GITHUB_ACTION_REF= +GITHUB_WORKFLOW=codestyle +DEBIAN_FRONTEND=noninteractive +GITHUB_OUTPUT=/home/runner/work/_temp/_runner_file_commands/set_output_f4da1ecb-c8f8-4c25-994f-7d927acd2b4d +AGENT_TOOLSDIRECTORY=/opt/hostedtoolcache +ACTION_WORKING_DIR= +ACTION_PROGRESS=no +_=/usr/bin/env diff --git a/Dockerfile-php-build b/Dockerfile-php-build new file mode 100644 index 0000000..fe3bcf7 --- /dev/null +++ b/Dockerfile-php-build @@ -0,0 +1,4 @@ +FROM php:8.2-cli-alpine +RUN apk add --update --no-cache bash coreutils git make openssh patch unzip zip +ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ +RUN chmod +x /usr/local/bin/install-php-extensions && sync && install-php-extensions pcntl diff --git a/docker_tag b/docker_tag new file mode 100644 index 0000000..e8aadfd --- /dev/null +++ b/docker_tag @@ -0,0 +1 @@ +docker.pkg.github.com/gwleuverink/phost/php-actions_composer_phost:php-8.2-pcntl-build2.1.0 diff --git a/output.log b/output.log new file mode 100644 index 0000000..bee685c --- /dev/null +++ b/output.log @@ -0,0 +1,369 @@ +Running php-build composer +WARNING! Your password will be stored unencrypted in /home/runner/.docker/config.json. +Configure a credential helper to remove this warning. See +https://docs.docker.com/engine/reference/commandline/login/#credentials-store + +Login Succeeded +Pulling docker.pkg.github.com/gwleuverink/phost/php-actions_composer_phost:php-8.2-pcntl-build2.1.0 +Error response from daemon: manifest unknown +Dockerfile: +FROM php:8.2-cli-alpine +RUN apk add --update --no-cache bash coreutils git make openssh patch unzip zip +ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ +RUN chmod +x /usr/local/bin/install-php-extensions && sync && install-php-extensions pcntl +#0 building with "default" instance using docker driver + +#1 [internal] load .dockerignore +#1 transferring context: 2B done +#1 DONE 0.0s + +#2 [internal] load build definition from Dockerfile-php-build +#2 transferring dockerfile: 370B done +#2 DONE 0.0s + +#3 [auth] library/php:pull token for registry-1.docker.io +#3 DONE 0.0s + +#4 [internal] load metadata for docker.io/library/php:8.2-cli-alpine +#4 DONE 0.3s + +#5 [1/4] FROM docker.io/library/php:8.2-cli-alpine@sha256:0732d9969e6c2994684aac53051dd115799ce20a92c4db8f12b7013b7c0caeff +#5 DONE 0.0s + +#6 importing cache manifest from docker.pkg.github.com/gwleuverink/phost/php-actions_composer_phost:php-8.2-pcntl-build2.1.0 +#6 ERROR: failed to configure registry cache importer: pulling from host docker.pkg.github.com failed with status code [manifests php-8.2-pcntl-build2.1.0]: 401 Unauthorized + +#7 https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions +#7 DONE 0.2s + +#5 [1/4] FROM docker.io/library/php:8.2-cli-alpine@sha256:0732d9969e6c2994684aac53051dd115799ce20a92c4db8f12b7013b7c0caeff +#5 resolve docker.io/library/php:8.2-cli-alpine@sha256:0732d9969e6c2994684aac53051dd115799ce20a92c4db8f12b7013b7c0caeff done +#5 sha256:d3a73aae1c86e8e06844a0d6ff516b8d12cc95d745da7005aea6ff3ec71c90ef 1.26kB / 1.26kB 0.0s done +#5 sha256:0150bd92669e20735014cc4cdd3025dcc133ddf84e3c341b7e4845924574ebd5 4.19MB / 12.11MB 0.1s +#5 sha256:6839461719bd9ee5b0e8e2d9a6043536870c9b91e6a3d3b32ec54ac85a90b363 0B / 19.44MB 0.1s +#5 sha256:0732d9969e6c2994684aac53051dd115799ce20a92c4db8f12b7013b7c0caeff 1.65kB / 1.65kB done +#5 sha256:006d830451b3b6129c86e259d539436840feebddb37f6a481da63b0ac3a6319b 2.20kB / 2.20kB done +#5 sha256:4b99432ace8a7bcff6a457c1ea616c20b241e4012ebc18ff9b4b9a7ca571de2d 0B / 2.76MB 0.1s +#5 sha256:9294d9185d898643d89218d8a670313cd2bb59107bf32cb6ac92e7f46839bbc8 269B / 269B 0.0s done +#5 sha256:036a86a4ae3854aafbc2f0d72aabcbef83490743d20012002547de8270618662 499B / 499B 0.1s done +#5 sha256:0150bd92669e20735014cc4cdd3025dcc133ddf84e3c341b7e4845924574ebd5 12.11MB / 12.11MB 0.2s done +#5 sha256:6839461719bd9ee5b0e8e2d9a6043536870c9b91e6a3d3b32ec54ac85a90b363 11.53MB / 19.44MB 0.2s +#5 sha256:9dc672684f7ec018374e8fce364bd505e41dba27bbb9b013f2a14d32e75c4f98 9.06kB / 9.06kB done +#5 sha256:08d0ffd2e20b566cd1d34a2f8d3cca45bc046ab267fae0edfac814a8338fdff9 0B / 2.45kB 0.2s +#5 extracting sha256:4b99432ace8a7bcff6a457c1ea616c20b241e4012ebc18ff9b4b9a7ca571de2d +#5 sha256:6839461719bd9ee5b0e8e2d9a6043536870c9b91e6a3d3b32ec54ac85a90b363 19.44MB / 19.44MB 0.3s done +#5 sha256:4b99432ace8a7bcff6a457c1ea616c20b241e4012ebc18ff9b4b9a7ca571de2d 2.76MB / 2.76MB 0.3s done +#5 sha256:08d0ffd2e20b566cd1d34a2f8d3cca45bc046ab267fae0edfac814a8338fdff9 2.45kB / 2.45kB 0.2s done +#5 sha256:ceebff25163f713105943e5d24c76c606bfa563e2389eb7e137fd1ac69dd32b0 19.30kB / 19.30kB 0.3s done +#5 extracting sha256:4b99432ace8a7bcff6a457c1ea616c20b241e4012ebc18ff9b4b9a7ca571de2d 0.1s done +#5 extracting sha256:d3a73aae1c86e8e06844a0d6ff516b8d12cc95d745da7005aea6ff3ec71c90ef done +#5 extracting sha256:9294d9185d898643d89218d8a670313cd2bb59107bf32cb6ac92e7f46839bbc8 +#5 extracting sha256:9294d9185d898643d89218d8a670313cd2bb59107bf32cb6ac92e7f46839bbc8 done +#5 extracting sha256:0150bd92669e20735014cc4cdd3025dcc133ddf84e3c341b7e4845924574ebd5 0.1s +#5 extracting sha256:0150bd92669e20735014cc4cdd3025dcc133ddf84e3c341b7e4845924574ebd5 0.1s done +#5 extracting sha256:036a86a4ae3854aafbc2f0d72aabcbef83490743d20012002547de8270618662 +#5 extracting sha256:036a86a4ae3854aafbc2f0d72aabcbef83490743d20012002547de8270618662 done +#5 extracting sha256:6839461719bd9ee5b0e8e2d9a6043536870c9b91e6a3d3b32ec54ac85a90b363 0.1s +#5 extracting sha256:6839461719bd9ee5b0e8e2d9a6043536870c9b91e6a3d3b32ec54ac85a90b363 0.7s done +#5 extracting sha256:08d0ffd2e20b566cd1d34a2f8d3cca45bc046ab267fae0edfac814a8338fdff9 +#5 extracting sha256:08d0ffd2e20b566cd1d34a2f8d3cca45bc046ab267fae0edfac814a8338fdff9 done +#5 extracting sha256:ceebff25163f713105943e5d24c76c606bfa563e2389eb7e137fd1ac69dd32b0 done +#5 DONE 2.1s + +#8 [2/4] RUN apk add --update --no-cache bash coreutils git make openssh patch unzip zip +#8 0.200 fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/main/x86_64/APKINDEX.tar.gz +#8 0.284 fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/community/x86_64/APKINDEX.tar.gz +#8 0.580 (1/23) Installing bash (5.2.21-r0) +#8 0.595 Executing bash-5.2.21-r0.post-install +#8 0.598 (2/23) Installing coreutils-env (9.4-r2) +#8 0.601 (3/23) Installing coreutils-fmt (9.4-r2) +#8 0.603 (4/23) Installing coreutils-sha512sum (9.4-r2) +#8 0.606 (5/23) Installing libattr (2.5.1-r5) +#8 0.608 (6/23) Installing skalibs (2.14.0.1-r0) +#8 0.611 (7/23) Installing utmps-libs (0.1.2.2-r0) +#8 0.612 (8/23) Installing coreutils (9.4-r2) +#8 0.631 (9/23) Installing libexpat (2.6.2-r0) +#8 0.634 (10/23) Installing pcre2 (10.42-r2) +#8 0.641 (11/23) Installing git (2.43.0-r0) +#8 0.701 (12/23) Installing make (4.4.1-r2) +#8 0.705 (13/23) Installing openssh-keygen (9.6_p1-r0) +#8 0.712 (14/23) Installing libedit (20230828.3.1-r3) +#8 0.715 (15/23) Installing openssh-client-common (9.6_p1-r0) +#8 0.733 (16/23) Installing openssh-client-default (9.6_p1-r0) +#8 0.742 (17/23) Installing openssh-sftp-server (9.6_p1-r0) +#8 0.745 (18/23) Installing openssh-server-common (9.6_p1-r0) +#8 0.747 (19/23) Installing openssh-server (9.6_p1-r0) +#8 0.756 (20/23) Installing openssh (9.6_p1-r0) +#8 0.762 (21/23) Installing patch (2.7.6-r10) +#8 0.765 (22/23) Installing unzip (6.0-r14) +#8 0.771 (23/23) Installing zip (3.0-r12) +#8 0.777 Executing busybox-1.36.1-r15.trigger +#8 0.785 OK: 35 MiB in 61 packages +#8 DONE 0.9s + +#9 [3/4] ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ +#9 DONE 0.0s + +#10 [4/4] RUN chmod +x /usr/local/bin/install-php-extensions && sync && install-php-extensions pcntl +#10 0.255 install-php-extensions v.2.2.9 +#10 0.255 #StandWithUkraine +#10 2.679 Updating channel "pecl.php.net" +#10 2.733 Channel "pecl.php.net" is up to date +#10 2.742 fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/main/x86_64/APKINDEX.tar.gz +#10 2.824 fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/community/x86_64/APKINDEX.tar.gz +#10 3.117 v3.19.1-403-ge4b3b937776 [https://dl-cdn.alpinelinux.org/alpine/v3.19/main] +#10 3.117 v3.19.1-409-g31d738535a9 [https://dl-cdn.alpinelinux.org/alpine/v3.19/community] +#10 3.117 OK: 22992 distinct packages available +#10 5.633 ### INSTALLING REQUIRED PACKAGES ### +#10 5.633 # Packages to be kept after installation: +#10 5.634 # Packages to be used only for installation: m4 libbz2 perl autoconf libmd dpkg pkgconf dpkg-dev libmagic file libstdc++ libstdc++-dev jansson zstd-libs binutils libgomp libatomic gmp isl26 mpfr4 mpc1 gcc musl-dev libc-dev g++ perl-error perl-git git-perl re2c +#10 5.937 (1/29) Installing m4 (1.4.19-r3) +#10 5.977 (2/29) Installing libbz2 (1.0.8-r6) +#10 5.980 (3/29) Installing perl (5.38.2-r0) +#10 6.282 (4/29) Installing autoconf (2.71-r2) +#10 6.302 (5/29) Installing jansson (2.14-r4) +#10 6.304 (6/29) Installing libstdc++ (13.2.1_git20231014-r0) +#10 6.321 (7/29) Installing zstd-libs (1.5.5-r8) +#10 6.329 (8/29) Installing binutils (2.41-r0) +#10 6.397 (9/29) Installing libmd (1.1.0-r0) +#10 6.400 (10/29) Installing dpkg (1.22.1-r0) +#10 6.414 (11/29) Installing pkgconf (2.1.0-r0) +#10 6.418 (12/29) Installing dpkg-dev (1.22.1-r0) +#10 6.447 (13/29) Installing libmagic (5.45-r1) +#10 6.472 (14/29) Installing file (5.45-r1) +#10 6.475 (15/29) Installing libstdc++-dev (13.2.1_git20231014-r0) +#10 6.635 (16/29) Installing libgomp (13.2.1_git20231014-r0) +#10 6.641 (17/29) Installing libatomic (13.2.1_git20231014-r0) +#10 6.644 (18/29) Installing gmp (6.3.0-r0) +#10 6.651 (19/29) Installing isl26 (0.26-r1) +#10 6.667 (20/29) Installing mpfr4 (4.2.1-r0) +#10 6.676 (21/29) Installing mpc1 (1.3.1-r1) +#10 6.679 (22/29) Installing gcc (13.2.1_git20231014-r0) +#10 7.415 (23/29) Installing musl-dev (1.2.4_git20230717-r4) +#10 7.481 (24/29) Installing libc-dev (0.7.2-r5) +#10 7.483 (25/29) Installing g++ (13.2.1_git20231014-r0) +#10 7.703 (26/29) Installing perl-error (0.17029-r2) +#10 7.708 (27/29) Installing perl-git (2.43.0-r0) +#10 7.712 (28/29) Installing git-perl (2.43.0-r0) +#10 7.715 (29/29) Installing re2c (3.1-r0) +#10 7.733 Executing busybox-1.36.1-r15.trigger +#10 7.740 OK: 298 MiB in 90 packages +#10 8.191 ### INSTALLING BUNDLED MODULE pcntl ### +#10 8.233 fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/main/x86_64/APKINDEX.tar.gz +#10 8.311 fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/community/x86_64/APKINDEX.tar.gz +#10 8.601 (1/1) Installing .phpize-deps (20240416.073847) +#10 8.605 OK: 298 MiB in 91 packages +#10 8.710 Configuring for: +#10 8.710 PHP Api Version: 20220829 +#10 8.710 Zend Module Api No: 20220829 +#10 8.710 Zend Extension Api No: 420220829 +#10 9.649 checking for grep that handles long lines and -e... /bin/grep +#10 9.719 checking for egrep... /bin/grep -E +#10 9.720 checking for a sed that does not truncate output... /bin/sed +#10 9.746 checking for pkg-config... /usr/bin/pkg-config +#10 9.747 checking pkg-config is at least version 0.9.0... yes +#10 9.748 checking for cc... cc +#10 9.775 checking whether the C compiler works... yes +#10 9.811 checking for C compiler default output file name... a.out +#10 9.813 checking for suffix of executables... +#10 9.849 checking whether we are cross compiling... no +#10 9.887 checking for suffix of object files... o +#10 9.915 checking whether the compiler supports GNU C... yes +#10 9.941 checking whether cc accepts -g... yes +#10 9.968 checking for cc option to enable C11 features... none needed +#10 10.04 checking how to run the C preprocessor... cc -E +#10 10.10 checking for icc... no +#10 10.11 checking for suncc... no +#10 10.13 checking for system library directory... lib +#10 10.13 checking if compiler supports -Wl,-rpath,... yes +#10 10.17 checking build system type... x86_64-pc-linux-musl +#10 10.17 checking host system type... x86_64-pc-linux-musl +#10 10.17 checking target system type... x86_64-pc-linux-musl +#10 10.21 checking for PHP prefix... /usr/local +#10 10.21 checking for PHP includes... -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib +#10 10.21 checking for PHP extension directory... /usr/local/lib/php/extensions/no-debug-non-zts-20220829 +#10 10.21 checking for PHP installed headers prefix... /usr/local/include/php +#10 10.21 checking if debug is enabled... no +#10 10.23 checking if zts is enabled... no +#10 10.24 checking for gawk... no +#10 10.25 checking for nawk... no +#10 10.25 checking for awk... awk +#10 10.25 checking if awk is broken... no +#10 10.25 checking whether to enable pcntl support... yes, shared +#10 10.25 checking for fork... yes +#10 10.29 checking for waitpid... yes +#10 10.34 checking for sigaction... yes +#10 10.39 checking for getpriority... yes +#10 10.43 checking for setpriority... yes +#10 10.48 checking for wait3... yes +#10 10.52 checking for wait4... yes +#10 10.57 checking for sigwaitinfo... yes +#10 10.61 checking for sigtimedwait... yes +#10 10.65 checking for unshare... yes +#10 10.69 checking for rfork... no +#10 10.73 checking for forkx... no +#10 10.77 checking for siginfo_t... yes +#10 10.80 checking for a sed that does not truncate output... /bin/sed +#10 10.81 checking for ld used by cc... /usr/x86_64-alpine-linux-musl/bin/ld +#10 10.82 checking if the linker (/usr/x86_64-alpine-linux-musl/bin/ld) is GNU ld... yes +#10 10.82 checking for /usr/x86_64-alpine-linux-musl/bin/ld option to reload object files... -r +#10 10.82 checking for BSD-compatible nm... /usr/bin/nm -B +#10 10.82 checking whether ln -s works... yes +#10 10.82 checking how to recognize dependent libraries... pass_all +#10 10.84 checking for stdio.h... yes +#10 10.87 checking for stdlib.h... yes +#10 10.91 checking for string.h... yes +#10 10.94 checking for inttypes.h... yes +#10 10.97 checking for stdint.h... yes +#10 11.00 checking for strings.h... yes +#10 11.04 checking for sys/stat.h... yes +#10 11.07 checking for sys/types.h... yes +#10 11.10 checking for unistd.h... yes +#10 11.15 checking for dlfcn.h... yes +#10 11.19 checking the maximum length of command line arguments... 98304 +#10 11.19 checking command to parse /usr/bin/nm -B output from cc object... ok +#10 11.26 checking for objdir... .libs +#10 11.26 checking for ar... ar +#10 11.26 checking for ranlib... ranlib +#10 11.26 checking for strip... strip +#10 11.32 checking if cc supports -fno-rtti -fno-exceptions... no +#10 11.34 checking for cc option to produce PIC... -fPIC +#10 11.34 checking if cc PIC flag -fPIC works... yes +#10 11.36 checking if cc static flag -static works... yes +#10 11.39 checking if cc supports -c -o file.o... yes +#10 11.42 checking whether the cc linker (/usr/x86_64-alpine-linux-musl/bin/ld -m elf_x86_64) supports shared libraries... yes +#10 11.44 checking whether -lc should be explicitly linked in... no +#10 11.46 checking dynamic linker characteristics... GNU/Linux ld.so +#10 11.47 checking how to hardcode library paths into programs... immediate +#10 11.47 checking whether stripping libraries is possible... yes +#10 11.47 checking if libtool supports shared libraries... yes +#10 11.47 checking whether to build shared libraries... yes +#10 11.47 checking whether to build static libraries... no +#10 11.55 +#10 11.55 creating libtool +#10 11.61 appending configuration tag "CXX" to libtool +#10 11.67 configure: patching config.h.in +#10 11.67 configure: creating ./config.status +#10 11.73 config.status: creating config.h +#10 11.77 /bin/sh /usr/src/php/ext/pcntl/libtool --tag=CC --mode=compile cc -I. -I/usr/src/php/ext/pcntl -I/usr/src/php/ext/pcntl/include -I/usr/src/php/ext/pcntl/main -I/usr/src/php/ext/pcntl -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H -fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DHAVE_STRUCT_SIGINFO_T -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -DZEND_COMPILE_DL_EXT=1 -c /usr/src/php/ext/pcntl/pcntl.c -o pcntl.lo -MMD -MF pcntl.dep -MT pcntl.lo +#10 11.77 /bin/sh /usr/src/php/ext/pcntl/libtool --tag=CC --mode=compile cc -I. -I/usr/src/php/ext/pcntl -I/usr/src/php/ext/pcntl/include -I/usr/src/php/ext/pcntl/main -I/usr/src/php/ext/pcntl -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H -fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DHAVE_STRUCT_SIGINFO_T -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -DZEND_COMPILE_DL_EXT=1 -c /usr/src/php/ext/pcntl/php_signal.c -o php_signal.lo -MMD -MF php_signal.dep -MT php_signal.lo +#10 11.86 mkdir .libs +#10 11.86 mkdir .libs +#10 11.86 mkdir: cannot create directory ‘.libs’: File exists +#10 11.86 cc -I. -I/usr/src/php/ext/pcntl -I/usr/src/php/ext/pcntl/include -I/usr/src/php/ext/pcntl/main -I/usr/src/php/ext/pcntl -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H -fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DHAVE_STRUCT_SIGINFO_T -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -DZEND_COMPILE_DL_EXT=1 -c /usr/src/php/ext/pcntl/pcntl.c -MMD -MF pcntl.dep -MT pcntl.lo -fPIC -DPIC -o .libs/pcntl.o +#10 11.86 cc -I. -I/usr/src/php/ext/pcntl -I/usr/src/php/ext/pcntl/include -I/usr/src/php/ext/pcntl/main -I/usr/src/php/ext/pcntl -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H -fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DHAVE_STRUCT_SIGINFO_T -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -DZEND_COMPILE_DL_EXT=1 -c /usr/src/php/ext/pcntl/php_signal.c -MMD -MF php_signal.dep -MT php_signal.lo -fPIC -DPIC -o .libs/php_signal.o +#10 12.65 /bin/sh /usr/src/php/ext/pcntl/libtool --tag=CC --mode=link cc -shared -I/usr/src/php/ext/pcntl/include -I/usr/src/php/ext/pcntl/main -I/usr/src/php/ext/pcntl -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H -fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -Wl,-O1 -pie -o pcntl.la -export-dynamic -avoid-version -prefer-pic -module -rpath /usr/src/php/ext/pcntl/modules pcntl.lo php_signal.lo +#10 12.70 cc -shared .libs/pcntl.o .libs/php_signal.o -Wl,-O1 -Wl,-soname -Wl,pcntl.so -o .libs/pcntl.so +#10 12.72 creating pcntl.la +#10 12.72 (cd .libs && rm -f pcntl.la && ln -s ../pcntl.la pcntl.la) +#10 12.73 /bin/sh /usr/src/php/ext/pcntl/libtool --tag=CC --mode=install cp ./pcntl.la /usr/src/php/ext/pcntl/modules +#10 12.74 cp ./.libs/pcntl.so /usr/src/php/ext/pcntl/modules/pcntl.so +#10 12.75 cp ./.libs/pcntl.lai /usr/src/php/ext/pcntl/modules/pcntl.la +#10 12.76 PATH="$PATH:/sbin" ldconfig -n /usr/src/php/ext/pcntl/modules +#10 12.79 ---------------------------------------------------------------------- +#10 12.79 Libraries have been installed in: +#10 12.79 /usr/src/php/ext/pcntl/modules +#10 12.79 +#10 12.79 If you ever happen to want to link against installed libraries +#10 12.79 in a given directory, LIBDIR, you must either use libtool, and +#10 12.79 specify the full pathname of the library, or use the `-LLIBDIR' +#10 12.79 flag during linking and do at least one of the following: +#10 12.79 - add LIBDIR to the `LD_LIBRARY_PATH' environment variable +#10 12.79 during execution +#10 12.79 - add LIBDIR to the `LD_RUN_PATH' environment variable +#10 12.79 during linking +#10 12.79 - use the `-Wl,--rpath -Wl,LIBDIR' linker flag +#10 12.79 +#10 12.79 See any operating system documentation about shared libraries for +#10 12.79 more information, such as the ld(1) and ld.so(8) manual pages. +#10 12.79 ---------------------------------------------------------------------- +#10 12.80 +#10 12.80 Build complete. +#10 12.80 Don't forget to run 'make test'. +#10 12.80 +#10 12.81 + strip --strip-all modules/pcntl.so +#10 12.83 Installing shared extensions: /usr/local/lib/php/extensions/no-debug-non-zts-20220829/ +#10 12.91 find . -name \*.gcno -o -name \*.gcda | xargs rm -f +#10 12.91 find . -name \*.lo -o -name \*.o -o -name \*.dep | xargs rm -f +#10 12.91 find . -name \*.la -o -name \*.a | xargs rm -f +#10 12.92 find . -name \*.so | xargs rm -f +#10 12.92 find . -name .libs -a -type d|xargs rm -rf +#10 12.92 rm -f libphp.la modules/* libs/* +#10 12.93 rm -f ext/opcache/jit/zend_jit_x86.c +#10 12.93 rm -f ext/opcache/jit/zend_jit_arm64.c +#10 12.93 rm -f ext/opcache/minilua +#10 13.26 (1/1) Purging .phpize-deps (20240416.073847) +#10 13.26 OK: 298 MiB in 90 packages +#10 13.35 ### REMOVING UNNEEDED PACKAGES ### +#10 13.68 (1/29) Purging autoconf (2.71-r2) +#10 13.69 (2/29) Purging m4 (1.4.19-r3) +#10 13.69 (3/29) Purging dpkg (1.22.1-r0) +#10 13.69 (4/29) Purging dpkg-dev (1.22.1-r0) +#10 13.69 (5/29) Purging file (5.45-r1) +#10 13.69 (6/29) Purging g++ (13.2.1_git20231014-r0) +#10 13.70 (7/29) Purging libstdc++-dev (13.2.1_git20231014-r0) +#10 13.72 (8/29) Purging gcc (13.2.1_git20231014-r0) +#10 13.77 (9/29) Purging binutils (2.41-r0) +#10 13.77 (10/29) Purging libatomic (13.2.1_git20231014-r0) +#10 13.77 (11/29) Purging libgomp (13.2.1_git20231014-r0) +#10 13.77 (12/29) Purging libc-dev (0.7.2-r5) +#10 13.77 (13/29) Purging musl-dev (1.2.4_git20230717-r4) +#10 13.78 (14/29) Purging git-perl (2.43.0-r0) +#10 13.78 (15/29) Purging perl-git (2.43.0-r0) +#10 13.78 (16/29) Purging perl-error (0.17029-r2) +#10 13.78 (17/29) Purging perl (5.38.2-r0) +#10 13.82 (18/29) Purging isl26 (0.26-r1) +#10 13.82 (19/29) Purging jansson (2.14-r4) +#10 13.82 (20/29) Purging libbz2 (1.0.8-r6) +#10 13.82 (21/29) Purging libmagic (5.45-r1) +#10 13.83 (22/29) Purging libmd (1.1.0-r0) +#10 13.83 (23/29) Purging mpc1 (1.3.1-r1) +#10 13.83 (24/29) Purging mpfr4 (4.2.1-r0) +#10 13.83 (25/29) Purging pkgconf (2.1.0-r0) +#10 13.83 (26/29) Purging re2c (3.1-r0) +#10 13.83 (27/29) Purging zstd-libs (1.5.5-r8) +#10 13.83 (28/29) Purging gmp (6.3.0-r0) +#10 13.83 (29/29) Purging libstdc++ (13.2.1_git20231014-r0) +#10 13.83 Executing busybox-1.36.1-r15.trigger +#10 13.83 OK: 35 MiB in 61 packages +#10 DONE 14.6s + +#11 exporting to image +#11 exporting layers +#11 exporting layers 0.5s done +#11 writing image sha256:219e1b08fa3d6437edcfef733c303c2bd101ecd95777e58ee0b0dcaf26f71d74 done +#11 naming to docker.pkg.github.com/gwleuverink/phost/php-actions_composer_phost:php-8.2-pcntl-build2.1.0 done +#11 DONE 0.5s +------ + > importing cache manifest from docker.pkg.github.com/gwleuverink/phost/php-actions_composer_phost:php-8.2-pcntl-build2.1.0: +------ +The push refers to repository [docker.pkg.github.com/gwleuverink/phost/php-actions_composer_phost] +8898f29866e5: Preparing +9c11a3437c05: Preparing +7c6c00d28382: Preparing +1a77ee307309: Preparing +2949938ad6b1: Preparing +e943f7139772: Preparing +d52aed3190b9: Preparing +6561b37b7f9f: Preparing +9e2e2872418e: Preparing +c307e1ff6585: Preparing +ac9dba9d21f4: Preparing +d4fc045c9e3a: Preparing +e943f7139772: Waiting +d52aed3190b9: Waiting +6561b37b7f9f: Waiting +9e2e2872418e: Waiting +c307e1ff6585: Waiting +ac9dba9d21f4: Waiting +d4fc045c9e3a: Waiting +denied: installation not allowed to Create organization package +WARNING: Failed to push Docker image to "docker.pkg.github.com/gwleuverink/phost/php-actions_composer_phost:php-8.2-pcntl-build2.1.0", this is probably due to missing permissions on GitHub. +Will continue as this is just an optimization to improve speed of next build. +Docker tag: docker.pkg.github.com/gwleuverink/phost/php-actions_composer_phost:php-8.2-pcntl-build2.1.0 +No private keys supplied +Command: composer install --no-progress --no-interaction +Skipping env variable PWD +Skipping env variable HOME +Skipping env variable SHLVL +Skipping env variable PATH From c5d5b00f3a91442f2aeac9d3a4129090f555bc67 Mon Sep 17 00:00:00 2001 From: gwleuverink Date: Tue, 16 Apr 2024 07:39:19 +0000 Subject: [PATCH 28/48] Ignore Dusting commit in git blame --- .git-blame-ignore-revs | 1 + 1 file changed, 1 insertion(+) create mode 100644 .git-blame-ignore-revs diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs new file mode 100644 index 0000000..f7a67c1 --- /dev/null +++ b/.git-blame-ignore-revs @@ -0,0 +1 @@ +022d92c18a4a5a38658ee14dc4af958b26e597cf From 2a0144c82916944ee837b416e244ad21168625d7 Mon Sep 17 00:00:00 2001 From: Willem Leuverink Date: Tue, 16 Apr 2024 09:41:21 +0200 Subject: [PATCH 29/48] wip --- .github/workflows/codestyle.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/codestyle.yml b/.github/workflows/codestyle.yml index eb62fdb..ab34eea 100644 --- a/.github/workflows/codestyle.yml +++ b/.github/workflows/codestyle.yml @@ -46,6 +46,10 @@ jobs: cache: "npm" - run: npm ci + - uses: shivammathur/setup-php@v2 + with: + php-version: "8.2" + - name: Cache Composer dependencies uses: actions/cache@v3 with: @@ -95,6 +99,10 @@ jobs: cache: "npm" - run: npm ci + - uses: shivammathur/setup-php@v2 + with: + php-version: "8.2" + - name: Cache Composer dependencies uses: actions/cache@v3 with: From 7bec276a03b253611f59cfe7dbbdbdbbae65b993 Mon Sep 17 00:00:00 2001 From: Willem Leuverink Date: Tue, 16 Apr 2024 09:43:18 +0200 Subject: [PATCH 30/48] wip --- DOCKER_ENV | 132 ---------------- Dockerfile-php-build | 4 - docker_tag | 1 - output.log | 369 ------------------------------------------- 4 files changed, 506 deletions(-) delete mode 100644 DOCKER_ENV delete mode 100644 Dockerfile-php-build delete mode 100644 docker_tag delete mode 100644 output.log diff --git a/DOCKER_ENV b/DOCKER_ENV deleted file mode 100644 index 80cca2b..0000000 --- a/DOCKER_ENV +++ /dev/null @@ -1,132 +0,0 @@ -SELENIUM_JAR_PATH=/usr/share/java/selenium-server.jar -CONDA=/usr/share/miniconda -GITHUB_WORKSPACE=/home/runner/work/phost/phost -JAVA_HOME_11_X64=/usr/lib/jvm/temurin-11-jdk-amd64 -GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_f4da1ecb-c8f8-4c25-994f-7d927acd2b4d -GITHUB_ACTION=__php-actions_composer -JAVA_HOME=/usr/lib/jvm/temurin-11-jdk-amd64 -ACTION_COMMAND=install -GITHUB_RUN_NUMBER=9 -RUNNER_NAME=GitHub Actions 11 -GRADLE_HOME=/usr/share/gradle-8.7 -ACTION_INTERACTION=no -GITHUB_REPOSITORY_OWNER_ID=17123491 -ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE=/opt/actionarchivecache -XDG_CONFIG_HOME=/home/runner/.config -DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1 -ANT_HOME=/usr/share/ant -JAVA_HOME_8_X64=/usr/lib/jvm/temurin-8-jdk-amd64 -GITHUB_TRIGGERING_ACTOR=gwleuverink -GITHUB_REF_TYPE=branch -ACTION_PHP_EXTENSIONS=pcntl -HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS=3650 -ANDROID_NDK=/usr/local/lib/android/sdk/ndk/25.2.9519653 -BOOTSTRAP_HASKELL_NONINTERACTIVE=1 -PIPX_BIN_DIR=/opt/pipx_bin -ACTION_ARGS= -STATS_TRP=true -ACTION_SSH_PORT= -GOROOT_1_20_X64=/opt/hostedtoolcache/go/1.20.14/x64 -DEPLOYMENT_BASEPATH=/opt/runner -GITHUB_REPOSITORY_ID=782565156 -GITHUB_ACTIONS=true -STATS_VMD=true -ACTION_PHP_VERSION=8.2 -ANDROID_NDK_LATEST_HOME=/usr/local/lib/android/sdk/ndk/26.2.11394342 -SYSTEMD_EXEC_PID=470 -GITHUB_SHA=abbcbf7e9e74c82c26157df0c2ad42a770c47588 -GITHUB_WORKFLOW_REF=gwleuverink/phost/.github/workflows/codestyle.yml@refs/pull/1/merge -POWERSHELL_DISTRIBUTION_CHANNEL=GitHub-Actions-ubuntu22 -RUNNER_ENVIRONMENT=github-hosted -STATS_EXTP=https://provjobdsettingscdn.blob.core.windows.net/settings/provjobdsettings-0.5.172+1/provjobd.data -DOTNET_MULTILEVEL_LOOKUP=0 -STATS_TIS=mining -GITHUB_REF=refs/pull/1/merge -RUNNER_OS=Linux -ACTION_QUIET=no -GITHUB_REF_PROTECTED=false -GITHUB_API_URL=https://api.github.com -LANG=C.UTF-8 -RUNNER_TRACKING_ID=github_aadde152-8df2-4683-b07d-3f780570fc25 -ACTION_MEMORY_LIMIT= -RUNNER_ARCH=X64 -GOROOT_1_21_X64=/opt/hostedtoolcache/go/1.21.9/x64 -RUNNER_TEMP=/home/runner/work/_temp -GITHUB_STATE=/home/runner/work/_temp/_runner_file_commands/save_state_f4da1ecb-c8f8-4c25-994f-7d927acd2b4d -EDGEWEBDRIVER=/usr/local/share/edge_driver -JAVA_HOME_21_X64=/usr/lib/jvm/temurin-21-jdk-amd64 -GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_f4da1ecb-c8f8-4c25-994f-7d927acd2b4d -INVOCATION_ID=b57b39a1127b46a882a62a373a7c0b9e -GITHUB_EVENT_PATH=/home/runner/work/_temp/_github_workflow/event.json -STATS_D=false -GITHUB_EVENT_NAME=pull_request -GITHUB_RUN_ID=8701757744 -JAVA_HOME_17_X64=/usr/lib/jvm/temurin-17-jdk-amd64 -ANDROID_NDK_HOME=/usr/local/lib/android/sdk/ndk/25.2.9519653 -GITHUB_STEP_SUMMARY=/home/runner/work/_temp/_runner_file_commands/step_summary_f4da1ecb-c8f8-4c25-994f-7d927acd2b4d -HOMEBREW_NO_AUTO_UPDATE=1 -GITHUB_ACTOR=gwleuverink -ACTION_DEV=yes -NVM_DIR=/home/runner/.nvm -SGX_AESM_ADDR=1 -GITHUB_RUN_ATTEMPT=1 -STATS_RDCL=true -ANDROID_HOME=/usr/local/lib/android/sdk -GITHUB_GRAPHQL_URL=https://api.github.com/graphql -RUNNER_USER=runner -ACCEPT_EULA=Y -STATS_UE=true -USER=runner -ACTION_TOKEN=ghs_I7cnc80mDgI9BCFa1t9UhdzqCxJhlS41bpVj -GITHUB_ACTION_PATH=/home/runner/work/_actions/php-actions/composer/v6 -GITHUB_SERVER_URL=https://github.com -STATS_V3PS=true -PIPX_HOME=/opt/pipx -GECKOWEBDRIVER=/usr/local/share/gecko_driver -STATS_EXT=true -CHROMEWEBDRIVER=/usr/local/share/chromedriver-linux64 -ACTION_SSH_DOMAIN= -ANDROID_SDK_ROOT=/usr/local/lib/android/sdk -VCPKG_INSTALLATION_ROOT=/usr/local/share/vcpkg -GITHUB_ACTOR_ID=17123491 -ACTION_VERSION=2.x -RUNNER_TOOL_CACHE=/opt/hostedtoolcache -ImageVersion=20240407.1.0 -DOTNET_NOLOGO=1 -ACTION_ONLY_ARGS= -GITHUB_WORKFLOW_SHA=abbcbf7e9e74c82c26157df0c2ad42a770c47588 -GITHUB_REF_NAME=1/merge -GITHUB_JOB=duster-fix -COMPOSER_CACHE_DIR=/tmp/composer-cache -XDG_RUNTIME_DIR=/run/user/1001 -AZURE_EXTENSION_DIR=/opt/az/azcliextensions -PERFLOG_LOCATION_SETTING=RUNNER_PERFLOG -STATS_VMFE=true -GITHUB_REPOSITORY=gwleuverink/phost -GOROOT_1_22_X64=/opt/hostedtoolcache/go/1.22.2/x64 -ANDROID_NDK_ROOT=/usr/local/lib/android/sdk/ndk/25.2.9519653 -CHROME_BIN=/usr/bin/google-chrome -ACTION_CONTAINER_WORKDIR= -GITHUB_RETENTION_DAYS=90 -JOURNAL_STREAM=8:18652 -RUNNER_WORKSPACE=/home/runner/work/phost -LEIN_HOME=/usr/local/lib/lein -LEIN_JAR=/usr/local/lib/lein/self-installs/leiningen-2.11.2-standalone.jar -GITHUB_ACTION_REPOSITORY= -RUNNER_PERFLOG=/home/runner/perflog -GITHUB_BASE_REF=main -GHCUP_INSTALL_BASE_PREFIX=/usr/local -CI=true -SWIFT_PATH=/usr/share/swift/usr/bin -ImageOS=ubuntu22 -STATS_D_D=false -GITHUB_REPOSITORY_OWNER=gwleuverink -GITHUB_HEAD_REF=mvp/working -GITHUB_ACTION_REF= -GITHUB_WORKFLOW=codestyle -DEBIAN_FRONTEND=noninteractive -GITHUB_OUTPUT=/home/runner/work/_temp/_runner_file_commands/set_output_f4da1ecb-c8f8-4c25-994f-7d927acd2b4d -AGENT_TOOLSDIRECTORY=/opt/hostedtoolcache -ACTION_WORKING_DIR= -ACTION_PROGRESS=no -_=/usr/bin/env diff --git a/Dockerfile-php-build b/Dockerfile-php-build deleted file mode 100644 index fe3bcf7..0000000 --- a/Dockerfile-php-build +++ /dev/null @@ -1,4 +0,0 @@ -FROM php:8.2-cli-alpine -RUN apk add --update --no-cache bash coreutils git make openssh patch unzip zip -ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ -RUN chmod +x /usr/local/bin/install-php-extensions && sync && install-php-extensions pcntl diff --git a/docker_tag b/docker_tag deleted file mode 100644 index e8aadfd..0000000 --- a/docker_tag +++ /dev/null @@ -1 +0,0 @@ -docker.pkg.github.com/gwleuverink/phost/php-actions_composer_phost:php-8.2-pcntl-build2.1.0 diff --git a/output.log b/output.log deleted file mode 100644 index bee685c..0000000 --- a/output.log +++ /dev/null @@ -1,369 +0,0 @@ -Running php-build composer -WARNING! Your password will be stored unencrypted in /home/runner/.docker/config.json. -Configure a credential helper to remove this warning. See -https://docs.docker.com/engine/reference/commandline/login/#credentials-store - -Login Succeeded -Pulling docker.pkg.github.com/gwleuverink/phost/php-actions_composer_phost:php-8.2-pcntl-build2.1.0 -Error response from daemon: manifest unknown -Dockerfile: -FROM php:8.2-cli-alpine -RUN apk add --update --no-cache bash coreutils git make openssh patch unzip zip -ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ -RUN chmod +x /usr/local/bin/install-php-extensions && sync && install-php-extensions pcntl -#0 building with "default" instance using docker driver - -#1 [internal] load .dockerignore -#1 transferring context: 2B done -#1 DONE 0.0s - -#2 [internal] load build definition from Dockerfile-php-build -#2 transferring dockerfile: 370B done -#2 DONE 0.0s - -#3 [auth] library/php:pull token for registry-1.docker.io -#3 DONE 0.0s - -#4 [internal] load metadata for docker.io/library/php:8.2-cli-alpine -#4 DONE 0.3s - -#5 [1/4] FROM docker.io/library/php:8.2-cli-alpine@sha256:0732d9969e6c2994684aac53051dd115799ce20a92c4db8f12b7013b7c0caeff -#5 DONE 0.0s - -#6 importing cache manifest from docker.pkg.github.com/gwleuverink/phost/php-actions_composer_phost:php-8.2-pcntl-build2.1.0 -#6 ERROR: failed to configure registry cache importer: pulling from host docker.pkg.github.com failed with status code [manifests php-8.2-pcntl-build2.1.0]: 401 Unauthorized - -#7 https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions -#7 DONE 0.2s - -#5 [1/4] FROM docker.io/library/php:8.2-cli-alpine@sha256:0732d9969e6c2994684aac53051dd115799ce20a92c4db8f12b7013b7c0caeff -#5 resolve docker.io/library/php:8.2-cli-alpine@sha256:0732d9969e6c2994684aac53051dd115799ce20a92c4db8f12b7013b7c0caeff done -#5 sha256:d3a73aae1c86e8e06844a0d6ff516b8d12cc95d745da7005aea6ff3ec71c90ef 1.26kB / 1.26kB 0.0s done -#5 sha256:0150bd92669e20735014cc4cdd3025dcc133ddf84e3c341b7e4845924574ebd5 4.19MB / 12.11MB 0.1s -#5 sha256:6839461719bd9ee5b0e8e2d9a6043536870c9b91e6a3d3b32ec54ac85a90b363 0B / 19.44MB 0.1s -#5 sha256:0732d9969e6c2994684aac53051dd115799ce20a92c4db8f12b7013b7c0caeff 1.65kB / 1.65kB done -#5 sha256:006d830451b3b6129c86e259d539436840feebddb37f6a481da63b0ac3a6319b 2.20kB / 2.20kB done -#5 sha256:4b99432ace8a7bcff6a457c1ea616c20b241e4012ebc18ff9b4b9a7ca571de2d 0B / 2.76MB 0.1s -#5 sha256:9294d9185d898643d89218d8a670313cd2bb59107bf32cb6ac92e7f46839bbc8 269B / 269B 0.0s done -#5 sha256:036a86a4ae3854aafbc2f0d72aabcbef83490743d20012002547de8270618662 499B / 499B 0.1s done -#5 sha256:0150bd92669e20735014cc4cdd3025dcc133ddf84e3c341b7e4845924574ebd5 12.11MB / 12.11MB 0.2s done -#5 sha256:6839461719bd9ee5b0e8e2d9a6043536870c9b91e6a3d3b32ec54ac85a90b363 11.53MB / 19.44MB 0.2s -#5 sha256:9dc672684f7ec018374e8fce364bd505e41dba27bbb9b013f2a14d32e75c4f98 9.06kB / 9.06kB done -#5 sha256:08d0ffd2e20b566cd1d34a2f8d3cca45bc046ab267fae0edfac814a8338fdff9 0B / 2.45kB 0.2s -#5 extracting sha256:4b99432ace8a7bcff6a457c1ea616c20b241e4012ebc18ff9b4b9a7ca571de2d -#5 sha256:6839461719bd9ee5b0e8e2d9a6043536870c9b91e6a3d3b32ec54ac85a90b363 19.44MB / 19.44MB 0.3s done -#5 sha256:4b99432ace8a7bcff6a457c1ea616c20b241e4012ebc18ff9b4b9a7ca571de2d 2.76MB / 2.76MB 0.3s done -#5 sha256:08d0ffd2e20b566cd1d34a2f8d3cca45bc046ab267fae0edfac814a8338fdff9 2.45kB / 2.45kB 0.2s done -#5 sha256:ceebff25163f713105943e5d24c76c606bfa563e2389eb7e137fd1ac69dd32b0 19.30kB / 19.30kB 0.3s done -#5 extracting sha256:4b99432ace8a7bcff6a457c1ea616c20b241e4012ebc18ff9b4b9a7ca571de2d 0.1s done -#5 extracting sha256:d3a73aae1c86e8e06844a0d6ff516b8d12cc95d745da7005aea6ff3ec71c90ef done -#5 extracting sha256:9294d9185d898643d89218d8a670313cd2bb59107bf32cb6ac92e7f46839bbc8 -#5 extracting sha256:9294d9185d898643d89218d8a670313cd2bb59107bf32cb6ac92e7f46839bbc8 done -#5 extracting sha256:0150bd92669e20735014cc4cdd3025dcc133ddf84e3c341b7e4845924574ebd5 0.1s -#5 extracting sha256:0150bd92669e20735014cc4cdd3025dcc133ddf84e3c341b7e4845924574ebd5 0.1s done -#5 extracting sha256:036a86a4ae3854aafbc2f0d72aabcbef83490743d20012002547de8270618662 -#5 extracting sha256:036a86a4ae3854aafbc2f0d72aabcbef83490743d20012002547de8270618662 done -#5 extracting sha256:6839461719bd9ee5b0e8e2d9a6043536870c9b91e6a3d3b32ec54ac85a90b363 0.1s -#5 extracting sha256:6839461719bd9ee5b0e8e2d9a6043536870c9b91e6a3d3b32ec54ac85a90b363 0.7s done -#5 extracting sha256:08d0ffd2e20b566cd1d34a2f8d3cca45bc046ab267fae0edfac814a8338fdff9 -#5 extracting sha256:08d0ffd2e20b566cd1d34a2f8d3cca45bc046ab267fae0edfac814a8338fdff9 done -#5 extracting sha256:ceebff25163f713105943e5d24c76c606bfa563e2389eb7e137fd1ac69dd32b0 done -#5 DONE 2.1s - -#8 [2/4] RUN apk add --update --no-cache bash coreutils git make openssh patch unzip zip -#8 0.200 fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/main/x86_64/APKINDEX.tar.gz -#8 0.284 fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/community/x86_64/APKINDEX.tar.gz -#8 0.580 (1/23) Installing bash (5.2.21-r0) -#8 0.595 Executing bash-5.2.21-r0.post-install -#8 0.598 (2/23) Installing coreutils-env (9.4-r2) -#8 0.601 (3/23) Installing coreutils-fmt (9.4-r2) -#8 0.603 (4/23) Installing coreutils-sha512sum (9.4-r2) -#8 0.606 (5/23) Installing libattr (2.5.1-r5) -#8 0.608 (6/23) Installing skalibs (2.14.0.1-r0) -#8 0.611 (7/23) Installing utmps-libs (0.1.2.2-r0) -#8 0.612 (8/23) Installing coreutils (9.4-r2) -#8 0.631 (9/23) Installing libexpat (2.6.2-r0) -#8 0.634 (10/23) Installing pcre2 (10.42-r2) -#8 0.641 (11/23) Installing git (2.43.0-r0) -#8 0.701 (12/23) Installing make (4.4.1-r2) -#8 0.705 (13/23) Installing openssh-keygen (9.6_p1-r0) -#8 0.712 (14/23) Installing libedit (20230828.3.1-r3) -#8 0.715 (15/23) Installing openssh-client-common (9.6_p1-r0) -#8 0.733 (16/23) Installing openssh-client-default (9.6_p1-r0) -#8 0.742 (17/23) Installing openssh-sftp-server (9.6_p1-r0) -#8 0.745 (18/23) Installing openssh-server-common (9.6_p1-r0) -#8 0.747 (19/23) Installing openssh-server (9.6_p1-r0) -#8 0.756 (20/23) Installing openssh (9.6_p1-r0) -#8 0.762 (21/23) Installing patch (2.7.6-r10) -#8 0.765 (22/23) Installing unzip (6.0-r14) -#8 0.771 (23/23) Installing zip (3.0-r12) -#8 0.777 Executing busybox-1.36.1-r15.trigger -#8 0.785 OK: 35 MiB in 61 packages -#8 DONE 0.9s - -#9 [3/4] ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ -#9 DONE 0.0s - -#10 [4/4] RUN chmod +x /usr/local/bin/install-php-extensions && sync && install-php-extensions pcntl -#10 0.255 install-php-extensions v.2.2.9 -#10 0.255 #StandWithUkraine -#10 2.679 Updating channel "pecl.php.net" -#10 2.733 Channel "pecl.php.net" is up to date -#10 2.742 fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/main/x86_64/APKINDEX.tar.gz -#10 2.824 fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/community/x86_64/APKINDEX.tar.gz -#10 3.117 v3.19.1-403-ge4b3b937776 [https://dl-cdn.alpinelinux.org/alpine/v3.19/main] -#10 3.117 v3.19.1-409-g31d738535a9 [https://dl-cdn.alpinelinux.org/alpine/v3.19/community] -#10 3.117 OK: 22992 distinct packages available -#10 5.633 ### INSTALLING REQUIRED PACKAGES ### -#10 5.633 # Packages to be kept after installation: -#10 5.634 # Packages to be used only for installation: m4 libbz2 perl autoconf libmd dpkg pkgconf dpkg-dev libmagic file libstdc++ libstdc++-dev jansson zstd-libs binutils libgomp libatomic gmp isl26 mpfr4 mpc1 gcc musl-dev libc-dev g++ perl-error perl-git git-perl re2c -#10 5.937 (1/29) Installing m4 (1.4.19-r3) -#10 5.977 (2/29) Installing libbz2 (1.0.8-r6) -#10 5.980 (3/29) Installing perl (5.38.2-r0) -#10 6.282 (4/29) Installing autoconf (2.71-r2) -#10 6.302 (5/29) Installing jansson (2.14-r4) -#10 6.304 (6/29) Installing libstdc++ (13.2.1_git20231014-r0) -#10 6.321 (7/29) Installing zstd-libs (1.5.5-r8) -#10 6.329 (8/29) Installing binutils (2.41-r0) -#10 6.397 (9/29) Installing libmd (1.1.0-r0) -#10 6.400 (10/29) Installing dpkg (1.22.1-r0) -#10 6.414 (11/29) Installing pkgconf (2.1.0-r0) -#10 6.418 (12/29) Installing dpkg-dev (1.22.1-r0) -#10 6.447 (13/29) Installing libmagic (5.45-r1) -#10 6.472 (14/29) Installing file (5.45-r1) -#10 6.475 (15/29) Installing libstdc++-dev (13.2.1_git20231014-r0) -#10 6.635 (16/29) Installing libgomp (13.2.1_git20231014-r0) -#10 6.641 (17/29) Installing libatomic (13.2.1_git20231014-r0) -#10 6.644 (18/29) Installing gmp (6.3.0-r0) -#10 6.651 (19/29) Installing isl26 (0.26-r1) -#10 6.667 (20/29) Installing mpfr4 (4.2.1-r0) -#10 6.676 (21/29) Installing mpc1 (1.3.1-r1) -#10 6.679 (22/29) Installing gcc (13.2.1_git20231014-r0) -#10 7.415 (23/29) Installing musl-dev (1.2.4_git20230717-r4) -#10 7.481 (24/29) Installing libc-dev (0.7.2-r5) -#10 7.483 (25/29) Installing g++ (13.2.1_git20231014-r0) -#10 7.703 (26/29) Installing perl-error (0.17029-r2) -#10 7.708 (27/29) Installing perl-git (2.43.0-r0) -#10 7.712 (28/29) Installing git-perl (2.43.0-r0) -#10 7.715 (29/29) Installing re2c (3.1-r0) -#10 7.733 Executing busybox-1.36.1-r15.trigger -#10 7.740 OK: 298 MiB in 90 packages -#10 8.191 ### INSTALLING BUNDLED MODULE pcntl ### -#10 8.233 fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/main/x86_64/APKINDEX.tar.gz -#10 8.311 fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/community/x86_64/APKINDEX.tar.gz -#10 8.601 (1/1) Installing .phpize-deps (20240416.073847) -#10 8.605 OK: 298 MiB in 91 packages -#10 8.710 Configuring for: -#10 8.710 PHP Api Version: 20220829 -#10 8.710 Zend Module Api No: 20220829 -#10 8.710 Zend Extension Api No: 420220829 -#10 9.649 checking for grep that handles long lines and -e... /bin/grep -#10 9.719 checking for egrep... /bin/grep -E -#10 9.720 checking for a sed that does not truncate output... /bin/sed -#10 9.746 checking for pkg-config... /usr/bin/pkg-config -#10 9.747 checking pkg-config is at least version 0.9.0... yes -#10 9.748 checking for cc... cc -#10 9.775 checking whether the C compiler works... yes -#10 9.811 checking for C compiler default output file name... a.out -#10 9.813 checking for suffix of executables... -#10 9.849 checking whether we are cross compiling... no -#10 9.887 checking for suffix of object files... o -#10 9.915 checking whether the compiler supports GNU C... yes -#10 9.941 checking whether cc accepts -g... yes -#10 9.968 checking for cc option to enable C11 features... none needed -#10 10.04 checking how to run the C preprocessor... cc -E -#10 10.10 checking for icc... no -#10 10.11 checking for suncc... no -#10 10.13 checking for system library directory... lib -#10 10.13 checking if compiler supports -Wl,-rpath,... yes -#10 10.17 checking build system type... x86_64-pc-linux-musl -#10 10.17 checking host system type... x86_64-pc-linux-musl -#10 10.17 checking target system type... x86_64-pc-linux-musl -#10 10.21 checking for PHP prefix... /usr/local -#10 10.21 checking for PHP includes... -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -#10 10.21 checking for PHP extension directory... /usr/local/lib/php/extensions/no-debug-non-zts-20220829 -#10 10.21 checking for PHP installed headers prefix... /usr/local/include/php -#10 10.21 checking if debug is enabled... no -#10 10.23 checking if zts is enabled... no -#10 10.24 checking for gawk... no -#10 10.25 checking for nawk... no -#10 10.25 checking for awk... awk -#10 10.25 checking if awk is broken... no -#10 10.25 checking whether to enable pcntl support... yes, shared -#10 10.25 checking for fork... yes -#10 10.29 checking for waitpid... yes -#10 10.34 checking for sigaction... yes -#10 10.39 checking for getpriority... yes -#10 10.43 checking for setpriority... yes -#10 10.48 checking for wait3... yes -#10 10.52 checking for wait4... yes -#10 10.57 checking for sigwaitinfo... yes -#10 10.61 checking for sigtimedwait... yes -#10 10.65 checking for unshare... yes -#10 10.69 checking for rfork... no -#10 10.73 checking for forkx... no -#10 10.77 checking for siginfo_t... yes -#10 10.80 checking for a sed that does not truncate output... /bin/sed -#10 10.81 checking for ld used by cc... /usr/x86_64-alpine-linux-musl/bin/ld -#10 10.82 checking if the linker (/usr/x86_64-alpine-linux-musl/bin/ld) is GNU ld... yes -#10 10.82 checking for /usr/x86_64-alpine-linux-musl/bin/ld option to reload object files... -r -#10 10.82 checking for BSD-compatible nm... /usr/bin/nm -B -#10 10.82 checking whether ln -s works... yes -#10 10.82 checking how to recognize dependent libraries... pass_all -#10 10.84 checking for stdio.h... yes -#10 10.87 checking for stdlib.h... yes -#10 10.91 checking for string.h... yes -#10 10.94 checking for inttypes.h... yes -#10 10.97 checking for stdint.h... yes -#10 11.00 checking for strings.h... yes -#10 11.04 checking for sys/stat.h... yes -#10 11.07 checking for sys/types.h... yes -#10 11.10 checking for unistd.h... yes -#10 11.15 checking for dlfcn.h... yes -#10 11.19 checking the maximum length of command line arguments... 98304 -#10 11.19 checking command to parse /usr/bin/nm -B output from cc object... ok -#10 11.26 checking for objdir... .libs -#10 11.26 checking for ar... ar -#10 11.26 checking for ranlib... ranlib -#10 11.26 checking for strip... strip -#10 11.32 checking if cc supports -fno-rtti -fno-exceptions... no -#10 11.34 checking for cc option to produce PIC... -fPIC -#10 11.34 checking if cc PIC flag -fPIC works... yes -#10 11.36 checking if cc static flag -static works... yes -#10 11.39 checking if cc supports -c -o file.o... yes -#10 11.42 checking whether the cc linker (/usr/x86_64-alpine-linux-musl/bin/ld -m elf_x86_64) supports shared libraries... yes -#10 11.44 checking whether -lc should be explicitly linked in... no -#10 11.46 checking dynamic linker characteristics... GNU/Linux ld.so -#10 11.47 checking how to hardcode library paths into programs... immediate -#10 11.47 checking whether stripping libraries is possible... yes -#10 11.47 checking if libtool supports shared libraries... yes -#10 11.47 checking whether to build shared libraries... yes -#10 11.47 checking whether to build static libraries... no -#10 11.55 -#10 11.55 creating libtool -#10 11.61 appending configuration tag "CXX" to libtool -#10 11.67 configure: patching config.h.in -#10 11.67 configure: creating ./config.status -#10 11.73 config.status: creating config.h -#10 11.77 /bin/sh /usr/src/php/ext/pcntl/libtool --tag=CC --mode=compile cc -I. -I/usr/src/php/ext/pcntl -I/usr/src/php/ext/pcntl/include -I/usr/src/php/ext/pcntl/main -I/usr/src/php/ext/pcntl -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H -fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DHAVE_STRUCT_SIGINFO_T -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -DZEND_COMPILE_DL_EXT=1 -c /usr/src/php/ext/pcntl/pcntl.c -o pcntl.lo -MMD -MF pcntl.dep -MT pcntl.lo -#10 11.77 /bin/sh /usr/src/php/ext/pcntl/libtool --tag=CC --mode=compile cc -I. -I/usr/src/php/ext/pcntl -I/usr/src/php/ext/pcntl/include -I/usr/src/php/ext/pcntl/main -I/usr/src/php/ext/pcntl -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H -fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DHAVE_STRUCT_SIGINFO_T -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -DZEND_COMPILE_DL_EXT=1 -c /usr/src/php/ext/pcntl/php_signal.c -o php_signal.lo -MMD -MF php_signal.dep -MT php_signal.lo -#10 11.86 mkdir .libs -#10 11.86 mkdir .libs -#10 11.86 mkdir: cannot create directory ‘.libs’: File exists -#10 11.86 cc -I. -I/usr/src/php/ext/pcntl -I/usr/src/php/ext/pcntl/include -I/usr/src/php/ext/pcntl/main -I/usr/src/php/ext/pcntl -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H -fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DHAVE_STRUCT_SIGINFO_T -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -DZEND_COMPILE_DL_EXT=1 -c /usr/src/php/ext/pcntl/pcntl.c -MMD -MF pcntl.dep -MT pcntl.lo -fPIC -DPIC -o .libs/pcntl.o -#10 11.86 cc -I. -I/usr/src/php/ext/pcntl -I/usr/src/php/ext/pcntl/include -I/usr/src/php/ext/pcntl/main -I/usr/src/php/ext/pcntl -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H -fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DHAVE_STRUCT_SIGINFO_T -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -DZEND_COMPILE_DL_EXT=1 -c /usr/src/php/ext/pcntl/php_signal.c -MMD -MF php_signal.dep -MT php_signal.lo -fPIC -DPIC -o .libs/php_signal.o -#10 12.65 /bin/sh /usr/src/php/ext/pcntl/libtool --tag=CC --mode=link cc -shared -I/usr/src/php/ext/pcntl/include -I/usr/src/php/ext/pcntl/main -I/usr/src/php/ext/pcntl -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H -fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -Wl,-O1 -pie -o pcntl.la -export-dynamic -avoid-version -prefer-pic -module -rpath /usr/src/php/ext/pcntl/modules pcntl.lo php_signal.lo -#10 12.70 cc -shared .libs/pcntl.o .libs/php_signal.o -Wl,-O1 -Wl,-soname -Wl,pcntl.so -o .libs/pcntl.so -#10 12.72 creating pcntl.la -#10 12.72 (cd .libs && rm -f pcntl.la && ln -s ../pcntl.la pcntl.la) -#10 12.73 /bin/sh /usr/src/php/ext/pcntl/libtool --tag=CC --mode=install cp ./pcntl.la /usr/src/php/ext/pcntl/modules -#10 12.74 cp ./.libs/pcntl.so /usr/src/php/ext/pcntl/modules/pcntl.so -#10 12.75 cp ./.libs/pcntl.lai /usr/src/php/ext/pcntl/modules/pcntl.la -#10 12.76 PATH="$PATH:/sbin" ldconfig -n /usr/src/php/ext/pcntl/modules -#10 12.79 ---------------------------------------------------------------------- -#10 12.79 Libraries have been installed in: -#10 12.79 /usr/src/php/ext/pcntl/modules -#10 12.79 -#10 12.79 If you ever happen to want to link against installed libraries -#10 12.79 in a given directory, LIBDIR, you must either use libtool, and -#10 12.79 specify the full pathname of the library, or use the `-LLIBDIR' -#10 12.79 flag during linking and do at least one of the following: -#10 12.79 - add LIBDIR to the `LD_LIBRARY_PATH' environment variable -#10 12.79 during execution -#10 12.79 - add LIBDIR to the `LD_RUN_PATH' environment variable -#10 12.79 during linking -#10 12.79 - use the `-Wl,--rpath -Wl,LIBDIR' linker flag -#10 12.79 -#10 12.79 See any operating system documentation about shared libraries for -#10 12.79 more information, such as the ld(1) and ld.so(8) manual pages. -#10 12.79 ---------------------------------------------------------------------- -#10 12.80 -#10 12.80 Build complete. -#10 12.80 Don't forget to run 'make test'. -#10 12.80 -#10 12.81 + strip --strip-all modules/pcntl.so -#10 12.83 Installing shared extensions: /usr/local/lib/php/extensions/no-debug-non-zts-20220829/ -#10 12.91 find . -name \*.gcno -o -name \*.gcda | xargs rm -f -#10 12.91 find . -name \*.lo -o -name \*.o -o -name \*.dep | xargs rm -f -#10 12.91 find . -name \*.la -o -name \*.a | xargs rm -f -#10 12.92 find . -name \*.so | xargs rm -f -#10 12.92 find . -name .libs -a -type d|xargs rm -rf -#10 12.92 rm -f libphp.la modules/* libs/* -#10 12.93 rm -f ext/opcache/jit/zend_jit_x86.c -#10 12.93 rm -f ext/opcache/jit/zend_jit_arm64.c -#10 12.93 rm -f ext/opcache/minilua -#10 13.26 (1/1) Purging .phpize-deps (20240416.073847) -#10 13.26 OK: 298 MiB in 90 packages -#10 13.35 ### REMOVING UNNEEDED PACKAGES ### -#10 13.68 (1/29) Purging autoconf (2.71-r2) -#10 13.69 (2/29) Purging m4 (1.4.19-r3) -#10 13.69 (3/29) Purging dpkg (1.22.1-r0) -#10 13.69 (4/29) Purging dpkg-dev (1.22.1-r0) -#10 13.69 (5/29) Purging file (5.45-r1) -#10 13.69 (6/29) Purging g++ (13.2.1_git20231014-r0) -#10 13.70 (7/29) Purging libstdc++-dev (13.2.1_git20231014-r0) -#10 13.72 (8/29) Purging gcc (13.2.1_git20231014-r0) -#10 13.77 (9/29) Purging binutils (2.41-r0) -#10 13.77 (10/29) Purging libatomic (13.2.1_git20231014-r0) -#10 13.77 (11/29) Purging libgomp (13.2.1_git20231014-r0) -#10 13.77 (12/29) Purging libc-dev (0.7.2-r5) -#10 13.77 (13/29) Purging musl-dev (1.2.4_git20230717-r4) -#10 13.78 (14/29) Purging git-perl (2.43.0-r0) -#10 13.78 (15/29) Purging perl-git (2.43.0-r0) -#10 13.78 (16/29) Purging perl-error (0.17029-r2) -#10 13.78 (17/29) Purging perl (5.38.2-r0) -#10 13.82 (18/29) Purging isl26 (0.26-r1) -#10 13.82 (19/29) Purging jansson (2.14-r4) -#10 13.82 (20/29) Purging libbz2 (1.0.8-r6) -#10 13.82 (21/29) Purging libmagic (5.45-r1) -#10 13.83 (22/29) Purging libmd (1.1.0-r0) -#10 13.83 (23/29) Purging mpc1 (1.3.1-r1) -#10 13.83 (24/29) Purging mpfr4 (4.2.1-r0) -#10 13.83 (25/29) Purging pkgconf (2.1.0-r0) -#10 13.83 (26/29) Purging re2c (3.1-r0) -#10 13.83 (27/29) Purging zstd-libs (1.5.5-r8) -#10 13.83 (28/29) Purging gmp (6.3.0-r0) -#10 13.83 (29/29) Purging libstdc++ (13.2.1_git20231014-r0) -#10 13.83 Executing busybox-1.36.1-r15.trigger -#10 13.83 OK: 35 MiB in 61 packages -#10 DONE 14.6s - -#11 exporting to image -#11 exporting layers -#11 exporting layers 0.5s done -#11 writing image sha256:219e1b08fa3d6437edcfef733c303c2bd101ecd95777e58ee0b0dcaf26f71d74 done -#11 naming to docker.pkg.github.com/gwleuverink/phost/php-actions_composer_phost:php-8.2-pcntl-build2.1.0 done -#11 DONE 0.5s ------- - > importing cache manifest from docker.pkg.github.com/gwleuverink/phost/php-actions_composer_phost:php-8.2-pcntl-build2.1.0: ------- -The push refers to repository [docker.pkg.github.com/gwleuverink/phost/php-actions_composer_phost] -8898f29866e5: Preparing -9c11a3437c05: Preparing -7c6c00d28382: Preparing -1a77ee307309: Preparing -2949938ad6b1: Preparing -e943f7139772: Preparing -d52aed3190b9: Preparing -6561b37b7f9f: Preparing -9e2e2872418e: Preparing -c307e1ff6585: Preparing -ac9dba9d21f4: Preparing -d4fc045c9e3a: Preparing -e943f7139772: Waiting -d52aed3190b9: Waiting -6561b37b7f9f: Waiting -9e2e2872418e: Waiting -c307e1ff6585: Waiting -ac9dba9d21f4: Waiting -d4fc045c9e3a: Waiting -denied: installation not allowed to Create organization package -WARNING: Failed to push Docker image to "docker.pkg.github.com/gwleuverink/phost/php-actions_composer_phost:php-8.2-pcntl-build2.1.0", this is probably due to missing permissions on GitHub. -Will continue as this is just an optimization to improve speed of next build. -Docker tag: docker.pkg.github.com/gwleuverink/phost/php-actions_composer_phost:php-8.2-pcntl-build2.1.0 -No private keys supplied -Command: composer install --no-progress --no-interaction -Skipping env variable PWD -Skipping env variable HOME -Skipping env variable SHLVL -Skipping env variable PATH From 63f8c01938730a01258d0e6b8a1325b82d43ce09 Mon Sep 17 00:00:00 2001 From: gwleuverink Date: Tue, 16 Apr 2024 07:44:51 +0000 Subject: [PATCH 31/48] Dusting --- DOCKER_ENV | 135 ++++++++++++++++ Dockerfile-php-build | 4 + docker_tag | 1 + output.log | 369 +++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 509 insertions(+) create mode 100644 DOCKER_ENV create mode 100644 Dockerfile-php-build create mode 100644 docker_tag create mode 100644 output.log diff --git a/DOCKER_ENV b/DOCKER_ENV new file mode 100644 index 0000000..3fafe69 --- /dev/null +++ b/DOCKER_ENV @@ -0,0 +1,135 @@ +SELENIUM_JAR_PATH=/usr/share/java/selenium-server.jar +CONDA=/usr/share/miniconda +GITHUB_WORKSPACE=/home/runner/work/phost/phost +JAVA_HOME_11_X64=/usr/lib/jvm/temurin-11-jdk-amd64 +COMPOSER_NO_INTERACTION=1 +GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_cfb2a553-025a-4152-a112-d0b51fda0980 +GITHUB_ACTION=__php-actions_composer +JAVA_HOME=/usr/lib/jvm/temurin-11-jdk-amd64 +ACTION_COMMAND=install +GITHUB_RUN_NUMBER=10 +RUNNER_NAME=GitHub Actions 2 +GRADLE_HOME=/usr/share/gradle-8.7 +ACTION_INTERACTION=no +GITHUB_REPOSITORY_OWNER_ID=17123491 +ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE=/opt/actionarchivecache +XDG_CONFIG_HOME=/home/runner/.config +DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1 +ANT_HOME=/usr/share/ant +JAVA_HOME_8_X64=/usr/lib/jvm/temurin-8-jdk-amd64 +GITHUB_TRIGGERING_ACTOR=gwleuverink +GITHUB_REF_TYPE=branch +ACTION_PHP_EXTENSIONS=pcntl +HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS=3650 +ANDROID_NDK=/usr/local/lib/android/sdk/ndk/25.2.9519653 +BOOTSTRAP_HASKELL_NONINTERACTIVE=1 +PIPX_BIN_DIR=/opt/pipx_bin +ACTION_ARGS= +STATS_TRP=true +ACTION_SSH_PORT= +GOROOT_1_20_X64=/opt/hostedtoolcache/go/1.20.14/x64 +DEPLOYMENT_BASEPATH=/opt/runner +GITHUB_REPOSITORY_ID=782565156 +GITHUB_ACTIONS=true +STATS_VMD=true +ACTION_PHP_VERSION=8.2 +ANDROID_NDK_LATEST_HOME=/usr/local/lib/android/sdk/ndk/26.2.11394342 +SYSTEMD_EXEC_PID=470 +GITHUB_SHA=cd412c1ac0800cc04d3c026a124b6c49ab58aeac +GITHUB_WORKFLOW_REF=gwleuverink/phost/.github/workflows/codestyle.yml@refs/pull/1/merge +POWERSHELL_DISTRIBUTION_CHANNEL=GitHub-Actions-ubuntu22 +RUNNER_ENVIRONMENT=github-hosted +STATS_EXTP=https://provjobdsettingscdn.blob.core.windows.net/settings/provjobdsettings-0.5.172+1/provjobd.data +DOTNET_MULTILEVEL_LOOKUP=0 +STATS_TIS=mining +GITHUB_REF=refs/pull/1/merge +RUNNER_OS=Linux +ACTION_QUIET=no +GITHUB_REF_PROTECTED=false +GITHUB_API_URL=https://api.github.com +LANG=C.UTF-8 +RUNNER_TRACKING_ID=github_1bcdb2fa-d4cd-45ad-95d6-ab511b498d76 +ACTION_MEMORY_LIMIT= +RUNNER_ARCH=X64 +GOROOT_1_21_X64=/opt/hostedtoolcache/go/1.21.9/x64 +RUNNER_TEMP=/home/runner/work/_temp +GITHUB_STATE=/home/runner/work/_temp/_runner_file_commands/save_state_cfb2a553-025a-4152-a112-d0b51fda0980 +EDGEWEBDRIVER=/usr/local/share/edge_driver +JAVA_HOME_21_X64=/usr/lib/jvm/temurin-21-jdk-amd64 +GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_cfb2a553-025a-4152-a112-d0b51fda0980 +INVOCATION_ID=fe1dad74b063482bbc419f8868286a07 +GITHUB_EVENT_PATH=/home/runner/work/_temp/_github_workflow/event.json +STATS_D=false +GITHUB_EVENT_NAME=pull_request +GITHUB_RUN_ID=8701818854 +JAVA_HOME_17_X64=/usr/lib/jvm/temurin-17-jdk-amd64 +ANDROID_NDK_HOME=/usr/local/lib/android/sdk/ndk/25.2.9519653 +COMPOSER_PROCESS_TIMEOUT=0 +GITHUB_STEP_SUMMARY=/home/runner/work/_temp/_runner_file_commands/step_summary_cfb2a553-025a-4152-a112-d0b51fda0980 +HOMEBREW_NO_AUTO_UPDATE=1 +GITHUB_ACTOR=gwleuverink +ACTION_DEV=yes +NVM_DIR=/home/runner/.nvm +SGX_AESM_ADDR=1 +GITHUB_RUN_ATTEMPT=1 +STATS_RDCL=true +ANDROID_HOME=/usr/local/lib/android/sdk +GITHUB_GRAPHQL_URL=https://api.github.com/graphql +ACCEPT_EULA=Y +RUNNER_USER=runner +STATS_UE=true +USER=runner +ACTION_TOKEN=ghs_W6JiLEG0SSop8JZZThW2kAeZCFysFQ4D8AE4 +GITHUB_ACTION_PATH=/home/runner/work/_actions/php-actions/composer/v6 +GITHUB_SERVER_URL=https://github.com +STATS_V3PS=true +PIPX_HOME=/opt/pipx +GECKOWEBDRIVER=/usr/local/share/gecko_driver +STATS_EXT=true +CHROMEWEBDRIVER=/usr/local/share/chromedriver-linux64 +ACTION_SSH_DOMAIN= +ANDROID_SDK_ROOT=/usr/local/lib/android/sdk +VCPKG_INSTALLATION_ROOT=/usr/local/share/vcpkg +GITHUB_ACTOR_ID=17123491 +ACTION_VERSION=2.x +RUNNER_TOOL_CACHE=/opt/hostedtoolcache +ImageVersion=20240407.1.0 +DOTNET_NOLOGO=1 +ACTION_ONLY_ARGS= +GITHUB_WORKFLOW_SHA=cd412c1ac0800cc04d3c026a124b6c49ab58aeac +GITHUB_REF_NAME=1/merge +GITHUB_JOB=duster-fix +COMPOSER_CACHE_DIR=/tmp/composer-cache +XDG_RUNTIME_DIR=/run/user/1001 +AZURE_EXTENSION_DIR=/opt/az/azcliextensions +PERFLOG_LOCATION_SETTING=RUNNER_PERFLOG +STATS_VMFE=true +GITHUB_REPOSITORY=gwleuverink/phost +CHROME_BIN=/usr/bin/google-chrome +GOROOT_1_22_X64=/opt/hostedtoolcache/go/1.22.2/x64 +ANDROID_NDK_ROOT=/usr/local/lib/android/sdk/ndk/25.2.9519653 +ACTION_CONTAINER_WORKDIR= +GITHUB_RETENTION_DAYS=90 +JOURNAL_STREAM=8:18032 +RUNNER_WORKSPACE=/home/runner/work/phost +LEIN_HOME=/usr/local/lib/lein +LEIN_JAR=/usr/local/lib/lein/self-installs/leiningen-2.11.2-standalone.jar +GITHUB_ACTION_REPOSITORY= +COMPOSER_NO_AUDIT=1 +RUNNER_PERFLOG=/home/runner/perflog +GITHUB_BASE_REF=main +GHCUP_INSTALL_BASE_PREFIX=/usr/local +CI=true +SWIFT_PATH=/usr/share/swift/usr/bin +ImageOS=ubuntu22 +STATS_D_D=false +GITHUB_REPOSITORY_OWNER=gwleuverink +GITHUB_HEAD_REF=mvp/working +GITHUB_ACTION_REF= +GITHUB_WORKFLOW=codestyle +DEBIAN_FRONTEND=noninteractive +GITHUB_OUTPUT=/home/runner/work/_temp/_runner_file_commands/set_output_cfb2a553-025a-4152-a112-d0b51fda0980 +AGENT_TOOLSDIRECTORY=/opt/hostedtoolcache +ACTION_WORKING_DIR= +ACTION_PROGRESS=no +_=/usr/bin/env diff --git a/Dockerfile-php-build b/Dockerfile-php-build new file mode 100644 index 0000000..fe3bcf7 --- /dev/null +++ b/Dockerfile-php-build @@ -0,0 +1,4 @@ +FROM php:8.2-cli-alpine +RUN apk add --update --no-cache bash coreutils git make openssh patch unzip zip +ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ +RUN chmod +x /usr/local/bin/install-php-extensions && sync && install-php-extensions pcntl diff --git a/docker_tag b/docker_tag new file mode 100644 index 0000000..e8aadfd --- /dev/null +++ b/docker_tag @@ -0,0 +1 @@ +docker.pkg.github.com/gwleuverink/phost/php-actions_composer_phost:php-8.2-pcntl-build2.1.0 diff --git a/output.log b/output.log new file mode 100644 index 0000000..690511f --- /dev/null +++ b/output.log @@ -0,0 +1,369 @@ +Running php-build composer +WARNING! Your password will be stored unencrypted in /home/runner/.docker/config.json. +Configure a credential helper to remove this warning. See +https://docs.docker.com/engine/reference/commandline/login/#credentials-store + +Login Succeeded +Pulling docker.pkg.github.com/gwleuverink/phost/php-actions_composer_phost:php-8.2-pcntl-build2.1.0 +Error response from daemon: manifest unknown +Dockerfile: +FROM php:8.2-cli-alpine +RUN apk add --update --no-cache bash coreutils git make openssh patch unzip zip +ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ +RUN chmod +x /usr/local/bin/install-php-extensions && sync && install-php-extensions pcntl +#0 building with "default" instance using docker driver + +#1 [internal] load build definition from Dockerfile-php-build +#1 transferring dockerfile: 370B done +#1 DONE 0.0s + +#2 [internal] load .dockerignore +#2 transferring context: 2B done +#2 DONE 0.0s + +#3 [auth] library/php:pull token for registry-1.docker.io +#3 DONE 0.0s + +#4 [internal] load metadata for docker.io/library/php:8.2-cli-alpine +#4 DONE 0.4s + +#5 importing cache manifest from docker.pkg.github.com/gwleuverink/phost/php-actions_composer_phost:php-8.2-pcntl-build2.1.0 +#5 ERROR: failed to configure registry cache importer: pulling from host docker.pkg.github.com failed with status code [manifests php-8.2-pcntl-build2.1.0]: 401 Unauthorized + +#6 [1/4] FROM docker.io/library/php:8.2-cli-alpine@sha256:0732d9969e6c2994684aac53051dd115799ce20a92c4db8f12b7013b7c0caeff +#6 resolve docker.io/library/php:8.2-cli-alpine@sha256:0732d9969e6c2994684aac53051dd115799ce20a92c4db8f12b7013b7c0caeff done +#6 ... + +#7 https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions +#7 DONE 0.2s + +#6 [1/4] FROM docker.io/library/php:8.2-cli-alpine@sha256:0732d9969e6c2994684aac53051dd115799ce20a92c4db8f12b7013b7c0caeff +#6 sha256:08d0ffd2e20b566cd1d34a2f8d3cca45bc046ab267fae0edfac814a8338fdff9 0B / 2.45kB 0.1s +#6 sha256:006d830451b3b6129c86e259d539436840feebddb37f6a481da63b0ac3a6319b 2.20kB / 2.20kB done +#6 sha256:4b99432ace8a7bcff6a457c1ea616c20b241e4012ebc18ff9b4b9a7ca571de2d 2.76MB / 2.76MB 0.1s done +#6 sha256:0150bd92669e20735014cc4cdd3025dcc133ddf84e3c341b7e4845924574ebd5 1.05MB / 12.11MB 0.1s +#6 sha256:6839461719bd9ee5b0e8e2d9a6043536870c9b91e6a3d3b32ec54ac85a90b363 0B / 19.44MB 0.1s +#6 sha256:0732d9969e6c2994684aac53051dd115799ce20a92c4db8f12b7013b7c0caeff 1.65kB / 1.65kB done +#6 sha256:9dc672684f7ec018374e8fce364bd505e41dba27bbb9b013f2a14d32e75c4f98 9.06kB / 9.06kB done +#6 sha256:d3a73aae1c86e8e06844a0d6ff516b8d12cc95d745da7005aea6ff3ec71c90ef 1.26kB / 1.26kB 0.0s done +#6 sha256:9294d9185d898643d89218d8a670313cd2bb59107bf32cb6ac92e7f46839bbc8 269B / 269B 0.0s done +#6 sha256:036a86a4ae3854aafbc2f0d72aabcbef83490743d20012002547de8270618662 499B / 499B 0.1s done +#6 sha256:08d0ffd2e20b566cd1d34a2f8d3cca45bc046ab267fae0edfac814a8338fdff9 2.45kB / 2.45kB 0.2s done +#6 sha256:0150bd92669e20735014cc4cdd3025dcc133ddf84e3c341b7e4845924574ebd5 11.70MB / 12.11MB 0.2s +#6 sha256:6839461719bd9ee5b0e8e2d9a6043536870c9b91e6a3d3b32ec54ac85a90b363 6.29MB / 19.44MB 0.2s +#6 extracting sha256:4b99432ace8a7bcff6a457c1ea616c20b241e4012ebc18ff9b4b9a7ca571de2d 0.2s done +#6 sha256:ceebff25163f713105943e5d24c76c606bfa563e2389eb7e137fd1ac69dd32b0 0B / 19.30kB 0.2s +#6 sha256:0150bd92669e20735014cc4cdd3025dcc133ddf84e3c341b7e4845924574ebd5 12.11MB / 12.11MB 0.2s done +#6 sha256:6839461719bd9ee5b0e8e2d9a6043536870c9b91e6a3d3b32ec54ac85a90b363 19.44MB / 19.44MB 0.4s +#6 sha256:ceebff25163f713105943e5d24c76c606bfa563e2389eb7e137fd1ac69dd32b0 19.30kB / 19.30kB 0.2s done +#6 sha256:6839461719bd9ee5b0e8e2d9a6043536870c9b91e6a3d3b32ec54ac85a90b363 19.44MB / 19.44MB 0.4s done +#6 extracting sha256:d3a73aae1c86e8e06844a0d6ff516b8d12cc95d745da7005aea6ff3ec71c90ef done +#6 extracting sha256:9294d9185d898643d89218d8a670313cd2bb59107bf32cb6ac92e7f46839bbc8 done +#6 extracting sha256:0150bd92669e20735014cc4cdd3025dcc133ddf84e3c341b7e4845924574ebd5 +#6 extracting sha256:0150bd92669e20735014cc4cdd3025dcc133ddf84e3c341b7e4845924574ebd5 0.1s done +#6 extracting sha256:036a86a4ae3854aafbc2f0d72aabcbef83490743d20012002547de8270618662 +#6 extracting sha256:036a86a4ae3854aafbc2f0d72aabcbef83490743d20012002547de8270618662 done +#6 extracting sha256:6839461719bd9ee5b0e8e2d9a6043536870c9b91e6a3d3b32ec54ac85a90b363 +#6 extracting sha256:6839461719bd9ee5b0e8e2d9a6043536870c9b91e6a3d3b32ec54ac85a90b363 0.7s done +#6 extracting sha256:08d0ffd2e20b566cd1d34a2f8d3cca45bc046ab267fae0edfac814a8338fdff9 +#6 extracting sha256:08d0ffd2e20b566cd1d34a2f8d3cca45bc046ab267fae0edfac814a8338fdff9 done +#6 extracting sha256:ceebff25163f713105943e5d24c76c606bfa563e2389eb7e137fd1ac69dd32b0 done +#6 DONE 3.7s + +#8 [2/4] RUN apk add --update --no-cache bash coreutils git make openssh patch unzip zip +#8 0.202 fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/main/x86_64/APKINDEX.tar.gz +#8 0.300 fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/community/x86_64/APKINDEX.tar.gz +#8 0.544 (1/23) Installing bash (5.2.21-r0) +#8 0.565 Executing bash-5.2.21-r0.post-install +#8 0.568 (2/23) Installing coreutils-env (9.4-r2) +#8 0.575 (3/23) Installing coreutils-fmt (9.4-r2) +#8 0.581 (4/23) Installing coreutils-sha512sum (9.4-r2) +#8 0.588 (5/23) Installing libattr (2.5.1-r5) +#8 0.594 (6/23) Installing skalibs (2.14.0.1-r0) +#8 0.602 (7/23) Installing utmps-libs (0.1.2.2-r0) +#8 0.608 (8/23) Installing coreutils (9.4-r2) +#8 0.631 (9/23) Installing libexpat (2.6.2-r0) +#8 0.638 (10/23) Installing pcre2 (10.42-r2) +#8 0.650 (11/23) Installing git (2.43.0-r0) +#8 0.713 (12/23) Installing make (4.4.1-r2) +#8 0.721 (13/23) Installing openssh-keygen (9.6_p1-r0) +#8 0.731 (14/23) Installing libedit (20230828.3.1-r3) +#8 0.739 (15/23) Installing openssh-client-common (9.6_p1-r0) +#8 0.759 (16/23) Installing openssh-client-default (9.6_p1-r0) +#8 0.772 (17/23) Installing openssh-sftp-server (9.6_p1-r0) +#8 0.779 (18/23) Installing openssh-server-common (9.6_p1-r0) +#8 0.785 (19/23) Installing openssh-server (9.6_p1-r0) +#8 0.799 (20/23) Installing openssh (9.6_p1-r0) +#8 0.807 (21/23) Installing patch (2.7.6-r10) +#8 0.815 (22/23) Installing unzip (6.0-r14) +#8 0.825 (23/23) Installing zip (3.0-r12) +#8 0.836 Executing busybox-1.36.1-r15.trigger +#8 0.843 OK: 35 MiB in 61 packages +#8 DONE 1.0s + +#9 [3/4] ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ +#9 DONE 0.0s + +#10 [4/4] RUN chmod +x /usr/local/bin/install-php-extensions && sync && install-php-extensions pcntl +#10 0.316 install-php-extensions v.2.2.9 +#10 0.316 #StandWithUkraine +#10 2.749 Updating channel "pecl.php.net" +#10 2.834 Channel "pecl.php.net" is up to date +#10 2.841 fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/main/x86_64/APKINDEX.tar.gz +#10 2.950 fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/community/x86_64/APKINDEX.tar.gz +#10 3.241 v3.19.1-403-ge4b3b937776 [https://dl-cdn.alpinelinux.org/alpine/v3.19/main] +#10 3.241 v3.19.1-409-g31d738535a9 [https://dl-cdn.alpinelinux.org/alpine/v3.19/community] +#10 3.241 OK: 22992 distinct packages available +#10 5.321 ### INSTALLING REQUIRED PACKAGES ### +#10 5.321 # Packages to be kept after installation: +#10 5.321 # Packages to be used only for installation: m4 libbz2 perl autoconf libmd dpkg pkgconf dpkg-dev libmagic file libstdc++ libstdc++-dev jansson zstd-libs binutils libgomp libatomic gmp isl26 mpfr4 mpc1 gcc musl-dev libc-dev g++ perl-error perl-git git-perl re2c +#10 5.625 (1/29) Installing m4 (1.4.19-r3) +#10 5.708 (2/29) Installing libbz2 (1.0.8-r6) +#10 5.716 (3/29) Installing perl (5.38.2-r0) +#10 6.123 (4/29) Installing autoconf (2.71-r2) +#10 6.146 (5/29) Installing jansson (2.14-r4) +#10 6.153 (6/29) Installing libstdc++ (13.2.1_git20231014-r0) +#10 6.175 (7/29) Installing zstd-libs (1.5.5-r8) +#10 6.190 (8/29) Installing binutils (2.41-r0) +#10 6.258 (9/29) Installing libmd (1.1.0-r0) +#10 6.265 (10/29) Installing dpkg (1.22.1-r0) +#10 6.283 (11/29) Installing pkgconf (2.1.0-r0) +#10 6.290 (12/29) Installing dpkg-dev (1.22.1-r0) +#10 6.321 (13/29) Installing libmagic (5.45-r1) +#10 6.348 (14/29) Installing file (5.45-r1) +#10 6.355 (15/29) Installing libstdc++-dev (13.2.1_git20231014-r0) +#10 6.513 (16/29) Installing libgomp (13.2.1_git20231014-r0) +#10 6.521 (17/29) Installing libatomic (13.2.1_git20231014-r0) +#10 6.528 (18/29) Installing gmp (6.3.0-r0) +#10 6.539 (19/29) Installing isl26 (0.26-r1) +#10 6.559 (20/29) Installing mpfr4 (4.2.1-r0) +#10 6.572 (21/29) Installing mpc1 (1.3.1-r1) +#10 6.579 (22/29) Installing gcc (13.2.1_git20231014-r0) +#10 7.336 (23/29) Installing musl-dev (1.2.4_git20230717-r4) +#10 7.405 (24/29) Installing libc-dev (0.7.2-r5) +#10 7.411 (25/29) Installing g++ (13.2.1_git20231014-r0) +#10 7.631 (26/29) Installing perl-error (0.17029-r2) +#10 7.638 (27/29) Installing perl-git (2.43.0-r0) +#10 7.646 (28/29) Installing git-perl (2.43.0-r0) +#10 7.652 (29/29) Installing re2c (3.1-r0) +#10 7.671 Executing busybox-1.36.1-r15.trigger +#10 7.679 OK: 298 MiB in 90 packages +#10 8.059 ### INSTALLING BUNDLED MODULE pcntl ### +#10 8.096 fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/main/x86_64/APKINDEX.tar.gz +#10 8.194 fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/community/x86_64/APKINDEX.tar.gz +#10 8.477 (1/1) Installing .phpize-deps (20240416.074426) +#10 8.480 OK: 298 MiB in 91 packages +#10 8.562 Configuring for: +#10 8.562 PHP Api Version: 20220829 +#10 8.562 Zend Module Api No: 20220829 +#10 8.562 Zend Extension Api No: 420220829 +#10 9.469 checking for grep that handles long lines and -e... /bin/grep +#10 9.535 checking for egrep... /bin/grep -E +#10 9.536 checking for a sed that does not truncate output... /bin/sed +#10 9.561 checking for pkg-config... /usr/bin/pkg-config +#10 9.561 checking pkg-config is at least version 0.9.0... yes +#10 9.562 checking for cc... cc +#10 9.588 checking whether the C compiler works... yes +#10 9.621 checking for C compiler default output file name... a.out +#10 9.623 checking for suffix of executables... +#10 9.656 checking whether we are cross compiling... no +#10 9.691 checking for suffix of object files... o +#10 9.716 checking whether the compiler supports GNU C... yes +#10 9.739 checking whether cc accepts -g... yes +#10 9.764 checking for cc option to enable C11 features... none needed +#10 9.826 checking how to run the C preprocessor... cc -E +#10 9.883 checking for icc... no +#10 9.895 checking for suncc... no +#10 9.908 checking for system library directory... lib +#10 9.908 checking if compiler supports -Wl,-rpath,... yes +#10 9.946 checking build system type... x86_64-pc-linux-musl +#10 9.949 checking host system type... x86_64-pc-linux-musl +#10 9.949 checking target system type... x86_64-pc-linux-musl +#10 9.987 checking for PHP prefix... /usr/local +#10 9.987 checking for PHP includes... -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib +#10 9.987 checking for PHP extension directory... /usr/local/lib/php/extensions/no-debug-non-zts-20220829 +#10 9.987 checking for PHP installed headers prefix... /usr/local/include/php +#10 9.987 checking if debug is enabled... no +#10 10.00 checking if zts is enabled... no +#10 10.02 checking for gawk... no +#10 10.02 checking for nawk... no +#10 10.02 checking for awk... awk +#10 10.02 checking if awk is broken... no +#10 10.02 checking whether to enable pcntl support... yes, shared +#10 10.02 checking for fork... yes +#10 10.06 checking for waitpid... yes +#10 10.10 checking for sigaction... yes +#10 10.13 checking for getpriority... yes +#10 10.17 checking for setpriority... yes +#10 10.20 checking for wait3... yes +#10 10.24 checking for wait4... yes +#10 10.28 checking for sigwaitinfo... yes +#10 10.31 checking for sigtimedwait... yes +#10 10.35 checking for unshare... yes +#10 10.38 checking for rfork... no +#10 10.42 checking for forkx... no +#10 10.46 checking for siginfo_t... yes +#10 10.50 checking for a sed that does not truncate output... /bin/sed +#10 10.50 checking for ld used by cc... /usr/x86_64-alpine-linux-musl/bin/ld +#10 10.51 checking if the linker (/usr/x86_64-alpine-linux-musl/bin/ld) is GNU ld... yes +#10 10.51 checking for /usr/x86_64-alpine-linux-musl/bin/ld option to reload object files... -r +#10 10.51 checking for BSD-compatible nm... /usr/bin/nm -B +#10 10.51 checking whether ln -s works... yes +#10 10.51 checking how to recognize dependent libraries... pass_all +#10 10.53 checking for stdio.h... yes +#10 10.55 checking for stdlib.h... yes +#10 10.56 checking for string.h... yes +#10 10.59 checking for inttypes.h... yes +#10 10.61 checking for stdint.h... yes +#10 10.63 checking for strings.h... yes +#10 10.65 checking for sys/stat.h... yes +#10 10.67 checking for sys/types.h... yes +#10 10.69 checking for unistd.h... yes +#10 10.72 checking for dlfcn.h... yes +#10 10.74 checking the maximum length of command line arguments... 98304 +#10 10.74 checking command to parse /usr/bin/nm -B output from cc object... ok +#10 10.81 checking for objdir... .libs +#10 10.81 checking for ar... ar +#10 10.81 checking for ranlib... ranlib +#10 10.81 checking for strip... strip +#10 10.86 checking if cc supports -fno-rtti -fno-exceptions... no +#10 10.88 checking for cc option to produce PIC... -fPIC +#10 10.88 checking if cc PIC flag -fPIC works... yes +#10 10.91 checking if cc static flag -static works... yes +#10 10.96 checking if cc supports -c -o file.o... yes +#10 11.00 checking whether the cc linker (/usr/x86_64-alpine-linux-musl/bin/ld -m elf_x86_64) supports shared libraries... yes +#10 11.02 checking whether -lc should be explicitly linked in... no +#10 11.05 checking dynamic linker characteristics... GNU/Linux ld.so +#10 11.06 checking how to hardcode library paths into programs... immediate +#10 11.07 checking whether stripping libraries is possible... yes +#10 11.07 checking if libtool supports shared libraries... yes +#10 11.07 checking whether to build shared libraries... yes +#10 11.07 checking whether to build static libraries... no +#10 11.21 +#10 11.21 creating libtool +#10 11.26 appending configuration tag "CXX" to libtool +#10 11.32 configure: patching config.h.in +#10 11.33 configure: creating ./config.status +#10 11.38 config.status: creating config.h +#10 11.42 /bin/sh /usr/src/php/ext/pcntl/libtool --tag=CC --mode=compile cc -I. -I/usr/src/php/ext/pcntl -I/usr/src/php/ext/pcntl/include -I/usr/src/php/ext/pcntl/main -I/usr/src/php/ext/pcntl -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H -fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DHAVE_STRUCT_SIGINFO_T -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -DZEND_COMPILE_DL_EXT=1 -c /usr/src/php/ext/pcntl/pcntl.c -o pcntl.lo -MMD -MF pcntl.dep -MT pcntl.lo +#10 11.42 /bin/sh /usr/src/php/ext/pcntl/libtool --tag=CC --mode=compile cc -I. -I/usr/src/php/ext/pcntl -I/usr/src/php/ext/pcntl/include -I/usr/src/php/ext/pcntl/main -I/usr/src/php/ext/pcntl -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H -fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DHAVE_STRUCT_SIGINFO_T -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -DZEND_COMPILE_DL_EXT=1 -c /usr/src/php/ext/pcntl/php_signal.c -o php_signal.lo -MMD -MF php_signal.dep -MT php_signal.lo +#10 11.49 mkdir .libs +#10 11.50 mkdir .libs +#10 11.50 mkdir: cannot create directory ‘.libs’: File exists +#10 11.50 cc -I. -I/usr/src/php/ext/pcntl -I/usr/src/php/ext/pcntl/include -I/usr/src/php/ext/pcntl/main -I/usr/src/php/ext/pcntl -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H -fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DHAVE_STRUCT_SIGINFO_T -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -DZEND_COMPILE_DL_EXT=1 -c /usr/src/php/ext/pcntl/pcntl.c -MMD -MF pcntl.dep -MT pcntl.lo -fPIC -DPIC -o .libs/pcntl.o +#10 11.50 cc -I. -I/usr/src/php/ext/pcntl -I/usr/src/php/ext/pcntl/include -I/usr/src/php/ext/pcntl/main -I/usr/src/php/ext/pcntl -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H -fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DHAVE_STRUCT_SIGINFO_T -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -DZEND_COMPILE_DL_EXT=1 -c /usr/src/php/ext/pcntl/php_signal.c -MMD -MF php_signal.dep -MT php_signal.lo -fPIC -DPIC -o .libs/php_signal.o +#10 12.24 /bin/sh /usr/src/php/ext/pcntl/libtool --tag=CC --mode=link cc -shared -I/usr/src/php/ext/pcntl/include -I/usr/src/php/ext/pcntl/main -I/usr/src/php/ext/pcntl -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H -fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -Wl,-O1 -pie -o pcntl.la -export-dynamic -avoid-version -prefer-pic -module -rpath /usr/src/php/ext/pcntl/modules pcntl.lo php_signal.lo +#10 12.29 cc -shared .libs/pcntl.o .libs/php_signal.o -Wl,-O1 -Wl,-soname -Wl,pcntl.so -o .libs/pcntl.so +#10 12.31 creating pcntl.la +#10 12.31 (cd .libs && rm -f pcntl.la && ln -s ../pcntl.la pcntl.la) +#10 12.32 /bin/sh /usr/src/php/ext/pcntl/libtool --tag=CC --mode=install cp ./pcntl.la /usr/src/php/ext/pcntl/modules +#10 12.33 cp ./.libs/pcntl.so /usr/src/php/ext/pcntl/modules/pcntl.so +#10 12.33 cp ./.libs/pcntl.lai /usr/src/php/ext/pcntl/modules/pcntl.la +#10 12.35 PATH="$PATH:/sbin" ldconfig -n /usr/src/php/ext/pcntl/modules +#10 12.40 ---------------------------------------------------------------------- +#10 12.40 Libraries have been installed in: +#10 12.40 /usr/src/php/ext/pcntl/modules +#10 12.40 +#10 12.40 If you ever happen to want to link against installed libraries +#10 12.40 in a given directory, LIBDIR, you must either use libtool, and +#10 12.40 specify the full pathname of the library, or use the `-LLIBDIR' +#10 12.40 flag during linking and do at least one of the following: +#10 12.40 - add LIBDIR to the `LD_LIBRARY_PATH' environment variable +#10 12.40 during execution +#10 12.40 - add LIBDIR to the `LD_RUN_PATH' environment variable +#10 12.40 during linking +#10 12.40 - use the `-Wl,--rpath -Wl,LIBDIR' linker flag +#10 12.40 +#10 12.40 See any operating system documentation about shared libraries for +#10 12.40 more information, such as the ld(1) and ld.so(8) manual pages. +#10 12.40 ---------------------------------------------------------------------- +#10 12.40 +#10 12.40 Build complete. +#10 12.40 Don't forget to run 'make test'. +#10 12.41 +#10 12.42 + strip --strip-all modules/pcntl.so +#10 12.44 Installing shared extensions: /usr/local/lib/php/extensions/no-debug-non-zts-20220829/ +#10 12.51 find . -name \*.gcno -o -name \*.gcda | xargs rm -f +#10 12.51 find . -name \*.lo -o -name \*.o -o -name \*.dep | xargs rm -f +#10 12.51 find . -name \*.la -o -name \*.a | xargs rm -f +#10 12.52 find . -name \*.so | xargs rm -f +#10 12.52 find . -name .libs -a -type d|xargs rm -rf +#10 12.52 rm -f libphp.la modules/* libs/* +#10 12.52 rm -f ext/opcache/jit/zend_jit_x86.c +#10 12.52 rm -f ext/opcache/jit/zend_jit_arm64.c +#10 12.53 rm -f ext/opcache/minilua +#10 12.79 (1/1) Purging .phpize-deps (20240416.074426) +#10 12.79 OK: 298 MiB in 90 packages +#10 12.86 ### REMOVING UNNEEDED PACKAGES ### +#10 13.13 (1/29) Purging autoconf (2.71-r2) +#10 13.13 (2/29) Purging m4 (1.4.19-r3) +#10 13.13 (3/29) Purging dpkg (1.22.1-r0) +#10 13.13 (4/29) Purging dpkg-dev (1.22.1-r0) +#10 13.14 (5/29) Purging file (5.45-r1) +#10 13.14 (6/29) Purging g++ (13.2.1_git20231014-r0) +#10 13.14 (7/29) Purging libstdc++-dev (13.2.1_git20231014-r0) +#10 13.17 (8/29) Purging gcc (13.2.1_git20231014-r0) +#10 13.21 (9/29) Purging binutils (2.41-r0) +#10 13.21 (10/29) Purging libatomic (13.2.1_git20231014-r0) +#10 13.21 (11/29) Purging libgomp (13.2.1_git20231014-r0) +#10 13.21 (12/29) Purging libc-dev (0.7.2-r5) +#10 13.21 (13/29) Purging musl-dev (1.2.4_git20230717-r4) +#10 13.22 (14/29) Purging git-perl (2.43.0-r0) +#10 13.22 (15/29) Purging perl-git (2.43.0-r0) +#10 13.22 (16/29) Purging perl-error (0.17029-r2) +#10 13.22 (17/29) Purging perl (5.38.2-r0) +#10 13.26 (18/29) Purging isl26 (0.26-r1) +#10 13.26 (19/29) Purging jansson (2.14-r4) +#10 13.26 (20/29) Purging libbz2 (1.0.8-r6) +#10 13.26 (21/29) Purging libmagic (5.45-r1) +#10 13.26 (22/29) Purging libmd (1.1.0-r0) +#10 13.26 (23/29) Purging mpc1 (1.3.1-r1) +#10 13.26 (24/29) Purging mpfr4 (4.2.1-r0) +#10 13.26 (25/29) Purging pkgconf (2.1.0-r0) +#10 13.26 (26/29) Purging re2c (3.1-r0) +#10 13.26 (27/29) Purging zstd-libs (1.5.5-r8) +#10 13.27 (28/29) Purging gmp (6.3.0-r0) +#10 13.27 (29/29) Purging libstdc++ (13.2.1_git20231014-r0) +#10 13.27 Executing busybox-1.36.1-r15.trigger +#10 13.27 OK: 35 MiB in 61 packages +#10 DONE 14.0s + +#11 exporting to image +#11 exporting layers +#11 exporting layers 0.9s done +#11 writing image sha256:7523a5323eba8dc59ffe2eff68618ff3ebfcdba1e89c58979c7687192430b3a9 done +#11 naming to docker.pkg.github.com/gwleuverink/phost/php-actions_composer_phost:php-8.2-pcntl-build2.1.0 done +#11 DONE 0.9s +------ + > importing cache manifest from docker.pkg.github.com/gwleuverink/phost/php-actions_composer_phost:php-8.2-pcntl-build2.1.0: +------ +The push refers to repository [docker.pkg.github.com/gwleuverink/phost/php-actions_composer_phost] +0144f103091c: Preparing +f6b69bf6b47f: Preparing +492d38bcf17c: Preparing +1a77ee307309: Preparing +2949938ad6b1: Preparing +e943f7139772: Preparing +d52aed3190b9: Preparing +6561b37b7f9f: Preparing +9e2e2872418e: Preparing +c307e1ff6585: Preparing +ac9dba9d21f4: Preparing +d4fc045c9e3a: Preparing +9e2e2872418e: Waiting +c307e1ff6585: Waiting +e943f7139772: Waiting +d52aed3190b9: Waiting +6561b37b7f9f: Waiting +ac9dba9d21f4: Waiting +d4fc045c9e3a: Waiting +denied: installation not allowed to Create organization package +WARNING: Failed to push Docker image to "docker.pkg.github.com/gwleuverink/phost/php-actions_composer_phost:php-8.2-pcntl-build2.1.0", this is probably due to missing permissions on GitHub. +Will continue as this is just an optimization to improve speed of next build. +Docker tag: docker.pkg.github.com/gwleuverink/phost/php-actions_composer_phost:php-8.2-pcntl-build2.1.0 +No private keys supplied +Command: composer install --no-progress --no-interaction +Skipping env variable PWD +Skipping env variable HOME +Skipping env variable SHLVL +Skipping env variable PATH From 41746d70744bf815cb989c31bae4447bc41e77dc Mon Sep 17 00:00:00 2001 From: gwleuverink Date: Tue, 16 Apr 2024 07:44:52 +0000 Subject: [PATCH 32/48] Ignore Dusting commit in git blame --- .git-blame-ignore-revs | 1 + 1 file changed, 1 insertion(+) diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs index f7a67c1..ccea7b3 100644 --- a/.git-blame-ignore-revs +++ b/.git-blame-ignore-revs @@ -1 +1,2 @@ 022d92c18a4a5a38658ee14dc4af958b26e597cf +63f8c01938730a01258d0e6b8a1325b82d43ce09 From c89dd1ffabb68eb55655bb48041885e73feeef99 Mon Sep 17 00:00:00 2001 From: Willem Leuverink Date: Tue, 16 Apr 2024 10:55:25 +0200 Subject: [PATCH 33/48] update gitignore --- .gitignore | 5 + DOCKER_ENV | 135 ---------------- Dockerfile-php-build | 4 - docker_tag | 1 - output.log | 369 ------------------------------------------- 5 files changed, 5 insertions(+), 509 deletions(-) delete mode 100644 DOCKER_ENV delete mode 100644 Dockerfile-php-build delete mode 100644 docker_tag delete mode 100644 output.log diff --git a/.gitignore b/.gitignore index d11acf5..18e41da 100644 --- a/.gitignore +++ b/.gitignore @@ -20,5 +20,10 @@ yarn-error.log /.idea /.vscode +output.log +docker_tag +DOCKER_ENV +Dockerfile-php-build + _ide_helper.php .phpstorm.meta.php diff --git a/DOCKER_ENV b/DOCKER_ENV deleted file mode 100644 index 3fafe69..0000000 --- a/DOCKER_ENV +++ /dev/null @@ -1,135 +0,0 @@ -SELENIUM_JAR_PATH=/usr/share/java/selenium-server.jar -CONDA=/usr/share/miniconda -GITHUB_WORKSPACE=/home/runner/work/phost/phost -JAVA_HOME_11_X64=/usr/lib/jvm/temurin-11-jdk-amd64 -COMPOSER_NO_INTERACTION=1 -GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_cfb2a553-025a-4152-a112-d0b51fda0980 -GITHUB_ACTION=__php-actions_composer -JAVA_HOME=/usr/lib/jvm/temurin-11-jdk-amd64 -ACTION_COMMAND=install -GITHUB_RUN_NUMBER=10 -RUNNER_NAME=GitHub Actions 2 -GRADLE_HOME=/usr/share/gradle-8.7 -ACTION_INTERACTION=no -GITHUB_REPOSITORY_OWNER_ID=17123491 -ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE=/opt/actionarchivecache -XDG_CONFIG_HOME=/home/runner/.config -DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1 -ANT_HOME=/usr/share/ant -JAVA_HOME_8_X64=/usr/lib/jvm/temurin-8-jdk-amd64 -GITHUB_TRIGGERING_ACTOR=gwleuverink -GITHUB_REF_TYPE=branch -ACTION_PHP_EXTENSIONS=pcntl -HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS=3650 -ANDROID_NDK=/usr/local/lib/android/sdk/ndk/25.2.9519653 -BOOTSTRAP_HASKELL_NONINTERACTIVE=1 -PIPX_BIN_DIR=/opt/pipx_bin -ACTION_ARGS= -STATS_TRP=true -ACTION_SSH_PORT= -GOROOT_1_20_X64=/opt/hostedtoolcache/go/1.20.14/x64 -DEPLOYMENT_BASEPATH=/opt/runner -GITHUB_REPOSITORY_ID=782565156 -GITHUB_ACTIONS=true -STATS_VMD=true -ACTION_PHP_VERSION=8.2 -ANDROID_NDK_LATEST_HOME=/usr/local/lib/android/sdk/ndk/26.2.11394342 -SYSTEMD_EXEC_PID=470 -GITHUB_SHA=cd412c1ac0800cc04d3c026a124b6c49ab58aeac -GITHUB_WORKFLOW_REF=gwleuverink/phost/.github/workflows/codestyle.yml@refs/pull/1/merge -POWERSHELL_DISTRIBUTION_CHANNEL=GitHub-Actions-ubuntu22 -RUNNER_ENVIRONMENT=github-hosted -STATS_EXTP=https://provjobdsettingscdn.blob.core.windows.net/settings/provjobdsettings-0.5.172+1/provjobd.data -DOTNET_MULTILEVEL_LOOKUP=0 -STATS_TIS=mining -GITHUB_REF=refs/pull/1/merge -RUNNER_OS=Linux -ACTION_QUIET=no -GITHUB_REF_PROTECTED=false -GITHUB_API_URL=https://api.github.com -LANG=C.UTF-8 -RUNNER_TRACKING_ID=github_1bcdb2fa-d4cd-45ad-95d6-ab511b498d76 -ACTION_MEMORY_LIMIT= -RUNNER_ARCH=X64 -GOROOT_1_21_X64=/opt/hostedtoolcache/go/1.21.9/x64 -RUNNER_TEMP=/home/runner/work/_temp -GITHUB_STATE=/home/runner/work/_temp/_runner_file_commands/save_state_cfb2a553-025a-4152-a112-d0b51fda0980 -EDGEWEBDRIVER=/usr/local/share/edge_driver -JAVA_HOME_21_X64=/usr/lib/jvm/temurin-21-jdk-amd64 -GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_cfb2a553-025a-4152-a112-d0b51fda0980 -INVOCATION_ID=fe1dad74b063482bbc419f8868286a07 -GITHUB_EVENT_PATH=/home/runner/work/_temp/_github_workflow/event.json -STATS_D=false -GITHUB_EVENT_NAME=pull_request -GITHUB_RUN_ID=8701818854 -JAVA_HOME_17_X64=/usr/lib/jvm/temurin-17-jdk-amd64 -ANDROID_NDK_HOME=/usr/local/lib/android/sdk/ndk/25.2.9519653 -COMPOSER_PROCESS_TIMEOUT=0 -GITHUB_STEP_SUMMARY=/home/runner/work/_temp/_runner_file_commands/step_summary_cfb2a553-025a-4152-a112-d0b51fda0980 -HOMEBREW_NO_AUTO_UPDATE=1 -GITHUB_ACTOR=gwleuverink -ACTION_DEV=yes -NVM_DIR=/home/runner/.nvm -SGX_AESM_ADDR=1 -GITHUB_RUN_ATTEMPT=1 -STATS_RDCL=true -ANDROID_HOME=/usr/local/lib/android/sdk -GITHUB_GRAPHQL_URL=https://api.github.com/graphql -ACCEPT_EULA=Y -RUNNER_USER=runner -STATS_UE=true -USER=runner -ACTION_TOKEN=ghs_W6JiLEG0SSop8JZZThW2kAeZCFysFQ4D8AE4 -GITHUB_ACTION_PATH=/home/runner/work/_actions/php-actions/composer/v6 -GITHUB_SERVER_URL=https://github.com -STATS_V3PS=true -PIPX_HOME=/opt/pipx -GECKOWEBDRIVER=/usr/local/share/gecko_driver -STATS_EXT=true -CHROMEWEBDRIVER=/usr/local/share/chromedriver-linux64 -ACTION_SSH_DOMAIN= -ANDROID_SDK_ROOT=/usr/local/lib/android/sdk -VCPKG_INSTALLATION_ROOT=/usr/local/share/vcpkg -GITHUB_ACTOR_ID=17123491 -ACTION_VERSION=2.x -RUNNER_TOOL_CACHE=/opt/hostedtoolcache -ImageVersion=20240407.1.0 -DOTNET_NOLOGO=1 -ACTION_ONLY_ARGS= -GITHUB_WORKFLOW_SHA=cd412c1ac0800cc04d3c026a124b6c49ab58aeac -GITHUB_REF_NAME=1/merge -GITHUB_JOB=duster-fix -COMPOSER_CACHE_DIR=/tmp/composer-cache -XDG_RUNTIME_DIR=/run/user/1001 -AZURE_EXTENSION_DIR=/opt/az/azcliextensions -PERFLOG_LOCATION_SETTING=RUNNER_PERFLOG -STATS_VMFE=true -GITHUB_REPOSITORY=gwleuverink/phost -CHROME_BIN=/usr/bin/google-chrome -GOROOT_1_22_X64=/opt/hostedtoolcache/go/1.22.2/x64 -ANDROID_NDK_ROOT=/usr/local/lib/android/sdk/ndk/25.2.9519653 -ACTION_CONTAINER_WORKDIR= -GITHUB_RETENTION_DAYS=90 -JOURNAL_STREAM=8:18032 -RUNNER_WORKSPACE=/home/runner/work/phost -LEIN_HOME=/usr/local/lib/lein -LEIN_JAR=/usr/local/lib/lein/self-installs/leiningen-2.11.2-standalone.jar -GITHUB_ACTION_REPOSITORY= -COMPOSER_NO_AUDIT=1 -RUNNER_PERFLOG=/home/runner/perflog -GITHUB_BASE_REF=main -GHCUP_INSTALL_BASE_PREFIX=/usr/local -CI=true -SWIFT_PATH=/usr/share/swift/usr/bin -ImageOS=ubuntu22 -STATS_D_D=false -GITHUB_REPOSITORY_OWNER=gwleuverink -GITHUB_HEAD_REF=mvp/working -GITHUB_ACTION_REF= -GITHUB_WORKFLOW=codestyle -DEBIAN_FRONTEND=noninteractive -GITHUB_OUTPUT=/home/runner/work/_temp/_runner_file_commands/set_output_cfb2a553-025a-4152-a112-d0b51fda0980 -AGENT_TOOLSDIRECTORY=/opt/hostedtoolcache -ACTION_WORKING_DIR= -ACTION_PROGRESS=no -_=/usr/bin/env diff --git a/Dockerfile-php-build b/Dockerfile-php-build deleted file mode 100644 index fe3bcf7..0000000 --- a/Dockerfile-php-build +++ /dev/null @@ -1,4 +0,0 @@ -FROM php:8.2-cli-alpine -RUN apk add --update --no-cache bash coreutils git make openssh patch unzip zip -ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ -RUN chmod +x /usr/local/bin/install-php-extensions && sync && install-php-extensions pcntl diff --git a/docker_tag b/docker_tag deleted file mode 100644 index e8aadfd..0000000 --- a/docker_tag +++ /dev/null @@ -1 +0,0 @@ -docker.pkg.github.com/gwleuverink/phost/php-actions_composer_phost:php-8.2-pcntl-build2.1.0 diff --git a/output.log b/output.log deleted file mode 100644 index 690511f..0000000 --- a/output.log +++ /dev/null @@ -1,369 +0,0 @@ -Running php-build composer -WARNING! Your password will be stored unencrypted in /home/runner/.docker/config.json. -Configure a credential helper to remove this warning. See -https://docs.docker.com/engine/reference/commandline/login/#credentials-store - -Login Succeeded -Pulling docker.pkg.github.com/gwleuverink/phost/php-actions_composer_phost:php-8.2-pcntl-build2.1.0 -Error response from daemon: manifest unknown -Dockerfile: -FROM php:8.2-cli-alpine -RUN apk add --update --no-cache bash coreutils git make openssh patch unzip zip -ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ -RUN chmod +x /usr/local/bin/install-php-extensions && sync && install-php-extensions pcntl -#0 building with "default" instance using docker driver - -#1 [internal] load build definition from Dockerfile-php-build -#1 transferring dockerfile: 370B done -#1 DONE 0.0s - -#2 [internal] load .dockerignore -#2 transferring context: 2B done -#2 DONE 0.0s - -#3 [auth] library/php:pull token for registry-1.docker.io -#3 DONE 0.0s - -#4 [internal] load metadata for docker.io/library/php:8.2-cli-alpine -#4 DONE 0.4s - -#5 importing cache manifest from docker.pkg.github.com/gwleuverink/phost/php-actions_composer_phost:php-8.2-pcntl-build2.1.0 -#5 ERROR: failed to configure registry cache importer: pulling from host docker.pkg.github.com failed with status code [manifests php-8.2-pcntl-build2.1.0]: 401 Unauthorized - -#6 [1/4] FROM docker.io/library/php:8.2-cli-alpine@sha256:0732d9969e6c2994684aac53051dd115799ce20a92c4db8f12b7013b7c0caeff -#6 resolve docker.io/library/php:8.2-cli-alpine@sha256:0732d9969e6c2994684aac53051dd115799ce20a92c4db8f12b7013b7c0caeff done -#6 ... - -#7 https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions -#7 DONE 0.2s - -#6 [1/4] FROM docker.io/library/php:8.2-cli-alpine@sha256:0732d9969e6c2994684aac53051dd115799ce20a92c4db8f12b7013b7c0caeff -#6 sha256:08d0ffd2e20b566cd1d34a2f8d3cca45bc046ab267fae0edfac814a8338fdff9 0B / 2.45kB 0.1s -#6 sha256:006d830451b3b6129c86e259d539436840feebddb37f6a481da63b0ac3a6319b 2.20kB / 2.20kB done -#6 sha256:4b99432ace8a7bcff6a457c1ea616c20b241e4012ebc18ff9b4b9a7ca571de2d 2.76MB / 2.76MB 0.1s done -#6 sha256:0150bd92669e20735014cc4cdd3025dcc133ddf84e3c341b7e4845924574ebd5 1.05MB / 12.11MB 0.1s -#6 sha256:6839461719bd9ee5b0e8e2d9a6043536870c9b91e6a3d3b32ec54ac85a90b363 0B / 19.44MB 0.1s -#6 sha256:0732d9969e6c2994684aac53051dd115799ce20a92c4db8f12b7013b7c0caeff 1.65kB / 1.65kB done -#6 sha256:9dc672684f7ec018374e8fce364bd505e41dba27bbb9b013f2a14d32e75c4f98 9.06kB / 9.06kB done -#6 sha256:d3a73aae1c86e8e06844a0d6ff516b8d12cc95d745da7005aea6ff3ec71c90ef 1.26kB / 1.26kB 0.0s done -#6 sha256:9294d9185d898643d89218d8a670313cd2bb59107bf32cb6ac92e7f46839bbc8 269B / 269B 0.0s done -#6 sha256:036a86a4ae3854aafbc2f0d72aabcbef83490743d20012002547de8270618662 499B / 499B 0.1s done -#6 sha256:08d0ffd2e20b566cd1d34a2f8d3cca45bc046ab267fae0edfac814a8338fdff9 2.45kB / 2.45kB 0.2s done -#6 sha256:0150bd92669e20735014cc4cdd3025dcc133ddf84e3c341b7e4845924574ebd5 11.70MB / 12.11MB 0.2s -#6 sha256:6839461719bd9ee5b0e8e2d9a6043536870c9b91e6a3d3b32ec54ac85a90b363 6.29MB / 19.44MB 0.2s -#6 extracting sha256:4b99432ace8a7bcff6a457c1ea616c20b241e4012ebc18ff9b4b9a7ca571de2d 0.2s done -#6 sha256:ceebff25163f713105943e5d24c76c606bfa563e2389eb7e137fd1ac69dd32b0 0B / 19.30kB 0.2s -#6 sha256:0150bd92669e20735014cc4cdd3025dcc133ddf84e3c341b7e4845924574ebd5 12.11MB / 12.11MB 0.2s done -#6 sha256:6839461719bd9ee5b0e8e2d9a6043536870c9b91e6a3d3b32ec54ac85a90b363 19.44MB / 19.44MB 0.4s -#6 sha256:ceebff25163f713105943e5d24c76c606bfa563e2389eb7e137fd1ac69dd32b0 19.30kB / 19.30kB 0.2s done -#6 sha256:6839461719bd9ee5b0e8e2d9a6043536870c9b91e6a3d3b32ec54ac85a90b363 19.44MB / 19.44MB 0.4s done -#6 extracting sha256:d3a73aae1c86e8e06844a0d6ff516b8d12cc95d745da7005aea6ff3ec71c90ef done -#6 extracting sha256:9294d9185d898643d89218d8a670313cd2bb59107bf32cb6ac92e7f46839bbc8 done -#6 extracting sha256:0150bd92669e20735014cc4cdd3025dcc133ddf84e3c341b7e4845924574ebd5 -#6 extracting sha256:0150bd92669e20735014cc4cdd3025dcc133ddf84e3c341b7e4845924574ebd5 0.1s done -#6 extracting sha256:036a86a4ae3854aafbc2f0d72aabcbef83490743d20012002547de8270618662 -#6 extracting sha256:036a86a4ae3854aafbc2f0d72aabcbef83490743d20012002547de8270618662 done -#6 extracting sha256:6839461719bd9ee5b0e8e2d9a6043536870c9b91e6a3d3b32ec54ac85a90b363 -#6 extracting sha256:6839461719bd9ee5b0e8e2d9a6043536870c9b91e6a3d3b32ec54ac85a90b363 0.7s done -#6 extracting sha256:08d0ffd2e20b566cd1d34a2f8d3cca45bc046ab267fae0edfac814a8338fdff9 -#6 extracting sha256:08d0ffd2e20b566cd1d34a2f8d3cca45bc046ab267fae0edfac814a8338fdff9 done -#6 extracting sha256:ceebff25163f713105943e5d24c76c606bfa563e2389eb7e137fd1ac69dd32b0 done -#6 DONE 3.7s - -#8 [2/4] RUN apk add --update --no-cache bash coreutils git make openssh patch unzip zip -#8 0.202 fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/main/x86_64/APKINDEX.tar.gz -#8 0.300 fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/community/x86_64/APKINDEX.tar.gz -#8 0.544 (1/23) Installing bash (5.2.21-r0) -#8 0.565 Executing bash-5.2.21-r0.post-install -#8 0.568 (2/23) Installing coreutils-env (9.4-r2) -#8 0.575 (3/23) Installing coreutils-fmt (9.4-r2) -#8 0.581 (4/23) Installing coreutils-sha512sum (9.4-r2) -#8 0.588 (5/23) Installing libattr (2.5.1-r5) -#8 0.594 (6/23) Installing skalibs (2.14.0.1-r0) -#8 0.602 (7/23) Installing utmps-libs (0.1.2.2-r0) -#8 0.608 (8/23) Installing coreutils (9.4-r2) -#8 0.631 (9/23) Installing libexpat (2.6.2-r0) -#8 0.638 (10/23) Installing pcre2 (10.42-r2) -#8 0.650 (11/23) Installing git (2.43.0-r0) -#8 0.713 (12/23) Installing make (4.4.1-r2) -#8 0.721 (13/23) Installing openssh-keygen (9.6_p1-r0) -#8 0.731 (14/23) Installing libedit (20230828.3.1-r3) -#8 0.739 (15/23) Installing openssh-client-common (9.6_p1-r0) -#8 0.759 (16/23) Installing openssh-client-default (9.6_p1-r0) -#8 0.772 (17/23) Installing openssh-sftp-server (9.6_p1-r0) -#8 0.779 (18/23) Installing openssh-server-common (9.6_p1-r0) -#8 0.785 (19/23) Installing openssh-server (9.6_p1-r0) -#8 0.799 (20/23) Installing openssh (9.6_p1-r0) -#8 0.807 (21/23) Installing patch (2.7.6-r10) -#8 0.815 (22/23) Installing unzip (6.0-r14) -#8 0.825 (23/23) Installing zip (3.0-r12) -#8 0.836 Executing busybox-1.36.1-r15.trigger -#8 0.843 OK: 35 MiB in 61 packages -#8 DONE 1.0s - -#9 [3/4] ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ -#9 DONE 0.0s - -#10 [4/4] RUN chmod +x /usr/local/bin/install-php-extensions && sync && install-php-extensions pcntl -#10 0.316 install-php-extensions v.2.2.9 -#10 0.316 #StandWithUkraine -#10 2.749 Updating channel "pecl.php.net" -#10 2.834 Channel "pecl.php.net" is up to date -#10 2.841 fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/main/x86_64/APKINDEX.tar.gz -#10 2.950 fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/community/x86_64/APKINDEX.tar.gz -#10 3.241 v3.19.1-403-ge4b3b937776 [https://dl-cdn.alpinelinux.org/alpine/v3.19/main] -#10 3.241 v3.19.1-409-g31d738535a9 [https://dl-cdn.alpinelinux.org/alpine/v3.19/community] -#10 3.241 OK: 22992 distinct packages available -#10 5.321 ### INSTALLING REQUIRED PACKAGES ### -#10 5.321 # Packages to be kept after installation: -#10 5.321 # Packages to be used only for installation: m4 libbz2 perl autoconf libmd dpkg pkgconf dpkg-dev libmagic file libstdc++ libstdc++-dev jansson zstd-libs binutils libgomp libatomic gmp isl26 mpfr4 mpc1 gcc musl-dev libc-dev g++ perl-error perl-git git-perl re2c -#10 5.625 (1/29) Installing m4 (1.4.19-r3) -#10 5.708 (2/29) Installing libbz2 (1.0.8-r6) -#10 5.716 (3/29) Installing perl (5.38.2-r0) -#10 6.123 (4/29) Installing autoconf (2.71-r2) -#10 6.146 (5/29) Installing jansson (2.14-r4) -#10 6.153 (6/29) Installing libstdc++ (13.2.1_git20231014-r0) -#10 6.175 (7/29) Installing zstd-libs (1.5.5-r8) -#10 6.190 (8/29) Installing binutils (2.41-r0) -#10 6.258 (9/29) Installing libmd (1.1.0-r0) -#10 6.265 (10/29) Installing dpkg (1.22.1-r0) -#10 6.283 (11/29) Installing pkgconf (2.1.0-r0) -#10 6.290 (12/29) Installing dpkg-dev (1.22.1-r0) -#10 6.321 (13/29) Installing libmagic (5.45-r1) -#10 6.348 (14/29) Installing file (5.45-r1) -#10 6.355 (15/29) Installing libstdc++-dev (13.2.1_git20231014-r0) -#10 6.513 (16/29) Installing libgomp (13.2.1_git20231014-r0) -#10 6.521 (17/29) Installing libatomic (13.2.1_git20231014-r0) -#10 6.528 (18/29) Installing gmp (6.3.0-r0) -#10 6.539 (19/29) Installing isl26 (0.26-r1) -#10 6.559 (20/29) Installing mpfr4 (4.2.1-r0) -#10 6.572 (21/29) Installing mpc1 (1.3.1-r1) -#10 6.579 (22/29) Installing gcc (13.2.1_git20231014-r0) -#10 7.336 (23/29) Installing musl-dev (1.2.4_git20230717-r4) -#10 7.405 (24/29) Installing libc-dev (0.7.2-r5) -#10 7.411 (25/29) Installing g++ (13.2.1_git20231014-r0) -#10 7.631 (26/29) Installing perl-error (0.17029-r2) -#10 7.638 (27/29) Installing perl-git (2.43.0-r0) -#10 7.646 (28/29) Installing git-perl (2.43.0-r0) -#10 7.652 (29/29) Installing re2c (3.1-r0) -#10 7.671 Executing busybox-1.36.1-r15.trigger -#10 7.679 OK: 298 MiB in 90 packages -#10 8.059 ### INSTALLING BUNDLED MODULE pcntl ### -#10 8.096 fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/main/x86_64/APKINDEX.tar.gz -#10 8.194 fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/community/x86_64/APKINDEX.tar.gz -#10 8.477 (1/1) Installing .phpize-deps (20240416.074426) -#10 8.480 OK: 298 MiB in 91 packages -#10 8.562 Configuring for: -#10 8.562 PHP Api Version: 20220829 -#10 8.562 Zend Module Api No: 20220829 -#10 8.562 Zend Extension Api No: 420220829 -#10 9.469 checking for grep that handles long lines and -e... /bin/grep -#10 9.535 checking for egrep... /bin/grep -E -#10 9.536 checking for a sed that does not truncate output... /bin/sed -#10 9.561 checking for pkg-config... /usr/bin/pkg-config -#10 9.561 checking pkg-config is at least version 0.9.0... yes -#10 9.562 checking for cc... cc -#10 9.588 checking whether the C compiler works... yes -#10 9.621 checking for C compiler default output file name... a.out -#10 9.623 checking for suffix of executables... -#10 9.656 checking whether we are cross compiling... no -#10 9.691 checking for suffix of object files... o -#10 9.716 checking whether the compiler supports GNU C... yes -#10 9.739 checking whether cc accepts -g... yes -#10 9.764 checking for cc option to enable C11 features... none needed -#10 9.826 checking how to run the C preprocessor... cc -E -#10 9.883 checking for icc... no -#10 9.895 checking for suncc... no -#10 9.908 checking for system library directory... lib -#10 9.908 checking if compiler supports -Wl,-rpath,... yes -#10 9.946 checking build system type... x86_64-pc-linux-musl -#10 9.949 checking host system type... x86_64-pc-linux-musl -#10 9.949 checking target system type... x86_64-pc-linux-musl -#10 9.987 checking for PHP prefix... /usr/local -#10 9.987 checking for PHP includes... -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -#10 9.987 checking for PHP extension directory... /usr/local/lib/php/extensions/no-debug-non-zts-20220829 -#10 9.987 checking for PHP installed headers prefix... /usr/local/include/php -#10 9.987 checking if debug is enabled... no -#10 10.00 checking if zts is enabled... no -#10 10.02 checking for gawk... no -#10 10.02 checking for nawk... no -#10 10.02 checking for awk... awk -#10 10.02 checking if awk is broken... no -#10 10.02 checking whether to enable pcntl support... yes, shared -#10 10.02 checking for fork... yes -#10 10.06 checking for waitpid... yes -#10 10.10 checking for sigaction... yes -#10 10.13 checking for getpriority... yes -#10 10.17 checking for setpriority... yes -#10 10.20 checking for wait3... yes -#10 10.24 checking for wait4... yes -#10 10.28 checking for sigwaitinfo... yes -#10 10.31 checking for sigtimedwait... yes -#10 10.35 checking for unshare... yes -#10 10.38 checking for rfork... no -#10 10.42 checking for forkx... no -#10 10.46 checking for siginfo_t... yes -#10 10.50 checking for a sed that does not truncate output... /bin/sed -#10 10.50 checking for ld used by cc... /usr/x86_64-alpine-linux-musl/bin/ld -#10 10.51 checking if the linker (/usr/x86_64-alpine-linux-musl/bin/ld) is GNU ld... yes -#10 10.51 checking for /usr/x86_64-alpine-linux-musl/bin/ld option to reload object files... -r -#10 10.51 checking for BSD-compatible nm... /usr/bin/nm -B -#10 10.51 checking whether ln -s works... yes -#10 10.51 checking how to recognize dependent libraries... pass_all -#10 10.53 checking for stdio.h... yes -#10 10.55 checking for stdlib.h... yes -#10 10.56 checking for string.h... yes -#10 10.59 checking for inttypes.h... yes -#10 10.61 checking for stdint.h... yes -#10 10.63 checking for strings.h... yes -#10 10.65 checking for sys/stat.h... yes -#10 10.67 checking for sys/types.h... yes -#10 10.69 checking for unistd.h... yes -#10 10.72 checking for dlfcn.h... yes -#10 10.74 checking the maximum length of command line arguments... 98304 -#10 10.74 checking command to parse /usr/bin/nm -B output from cc object... ok -#10 10.81 checking for objdir... .libs -#10 10.81 checking for ar... ar -#10 10.81 checking for ranlib... ranlib -#10 10.81 checking for strip... strip -#10 10.86 checking if cc supports -fno-rtti -fno-exceptions... no -#10 10.88 checking for cc option to produce PIC... -fPIC -#10 10.88 checking if cc PIC flag -fPIC works... yes -#10 10.91 checking if cc static flag -static works... yes -#10 10.96 checking if cc supports -c -o file.o... yes -#10 11.00 checking whether the cc linker (/usr/x86_64-alpine-linux-musl/bin/ld -m elf_x86_64) supports shared libraries... yes -#10 11.02 checking whether -lc should be explicitly linked in... no -#10 11.05 checking dynamic linker characteristics... GNU/Linux ld.so -#10 11.06 checking how to hardcode library paths into programs... immediate -#10 11.07 checking whether stripping libraries is possible... yes -#10 11.07 checking if libtool supports shared libraries... yes -#10 11.07 checking whether to build shared libraries... yes -#10 11.07 checking whether to build static libraries... no -#10 11.21 -#10 11.21 creating libtool -#10 11.26 appending configuration tag "CXX" to libtool -#10 11.32 configure: patching config.h.in -#10 11.33 configure: creating ./config.status -#10 11.38 config.status: creating config.h -#10 11.42 /bin/sh /usr/src/php/ext/pcntl/libtool --tag=CC --mode=compile cc -I. -I/usr/src/php/ext/pcntl -I/usr/src/php/ext/pcntl/include -I/usr/src/php/ext/pcntl/main -I/usr/src/php/ext/pcntl -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H -fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DHAVE_STRUCT_SIGINFO_T -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -DZEND_COMPILE_DL_EXT=1 -c /usr/src/php/ext/pcntl/pcntl.c -o pcntl.lo -MMD -MF pcntl.dep -MT pcntl.lo -#10 11.42 /bin/sh /usr/src/php/ext/pcntl/libtool --tag=CC --mode=compile cc -I. -I/usr/src/php/ext/pcntl -I/usr/src/php/ext/pcntl/include -I/usr/src/php/ext/pcntl/main -I/usr/src/php/ext/pcntl -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H -fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DHAVE_STRUCT_SIGINFO_T -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -DZEND_COMPILE_DL_EXT=1 -c /usr/src/php/ext/pcntl/php_signal.c -o php_signal.lo -MMD -MF php_signal.dep -MT php_signal.lo -#10 11.49 mkdir .libs -#10 11.50 mkdir .libs -#10 11.50 mkdir: cannot create directory ‘.libs’: File exists -#10 11.50 cc -I. -I/usr/src/php/ext/pcntl -I/usr/src/php/ext/pcntl/include -I/usr/src/php/ext/pcntl/main -I/usr/src/php/ext/pcntl -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H -fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DHAVE_STRUCT_SIGINFO_T -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -DZEND_COMPILE_DL_EXT=1 -c /usr/src/php/ext/pcntl/pcntl.c -MMD -MF pcntl.dep -MT pcntl.lo -fPIC -DPIC -o .libs/pcntl.o -#10 11.50 cc -I. -I/usr/src/php/ext/pcntl -I/usr/src/php/ext/pcntl/include -I/usr/src/php/ext/pcntl/main -I/usr/src/php/ext/pcntl -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H -fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DHAVE_STRUCT_SIGINFO_T -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -DZEND_COMPILE_DL_EXT=1 -c /usr/src/php/ext/pcntl/php_signal.c -MMD -MF php_signal.dep -MT php_signal.lo -fPIC -DPIC -o .libs/php_signal.o -#10 12.24 /bin/sh /usr/src/php/ext/pcntl/libtool --tag=CC --mode=link cc -shared -I/usr/src/php/ext/pcntl/include -I/usr/src/php/ext/pcntl/main -I/usr/src/php/ext/pcntl -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H -fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -Wl,-O1 -pie -o pcntl.la -export-dynamic -avoid-version -prefer-pic -module -rpath /usr/src/php/ext/pcntl/modules pcntl.lo php_signal.lo -#10 12.29 cc -shared .libs/pcntl.o .libs/php_signal.o -Wl,-O1 -Wl,-soname -Wl,pcntl.so -o .libs/pcntl.so -#10 12.31 creating pcntl.la -#10 12.31 (cd .libs && rm -f pcntl.la && ln -s ../pcntl.la pcntl.la) -#10 12.32 /bin/sh /usr/src/php/ext/pcntl/libtool --tag=CC --mode=install cp ./pcntl.la /usr/src/php/ext/pcntl/modules -#10 12.33 cp ./.libs/pcntl.so /usr/src/php/ext/pcntl/modules/pcntl.so -#10 12.33 cp ./.libs/pcntl.lai /usr/src/php/ext/pcntl/modules/pcntl.la -#10 12.35 PATH="$PATH:/sbin" ldconfig -n /usr/src/php/ext/pcntl/modules -#10 12.40 ---------------------------------------------------------------------- -#10 12.40 Libraries have been installed in: -#10 12.40 /usr/src/php/ext/pcntl/modules -#10 12.40 -#10 12.40 If you ever happen to want to link against installed libraries -#10 12.40 in a given directory, LIBDIR, you must either use libtool, and -#10 12.40 specify the full pathname of the library, or use the `-LLIBDIR' -#10 12.40 flag during linking and do at least one of the following: -#10 12.40 - add LIBDIR to the `LD_LIBRARY_PATH' environment variable -#10 12.40 during execution -#10 12.40 - add LIBDIR to the `LD_RUN_PATH' environment variable -#10 12.40 during linking -#10 12.40 - use the `-Wl,--rpath -Wl,LIBDIR' linker flag -#10 12.40 -#10 12.40 See any operating system documentation about shared libraries for -#10 12.40 more information, such as the ld(1) and ld.so(8) manual pages. -#10 12.40 ---------------------------------------------------------------------- -#10 12.40 -#10 12.40 Build complete. -#10 12.40 Don't forget to run 'make test'. -#10 12.41 -#10 12.42 + strip --strip-all modules/pcntl.so -#10 12.44 Installing shared extensions: /usr/local/lib/php/extensions/no-debug-non-zts-20220829/ -#10 12.51 find . -name \*.gcno -o -name \*.gcda | xargs rm -f -#10 12.51 find . -name \*.lo -o -name \*.o -o -name \*.dep | xargs rm -f -#10 12.51 find . -name \*.la -o -name \*.a | xargs rm -f -#10 12.52 find . -name \*.so | xargs rm -f -#10 12.52 find . -name .libs -a -type d|xargs rm -rf -#10 12.52 rm -f libphp.la modules/* libs/* -#10 12.52 rm -f ext/opcache/jit/zend_jit_x86.c -#10 12.52 rm -f ext/opcache/jit/zend_jit_arm64.c -#10 12.53 rm -f ext/opcache/minilua -#10 12.79 (1/1) Purging .phpize-deps (20240416.074426) -#10 12.79 OK: 298 MiB in 90 packages -#10 12.86 ### REMOVING UNNEEDED PACKAGES ### -#10 13.13 (1/29) Purging autoconf (2.71-r2) -#10 13.13 (2/29) Purging m4 (1.4.19-r3) -#10 13.13 (3/29) Purging dpkg (1.22.1-r0) -#10 13.13 (4/29) Purging dpkg-dev (1.22.1-r0) -#10 13.14 (5/29) Purging file (5.45-r1) -#10 13.14 (6/29) Purging g++ (13.2.1_git20231014-r0) -#10 13.14 (7/29) Purging libstdc++-dev (13.2.1_git20231014-r0) -#10 13.17 (8/29) Purging gcc (13.2.1_git20231014-r0) -#10 13.21 (9/29) Purging binutils (2.41-r0) -#10 13.21 (10/29) Purging libatomic (13.2.1_git20231014-r0) -#10 13.21 (11/29) Purging libgomp (13.2.1_git20231014-r0) -#10 13.21 (12/29) Purging libc-dev (0.7.2-r5) -#10 13.21 (13/29) Purging musl-dev (1.2.4_git20230717-r4) -#10 13.22 (14/29) Purging git-perl (2.43.0-r0) -#10 13.22 (15/29) Purging perl-git (2.43.0-r0) -#10 13.22 (16/29) Purging perl-error (0.17029-r2) -#10 13.22 (17/29) Purging perl (5.38.2-r0) -#10 13.26 (18/29) Purging isl26 (0.26-r1) -#10 13.26 (19/29) Purging jansson (2.14-r4) -#10 13.26 (20/29) Purging libbz2 (1.0.8-r6) -#10 13.26 (21/29) Purging libmagic (5.45-r1) -#10 13.26 (22/29) Purging libmd (1.1.0-r0) -#10 13.26 (23/29) Purging mpc1 (1.3.1-r1) -#10 13.26 (24/29) Purging mpfr4 (4.2.1-r0) -#10 13.26 (25/29) Purging pkgconf (2.1.0-r0) -#10 13.26 (26/29) Purging re2c (3.1-r0) -#10 13.26 (27/29) Purging zstd-libs (1.5.5-r8) -#10 13.27 (28/29) Purging gmp (6.3.0-r0) -#10 13.27 (29/29) Purging libstdc++ (13.2.1_git20231014-r0) -#10 13.27 Executing busybox-1.36.1-r15.trigger -#10 13.27 OK: 35 MiB in 61 packages -#10 DONE 14.0s - -#11 exporting to image -#11 exporting layers -#11 exporting layers 0.9s done -#11 writing image sha256:7523a5323eba8dc59ffe2eff68618ff3ebfcdba1e89c58979c7687192430b3a9 done -#11 naming to docker.pkg.github.com/gwleuverink/phost/php-actions_composer_phost:php-8.2-pcntl-build2.1.0 done -#11 DONE 0.9s ------- - > importing cache manifest from docker.pkg.github.com/gwleuverink/phost/php-actions_composer_phost:php-8.2-pcntl-build2.1.0: ------- -The push refers to repository [docker.pkg.github.com/gwleuverink/phost/php-actions_composer_phost] -0144f103091c: Preparing -f6b69bf6b47f: Preparing -492d38bcf17c: Preparing -1a77ee307309: Preparing -2949938ad6b1: Preparing -e943f7139772: Preparing -d52aed3190b9: Preparing -6561b37b7f9f: Preparing -9e2e2872418e: Preparing -c307e1ff6585: Preparing -ac9dba9d21f4: Preparing -d4fc045c9e3a: Preparing -9e2e2872418e: Waiting -c307e1ff6585: Waiting -e943f7139772: Waiting -d52aed3190b9: Waiting -6561b37b7f9f: Waiting -ac9dba9d21f4: Waiting -d4fc045c9e3a: Waiting -denied: installation not allowed to Create organization package -WARNING: Failed to push Docker image to "docker.pkg.github.com/gwleuverink/phost/php-actions_composer_phost:php-8.2-pcntl-build2.1.0", this is probably due to missing permissions on GitHub. -Will continue as this is just an optimization to improve speed of next build. -Docker tag: docker.pkg.github.com/gwleuverink/phost/php-actions_composer_phost:php-8.2-pcntl-build2.1.0 -No private keys supplied -Command: composer install --no-progress --no-interaction -Skipping env variable PWD -Skipping env variable HOME -Skipping env variable SHLVL -Skipping env variable PATH From b896551162b93b6e2b16f115b1803b15a8b2cde8 Mon Sep 17 00:00:00 2001 From: Willem Leuverink Date: Tue, 16 Apr 2024 10:56:16 +0200 Subject: [PATCH 34/48] update supervisor --- app/Livewire/Concerns/SmtpSupervisor.php | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/app/Livewire/Concerns/SmtpSupervisor.php b/app/Livewire/Concerns/SmtpSupervisor.php index e4155f2..3dd8a91 100644 --- a/app/Livewire/Concerns/SmtpSupervisor.php +++ b/app/Livewire/Concerns/SmtpSupervisor.php @@ -8,10 +8,13 @@ use App\Services\Smtp\Server; use App\Events\MessageReceived; use Livewire\Attributes\Renderless; +use Native\Laravel\Facades\Notification; +use ZBateson\MailMimeParser\Header\HeaderConsts; trait SmtpSupervisor { const PORT = 2525; + const NOTIFICATION_TITLE = "You've got Phost!"; /** * Called with wire:poll to keep the server alive. @@ -26,9 +29,13 @@ function () { Server::new(self::PORT) ->onMessageReceived(function ($content) { - MessageReceived::dispatch( - Message::fromContent($content) - ); + $message = Message::fromContent($content); + + Notification::title(self::NOTIFICATION_TITLE) + ->message($message->parsed->getHeaderValue(HeaderConsts::SUBJECT)) + ->show(); + + MessageReceived::dispatch($message); })->serve(); }, From 92c88b4ca5dc152eef45e6f4d0c883d9f31f5e16 Mon Sep 17 00:00:00 2001 From: Willem Leuverink Date: Wed, 17 Apr 2024 07:49:11 +0200 Subject: [PATCH 35/48] boyscouting --- app/Livewire/Concerns/MessageControls.php | 63 +++++++++++++++++++ app/Livewire/Inbox.php | 25 ++------ app/Services/Smtp/Server.php | 1 - .../views/components/message/index.blade.php | 10 ++- 4 files changed, 76 insertions(+), 23 deletions(-) create mode 100644 app/Livewire/Concerns/MessageControls.php diff --git a/app/Livewire/Concerns/MessageControls.php b/app/Livewire/Concerns/MessageControls.php new file mode 100644 index 0000000..f247884 --- /dev/null +++ b/app/Livewire/Concerns/MessageControls.php @@ -0,0 +1,63 @@ +delete(); + + if ($id === $this->selectedMessageId) { + $this->selectedMessageId = null; + } + } + + public function toggleBookmark(int $id) + { + Message::findOrFail($id)->toggleBookmark(); + + $this->message?->markRead(); + } + + public function selectNext() + { + $index = $this->inbox->search(function ($message) { + return $message->id === $this->selectedMessageId; + }); + + if ($index === false) { + return; + } + + $nextMessage = $this->inbox->get($index + 1) ?? $this->inbox->first(); + + $this->selectMessage($nextMessage->id); + + unset($this->inbox); + } + + public function selectPrevious() + { + $index = $this->inbox->search(function ($message) { + return $message->id === $this->selectedMessageId; + }); + + if ($index === false) { + return; + } + + $previousMessage = $this->inbox->get($index - 1) ?? $this->inbox->last(); + + $this->selectMessage($previousMessage->id); + + unset($this->inbox); + } +} diff --git a/app/Livewire/Inbox.php b/app/Livewire/Inbox.php index 025f3a6..4ad62bf 100644 --- a/app/Livewire/Inbox.php +++ b/app/Livewire/Inbox.php @@ -9,13 +9,16 @@ use Livewire\Attributes\Computed; use Illuminate\Support\Collection; use App\Livewire\Concerns\SmtpSupervisor; +use App\Livewire\Concerns\MessageControls; /** * @property ?Message $message + * @property Collection $inbox */ #[Title('Phost | Inbox')] class Inbox extends Component { + use MessageControls; use SmtpSupervisor; #[Url] @@ -26,13 +29,11 @@ class Inbox extends Component public function mount($messageId = null) { if ($messageId) { - $this->selectedMessageId = $messageId; - - $this->message?->markRead(); + $this->selectMessage($messageId); } // Start the SMTP server - $this->supervisor(); + $this->supervisor(); // TODO: Move to scheduler } public function selectMessage(int $id) @@ -42,22 +43,6 @@ public function selectMessage(int $id) $this->message?->markRead(); } - public function deleteMessage(int $id) - { - Message::findOrFail($id)->delete(); - - if ($id === $this->selectedMessageId) { - $this->selectedMessageId = null; - } - } - - public function toggleBookmark(int $id) - { - Message::findOrFail($id)->toggleBookmark(); - - $this->message?->markRead(); - } - #[Computed()] public function message(): ?Message { diff --git a/app/Services/Smtp/Server.php b/app/Services/Smtp/Server.php index dc39500..12d754c 100644 --- a/app/Services/Smtp/Server.php +++ b/app/Services/Smtp/Server.php @@ -7,7 +7,6 @@ use App\Services\Smtp\Enums\Reply; use React\EventLoop\LoopInterface; use App\Services\Smtp\Enums\Command; -use ZBateson\MailMimeParser\Message; use React\EventLoop\StreamSelectLoop; use React\Socket\ConnectionInterface; diff --git a/resources/views/components/message/index.blade.php b/resources/views/components/message/index.blade.php index 07ae8fe..c7bbd52 100644 --- a/resources/views/components/message/index.blade.php +++ b/resources/views/components/message/index.blade.php @@ -56,11 +56,17 @@ class="mx-1 text-base font-normal text-neutral-400"
- - From e0fadb54ec66182720009cbd66b27e4f36c7da84 Mon Sep 17 00:00:00 2001 From: Willem Leuverink Date: Fri, 19 Apr 2024 00:31:21 +0200 Subject: [PATCH 36/48] update deps --- composer.lock | 120 ++++++++++++++++++++++++-------------------------- 1 file changed, 58 insertions(+), 62 deletions(-) diff --git a/composer.lock b/composer.lock index 6be5d27..690e3e8 100644 --- a/composer.lock +++ b/composer.lock @@ -1244,16 +1244,16 @@ }, { "name": "laravel/framework", - "version": "v11.3.1", + "version": "v11.4.0", "source": { "type": "git", "url": "https://github.com/laravel/framework.git", - "reference": "3b87d0767e9cbddec46480d883010ba720e50dea" + "reference": "c1dc67c28811dc5be524a30b18f29ce62126716a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/framework/zipball/3b87d0767e9cbddec46480d883010ba720e50dea", - "reference": "3b87d0767e9cbddec46480d883010ba720e50dea", + "url": "https://api.github.com/repos/laravel/framework/zipball/c1dc67c28811dc5be524a30b18f29ce62126716a", + "reference": "c1dc67c28811dc5be524a30b18f29ce62126716a", "shasum": "" }, "require": { @@ -1272,7 +1272,7 @@ "fruitcake/php-cors": "^1.3", "guzzlehttp/guzzle": "^7.8", "guzzlehttp/uri-template": "^1.0", - "laravel/prompts": "^0.1.15", + "laravel/prompts": "^0.1.18", "laravel/serializable-closure": "^1.3", "league/commonmark": "^2.2.1", "league/flysystem": "^3.8.0", @@ -1445,20 +1445,20 @@ "issues": "https://github.com/laravel/framework/issues", "source": "https://github.com/laravel/framework" }, - "time": "2024-04-10T15:13:49+00:00" + "time": "2024-04-16T14:38:51+00:00" }, { "name": "laravel/prompts", - "version": "v0.1.18", + "version": "v0.1.19", "source": { "type": "git", "url": "https://github.com/laravel/prompts.git", - "reference": "3b5e6b03f1f1175574b5a32331d99c9819da9848" + "reference": "0ab75ac3434d9f610c5691758a6146a3d1940c18" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/prompts/zipball/3b5e6b03f1f1175574b5a32331d99c9819da9848", - "reference": "3b5e6b03f1f1175574b5a32331d99c9819da9848", + "url": "https://api.github.com/repos/laravel/prompts/zipball/0ab75ac3434d9f610c5691758a6146a3d1940c18", + "reference": "0ab75ac3434d9f610c5691758a6146a3d1940c18", "shasum": "" }, "require": { @@ -1500,9 +1500,9 @@ ], "support": { "issues": "https://github.com/laravel/prompts/issues", - "source": "https://github.com/laravel/prompts/tree/v0.1.18" + "source": "https://github.com/laravel/prompts/tree/v0.1.19" }, - "time": "2024-04-04T17:41:50+00:00" + "time": "2024-04-16T14:20:35+00:00" }, { "name": "laravel/serializable-closure", @@ -2101,16 +2101,16 @@ }, { "name": "monolog/monolog", - "version": "3.5.0", + "version": "3.6.0", "source": { "type": "git", "url": "https://github.com/Seldaek/monolog.git", - "reference": "c915e2634718dbc8a4a15c61b0e62e7a44e14448" + "reference": "4b18b21a5527a3d5ffdac2fd35d3ab25a9597654" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Seldaek/monolog/zipball/c915e2634718dbc8a4a15c61b0e62e7a44e14448", - "reference": "c915e2634718dbc8a4a15c61b0e62e7a44e14448", + "url": "https://api.github.com/repos/Seldaek/monolog/zipball/4b18b21a5527a3d5ffdac2fd35d3ab25a9597654", + "reference": "4b18b21a5527a3d5ffdac2fd35d3ab25a9597654", "shasum": "" }, "require": { @@ -2133,7 +2133,7 @@ "phpstan/phpstan": "^1.9", "phpstan/phpstan-deprecation-rules": "^1.0", "phpstan/phpstan-strict-rules": "^1.4", - "phpunit/phpunit": "^10.1", + "phpunit/phpunit": "^10.5.17", "predis/predis": "^1.1 || ^2", "ruflin/elastica": "^7", "symfony/mailer": "^5.4 || ^6", @@ -2186,7 +2186,7 @@ ], "support": { "issues": "https://github.com/Seldaek/monolog/issues", - "source": "https://github.com/Seldaek/monolog/tree/3.5.0" + "source": "https://github.com/Seldaek/monolog/tree/3.6.0" }, "funding": [ { @@ -2198,7 +2198,7 @@ "type": "tidelift" } ], - "time": "2023-10-27T15:32:31+00:00" + "time": "2024-04-12T21:02:21+00:00" }, { "name": "nativephp/electron", @@ -7782,16 +7782,16 @@ }, { "name": "friendsofphp/php-cs-fixer", - "version": "v3.53.0", + "version": "v3.54.0", "source": { "type": "git", "url": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer.git", - "reference": "69a19093a9ded8d1baac62ed6c009b8bc148d008" + "reference": "2aecbc8640d7906c38777b3dcab6f4ca79004d08" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PHP-CS-Fixer/PHP-CS-Fixer/zipball/69a19093a9ded8d1baac62ed6c009b8bc148d008", - "reference": "69a19093a9ded8d1baac62ed6c009b8bc148d008", + "url": "https://api.github.com/repos/PHP-CS-Fixer/PHP-CS-Fixer/zipball/2aecbc8640d7906c38777b3dcab6f4ca79004d08", + "reference": "2aecbc8640d7906c38777b3dcab6f4ca79004d08", "shasum": "" }, "require": { @@ -7863,7 +7863,7 @@ ], "support": { "issues": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/issues", - "source": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/tree/v3.53.0" + "source": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/tree/v3.54.0" }, "funding": [ { @@ -7871,7 +7871,7 @@ "type": "github" } ], - "time": "2024-04-08T15:03:00+00:00" + "time": "2024-04-17T08:12:13+00:00" }, { "name": "gedachtegoed/workspace", @@ -8153,16 +8153,16 @@ }, { "name": "larastan/larastan", - "version": "v2.9.2", + "version": "v2.9.5", "source": { "type": "git", "url": "https://github.com/larastan/larastan.git", - "reference": "a79b46b96060504b400890674b83f66aa7f5db6d" + "reference": "101f1a4470f87326f4d3995411d28679d8800abe" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/larastan/larastan/zipball/a79b46b96060504b400890674b83f66aa7f5db6d", - "reference": "a79b46b96060504b400890674b83f66aa7f5db6d", + "url": "https://api.github.com/repos/larastan/larastan/zipball/101f1a4470f87326f4d3995411d28679d8800abe", + "reference": "101f1a4470f87326f4d3995411d28679d8800abe", "shasum": "" }, "require": { @@ -8175,15 +8175,15 @@ "illuminate/pipeline": "^9.52.16 || ^10.28.0 || ^11.0", "illuminate/support": "^9.52.16 || ^10.28.0 || ^11.0", "php": "^8.0.2", - "phpmyadmin/sql-parser": "^5.8.2", - "phpstan/phpstan": "^1.10.50" + "phpmyadmin/sql-parser": "^5.9.0", + "phpstan/phpstan": "^1.10.66" }, "require-dev": { "doctrine/coding-standard": "^12.0", - "nikic/php-parser": "^4.17.1", - "orchestra/canvas": "^7.11.1 || ^8.11.0 || ^9.0.0", - "orchestra/testbench": "^7.33.0 || ^8.13.0 || ^9.0.0", - "phpunit/phpunit": "^9.6.13 || ^10.5" + "nikic/php-parser": "^4.19.1", + "orchestra/canvas": "^7.11.1 || ^8.11.0 || ^9.0.2", + "orchestra/testbench": "^7.33.0 || ^8.13.0 || ^9.0.3", + "phpunit/phpunit": "^9.6.13 || ^10.5.16" }, "suggest": { "orchestra/testbench": "Using Larastan for analysing a package needs Testbench" @@ -8231,7 +8231,7 @@ ], "support": { "issues": "https://github.com/larastan/larastan/issues", - "source": "https://github.com/larastan/larastan/tree/v2.9.2" + "source": "https://github.com/larastan/larastan/tree/v2.9.5" }, "funding": [ { @@ -8251,7 +8251,7 @@ "type": "patreon" } ], - "time": "2024-02-27T03:16:03+00:00" + "time": "2024-04-16T19:13:34+00:00" }, { "name": "laravel/pail", @@ -9389,16 +9389,16 @@ }, { "name": "phpstan/phpstan", - "version": "1.10.66", + "version": "1.10.67", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan.git", - "reference": "94779c987e4ebd620025d9e5fdd23323903950bd" + "reference": "16ddbe776f10da6a95ebd25de7c1dbed397dc493" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/94779c987e4ebd620025d9e5fdd23323903950bd", - "reference": "94779c987e4ebd620025d9e5fdd23323903950bd", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/16ddbe776f10da6a95ebd25de7c1dbed397dc493", + "reference": "16ddbe776f10da6a95ebd25de7c1dbed397dc493", "shasum": "" }, "require": { @@ -9441,13 +9441,9 @@ { "url": "https://github.com/phpstan", "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/phpstan/phpstan", - "type": "tidelift" } ], - "time": "2024-03-28T16:17:31+00:00" + "time": "2024-04-16T07:22:02+00:00" }, { "name": "phpunit/php-code-coverage", @@ -10920,16 +10916,16 @@ }, { "name": "spatie/ignition", - "version": "1.13.1", + "version": "1.13.2", "source": { "type": "git", "url": "https://github.com/spatie/ignition.git", - "reference": "889bf1dfa59e161590f677728b47bf4a6893983b" + "reference": "952798e239d9969e4e694b124c2cc222798dbb28" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/spatie/ignition/zipball/889bf1dfa59e161590f677728b47bf4a6893983b", - "reference": "889bf1dfa59e161590f677728b47bf4a6893983b", + "url": "https://api.github.com/repos/spatie/ignition/zipball/952798e239d9969e4e694b124c2cc222798dbb28", + "reference": "952798e239d9969e4e694b124c2cc222798dbb28", "shasum": "" }, "require": { @@ -10999,20 +10995,20 @@ "type": "github" } ], - "time": "2024-03-29T14:03:47+00:00" + "time": "2024-04-16T08:49:17+00:00" }, { "name": "spatie/laravel-ignition", - "version": "2.5.1", + "version": "2.5.2", "source": { "type": "git", "url": "https://github.com/spatie/laravel-ignition.git", - "reference": "0c864b3cbd66ce67a2096c5f743e07ce8f1d6ab9" + "reference": "c93fcadcc4629775c839ac9a90916f07a660266f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/spatie/laravel-ignition/zipball/0c864b3cbd66ce67a2096c5f743e07ce8f1d6ab9", - "reference": "0c864b3cbd66ce67a2096c5f743e07ce8f1d6ab9", + "url": "https://api.github.com/repos/spatie/laravel-ignition/zipball/c93fcadcc4629775c839ac9a90916f07a660266f", + "reference": "c93fcadcc4629775c839ac9a90916f07a660266f", "shasum": "" }, "require": { @@ -11022,7 +11018,7 @@ "illuminate/support": "^10.0|^11.0", "php": "^8.1", "spatie/flare-client-php": "^1.3.5", - "spatie/ignition": "^1.13", + "spatie/ignition": "^1.13.2", "symfony/console": "^6.2.3|^7.0", "symfony/var-dumper": "^6.2.3|^7.0" }, @@ -11091,7 +11087,7 @@ "type": "github" } ], - "time": "2024-04-02T06:30:22+00:00" + "time": "2024-04-16T08:57:16+00:00" }, { "name": "squizlabs/php_codesniffer", @@ -11552,16 +11548,16 @@ }, { "name": "tightenco/duster", - "version": "v2.7.4", + "version": "v2.7.5", "source": { "type": "git", "url": "https://github.com/tighten/duster.git", - "reference": "e2c5db67313b451d5d966cf47ef15712644d3ab5" + "reference": "b12d519e8cc59632832dbd4f9995d67ae015c600" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/tighten/duster/zipball/e2c5db67313b451d5d966cf47ef15712644d3ab5", - "reference": "e2c5db67313b451d5d966cf47ef15712644d3ab5", + "url": "https://api.github.com/repos/tighten/duster/zipball/b12d519e8cc59632832dbd4f9995d67ae015c600", + "reference": "b12d519e8cc59632832dbd4f9995d67ae015c600", "shasum": "" }, "require": { @@ -11618,7 +11614,7 @@ "issues": "https://github.com/tighten/duster/issues", "source": "https://github.com/tighten/duster" }, - "time": "2024-03-30T17:16:21+00:00" + "time": "2024-04-12T19:37:39+00:00" }, { "name": "tightenco/tlint", From a862364e422d6813120f0bac9f0f060897e36c06 Mon Sep 17 00:00:00 2001 From: Willem Leuverink Date: Fri, 19 Apr 2024 00:31:41 +0200 Subject: [PATCH 37/48] improve error reporting --- app/Livewire/Concerns/SmtpSupervisor.php | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/app/Livewire/Concerns/SmtpSupervisor.php b/app/Livewire/Concerns/SmtpSupervisor.php index 3dd8a91..e92b1ec 100644 --- a/app/Livewire/Concerns/SmtpSupervisor.php +++ b/app/Livewire/Concerns/SmtpSupervisor.php @@ -2,7 +2,7 @@ namespace App\Livewire\Concerns; -use Exception; +use Throwable; use App\Models\Message; use Livewire\Attributes\On; use App\Services\Smtp\Server; @@ -39,7 +39,18 @@ function () { })->serve(); }, - report: fn (Exception $e) => ! str($e->getMessage())->contains('EADDRINUSE') + // Silently log all errors to the browser console + function (Throwable $e) { + if (str($e->getMessage())->contains('EADDRINUSE')) { + return; + } + + $this->js(<<< JS + console.error('SUPERVISOR: {$e->getMessage()}'); + JS); + }, + // Log all errors except when port is in use + report: fn (Throwable $e) => ! str($e->getMessage())->contains('EADDRINUSE') ); } From 01b65ea95004c6604ec887403beb400246608009 Mon Sep 17 00:00:00 2001 From: Willem Leuverink Date: Fri, 19 Apr 2024 00:31:58 +0200 Subject: [PATCH 38/48] fix static analysis --- app/Models/Message.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/Models/Message.php b/app/Models/Message.php index cdb5c8c..9fe761b 100644 --- a/app/Models/Message.php +++ b/app/Models/Message.php @@ -7,6 +7,9 @@ use ZBateson\MailMimeParser\Message as ParsedMessage; use ZBateson\MailMimeParser\IMessage as ParsedMessageContract; +/** + * @property ParsedMessageContract $parsed + */ class Message extends Model { protected $fillable = [ From 9033fa5c5e4891691d835b536b826a47edcfc637 Mon Sep 17 00:00:00 2001 From: Willem Leuverink Date: Fri, 19 Apr 2024 00:36:47 +0200 Subject: [PATCH 39/48] add smtp server testing mock --- app/Services/Smtp/Server.php | 13 ++++++++++++- tests/Pest.php | 11 +++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/app/Services/Smtp/Server.php b/app/Services/Smtp/Server.php index 12d754c..4b464d2 100644 --- a/app/Services/Smtp/Server.php +++ b/app/Services/Smtp/Server.php @@ -2,6 +2,7 @@ namespace App\Services\Smtp; +use Mockery; use React\Socket\SocketServer; use React\Socket\ServerInterface; use App\Services\Smtp\Enums\Reply; @@ -35,7 +36,17 @@ public function __construct(int $port = 2525) public static function new(int $port = 2525): self { - return new self($port); + return resolve(self::class, ['port' => $port]); + } + + public static function fake() + { + $mock = Mockery::mock(self::class, fn ($mock) => $mock + ->makePartial() + ->shouldReceive('serve') + ); + + app()->bind(self::class, fn () => $mock); } public function serve(): void diff --git a/tests/Pest.php b/tests/Pest.php index 50ab1e4..aa5ea9e 100644 --- a/tests/Pest.php +++ b/tests/Pest.php @@ -1,5 +1,16 @@ beforeAll(function () { + Server::fake(); +}); + /* |-------------------------------------------------------------------------- | Test Case From 968ab822c23d4ff4725b38b849e3eb1df6a8d823 Mon Sep 17 00:00:00 2001 From: Willem Leuverink Date: Fri, 19 Apr 2024 00:42:56 +0200 Subject: [PATCH 40/48] fix test --- tests/Pest.php | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/tests/Pest.php b/tests/Pest.php index aa5ea9e..803cccc 100644 --- a/tests/Pest.php +++ b/tests/Pest.php @@ -2,15 +2,6 @@ use App\Services\Smtp\Server; -/* -|-------------------------------------------------------------------------- -| Global hooks -|-------------------------------------------------------------------------- -*/ -uses()->beforeAll(function () { - Server::fake(); -}); - /* |-------------------------------------------------------------------------- | Test Case @@ -25,7 +16,9 @@ uses( Tests\TestCase::class, // Illuminate\Foundation\Testing\RefreshDatabase::class, -)->in('Feature'); +)->beforeAll(function () { + Server::fake(); +})->in('Feature'); /* |-------------------------------------------------------------------------- From c06503978c9fd12890be85f6d22b3c6dc80f5db0 Mon Sep 17 00:00:00 2001 From: Willem Leuverink Date: Fri, 19 Apr 2024 00:51:08 +0200 Subject: [PATCH 41/48] fix test --- tests/Pest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Pest.php b/tests/Pest.php index 803cccc..83fba1b 100644 --- a/tests/Pest.php +++ b/tests/Pest.php @@ -16,7 +16,7 @@ uses( Tests\TestCase::class, // Illuminate\Foundation\Testing\RefreshDatabase::class, -)->beforeAll(function () { +)->beforeEach(function () { Server::fake(); })->in('Feature'); From f099a4908b01718adfa57db21fe6105669a710b5 Mon Sep 17 00:00:00 2001 From: Willem Leuverink Date: Fri, 19 Apr 2024 00:55:17 +0200 Subject: [PATCH 42/48] fix test --- .github/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c6f6bbd..c014865 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -54,8 +54,8 @@ jobs: - name: Generate key run: php artisan key:generate - # - name: Directory Permissions - # run: chmod -R 777 storage bootstrap/cache + - name: Directory Permissions + run: chmod -R 777 vendor/pestphp/pest/.temp - name: Create Database run: | From 4be716c435cada53e739255a53d05f61c24209a4 Mon Sep 17 00:00:00 2001 From: Willem Leuverink Date: Thu, 25 Apr 2024 09:36:37 +0200 Subject: [PATCH 43/48] wip --- .github/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c014865..c6f6bbd 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -54,8 +54,8 @@ jobs: - name: Generate key run: php artisan key:generate - - name: Directory Permissions - run: chmod -R 777 vendor/pestphp/pest/.temp + # - name: Directory Permissions + # run: chmod -R 777 storage bootstrap/cache - name: Create Database run: | From f79a18fdaa127a5454aa001ff0808fa3dc732982 Mon Sep 17 00:00:00 2001 From: Willem Leuverink Date: Thu, 25 Apr 2024 09:37:36 +0200 Subject: [PATCH 44/48] improve ui & add settings dialog --- app/Enums/Framework.php | 12 +++ app/Livewire/Settings.php | 18 ++++ app/Models/Message.php | 8 ++ .../views/components/dialog/footer.blade.php | 5 ++ .../views/components/dialog/index.blade.php | 17 ++++ .../views/components/dialog/panel.blade.php | 56 ++++++++++++ .../views/components/input/button.blade.php | 26 ++++++ .../views/components/input/group.blade.php | 26 ++++++ .../views/components/input/radio.blade.php | 56 ++++++++++++ .../views/components/input/text.blade.php | 28 ++++++ .../views/components/layouts/app.blade.php | 2 + .../views/components/message/index.blade.php | 12 ++- .../views/components/support/code.blade.php | 1 + .../views/components/support/config.blade.php | 86 +++++++++++++++++++ .../support/dialog-provider.blade.php | 7 ++ .../components/support/divider.blade.php | 1 + .../views/components/support/tab.blade.php | 1 + resources/views/livewire/inbox.blade.php | 26 +++++- resources/views/livewire/settings.blade.php | 44 ++++++++++ 19 files changed, 427 insertions(+), 5 deletions(-) create mode 100644 app/Enums/Framework.php create mode 100644 app/Livewire/Settings.php create mode 100644 resources/views/components/dialog/footer.blade.php create mode 100644 resources/views/components/dialog/index.blade.php create mode 100644 resources/views/components/dialog/panel.blade.php create mode 100644 resources/views/components/input/button.blade.php create mode 100644 resources/views/components/input/group.blade.php create mode 100644 resources/views/components/input/radio.blade.php create mode 100644 resources/views/components/input/text.blade.php create mode 100644 resources/views/components/support/code.blade.php create mode 100644 resources/views/components/support/config.blade.php create mode 100644 resources/views/components/support/dialog-provider.blade.php create mode 100644 resources/views/components/support/divider.blade.php create mode 100644 resources/views/components/support/tab.blade.php create mode 100644 resources/views/livewire/settings.blade.php diff --git a/app/Enums/Framework.php b/app/Enums/Framework.php new file mode 100644 index 0000000..92b3bd9 --- /dev/null +++ b/app/Enums/Framework.php @@ -0,0 +1,12 @@ +framework); + } +} diff --git a/app/Models/Message.php b/app/Models/Message.php index 9fe761b..4a62af9 100644 --- a/app/Models/Message.php +++ b/app/Models/Message.php @@ -2,6 +2,7 @@ namespace App\Models; +use Illuminate\Support\Number; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Casts\Attribute; use ZBateson\MailMimeParser\Message as ParsedMessage; @@ -40,6 +41,13 @@ public function parsed(): Attribute )->shouldCache(); } + public function size(): Attribute + { + return Attribute::make( + get: fn () => Number::fileSize(strlen($this->content), precision: 2) + )->shouldCache(); + } + //--------------------------------------------------------------- // Helpers //--------------------------------------------------------------- diff --git a/resources/views/components/dialog/footer.blade.php b/resources/views/components/dialog/footer.blade.php new file mode 100644 index 0000000..593a363 --- /dev/null +++ b/resources/views/components/dialog/footer.blade.php @@ -0,0 +1,5 @@ +
+
+ {{ $slot }} +
+
diff --git a/resources/views/components/dialog/index.blade.php b/resources/views/components/dialog/index.blade.php new file mode 100644 index 0000000..0c6ec9a --- /dev/null +++ b/resources/views/components/dialog/index.blade.php @@ -0,0 +1,17 @@ +
+ {{ $slot }} +
diff --git a/resources/views/components/dialog/panel.blade.php b/resources/views/components/dialog/panel.blade.php new file mode 100644 index 0000000..884452d --- /dev/null +++ b/resources/views/components/dialog/panel.blade.php @@ -0,0 +1,56 @@ + diff --git a/resources/views/components/input/button.blade.php b/resources/views/components/input/button.blade.php new file mode 100644 index 0000000..2dc9ecf --- /dev/null +++ b/resources/views/components/input/button.blade.php @@ -0,0 +1,26 @@ +@props([ + 'level' => 'primary', + 'type' => 'button', + 'href' => false, +]) + +@php + $element = $href ? 'a' : 'button'; + + $defaultClasses = 'text-sm font-medium rounded shadow-sm transition-all disabled:opacity-50 cursor-default'; + + $levelClasses = match ($level) { + 'round' => 'rounded-full bg-indigo-600 p-1 text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600 hover:scale-110 focus-visible:scale-110', + 'danger' => 'px-2 py-1 text-white bg-red-600 hover:bg-red-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-red-600', + 'primary' => 'px-2 py-1 text-white bg-indigo-600 hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600', + 'secondary' => 'px-2 py-1 text-neutral-500 bg-white ring-1 ring-inset ring-gray-300 hover:bg-gray-50 focus-visible:outline-gray-200 focus-visible:outline-2', + }; +@endphp + +<{{ $element }} {{ $attributes->merge([ + 'type' => $type, + 'href' => $href, + 'class' => "{$defaultClasses} {$levelClasses}", +]) }}> + {{ $slot }} + diff --git a/resources/views/components/input/group.blade.php b/resources/views/components/input/group.blade.php new file mode 100644 index 0000000..0fbe191 --- /dev/null +++ b/resources/views/components/input/group.blade.php @@ -0,0 +1,26 @@ +@props([ + 'label' => false, + 'model' => false +]) + + diff --git a/resources/views/components/input/radio.blade.php b/resources/views/components/input/radio.blade.php new file mode 100644 index 0000000..9d95b3b --- /dev/null +++ b/resources/views/components/input/radio.blade.php @@ -0,0 +1,56 @@ +@props([ + 'value', + 'label' => false, + 'description' => false, +]) + +@php + $model = $attributes->wire('model')->value; +@endphp + +
whereStartsWith(['wire:key']) }} +> +
+ whereStartsWith(['wire', 'x']) }} + value="{{ $value }}" + :id="$id('input')" + type="radio" + + @class([ + 'w-4 h-4 text-indigo-600 rounded read-only:ring-opacity-50', + 'border-gray-300 ring-gray-300 focus:ring-indigo-600' => $errors->missing($model), + 'border-red-400 ring-red-400 focus:ring-red-500' => $errors->has($model), + ]) + + @error($model) + aria-invalid="true" + aria-description="{{ $message }}" + @enderror + > +
+ +
+ @if ($label) + + @endif + + @if ($description) +

+ {{ $description }} +

+ @endif +
+
diff --git a/resources/views/components/input/text.blade.php b/resources/views/components/input/text.blade.php new file mode 100644 index 0000000..260ca77 --- /dev/null +++ b/resources/views/components/input/text.blade.php @@ -0,0 +1,28 @@ +@props([ + 'label' => false, +]) + +@php + $model = $attributes->wire('model')->value +@endphp + + + + $errors->missing($model), + 'text-red-700 ring-red-400 placeholder:text-red-300 focus:ring-red-500' => $errors->has($model), + $attributes->get('class') + ]) + + @error($model) + aria-invalid="true" + aria-description="{{ $message }}" + @enderror + /> + + diff --git a/resources/views/components/layouts/app.blade.php b/resources/views/components/layouts/app.blade.php index aab25f6..69570d8 100644 --- a/resources/views/components/layouts/app.blade.php +++ b/resources/views/components/layouts/app.blade.php @@ -16,6 +16,8 @@ {{ $slot }} + + @livewireScriptConfig diff --git a/resources/views/components/message/index.blade.php b/resources/views/components/message/index.blade.php index c7bbd52..bfb13b9 100644 --- a/resources/views/components/message/index.blade.php +++ b/resources/views/components/message/index.blade.php @@ -46,8 +46,18 @@ class="mx-1 text-base font-normal text-neutral-400" -

+

+ To: {{ $message->parsed->getHeaderValue(Header::TO) }} + + + - {{ $message->size }} - {{ $message->created_at->format('Y/m/d g:i A') }} +

diff --git a/resources/views/components/support/code.blade.php b/resources/views/components/support/code.blade.php new file mode 100644 index 0000000..1ab230a --- /dev/null +++ b/resources/views/components/support/code.blade.php @@ -0,0 +1 @@ +
class('whitespace-pre-line rounded bg-neutral-100 p-4 font-mono text-sm leading-normal') }}>{{ $slot }}
diff --git a/resources/views/components/support/config.blade.php b/resources/views/components/support/config.blade.php new file mode 100644 index 0000000..4562859 --- /dev/null +++ b/resources/views/components/support/config.blade.php @@ -0,0 +1,86 @@ +@use(\App\Enums\Framework) + +@props([ + 'framework' => null, +]) + +
+ @switch($framework) + {{-- LARAVEL CONFIG --}} + @case (Framework::Laravel) + Add to your .env file: + + + MAIL_MAILER=smtp + MAIL_HOST=127.0.0.1 + MAIL_PORT=2525 + MAIL_PASSWORD=null + MAIL_ENCRYPTION=null + + @break + + {{-- SYMFONY CONFIG --}} + @case(Framework::Symfony) + Add to your .env file: + + + MAILER_URL=smtp://127.0.0.1:2525?encryption=null&auth_mode=login&password= + + @break + + {{-- WORDPRESS CONFIG --}} + @case(Framework::Wordpress) + + function phost($phpmailer) { +     $phpmailer->isSMTP(); +     $phpmailer->Host = '127.0.0.1'; +     $phpmailer->SMTPAuth = true; +     $phpmailer->Port = 2525; +     $phpmailer->Password = ''; + } + + add_action('phpmailer_init', 'phost'); + + @break + + {{-- YII CONFIG --}} + @case(Framework::Yii) + Add to your config file: + + + 'components' => [ +     ... +     'mail' => [ +         'class' => 'yii\swiftmailer\Mailer', +         'transport' => [ +             'class' => 'Swift_SmtpTransport', +             'host' => '127.0.0.1', +             'password' => '', +             'port' => '2525', +             'encryption' => 'tls', +         ], +     ], +     ... + ], + + @break + + {{-- RAILS CONFIG --}} + @case(Framework::Rails) + In config/environments/*.rb specify ActionMailer defaults for your development or staging servers: + + + config.action_mailer.delivery_method = :smtp + config.action_mailer.smtp_settings = { +     :user_name => 'Mailbox-Name', +     :password => '', +     :address => '127.0.0.1', +     :domain => '127.0.0.1', +     :port => '2525', +     :authentication => :plain + } + + @break + @endswitch + +
diff --git a/resources/views/components/support/dialog-provider.blade.php b/resources/views/components/support/dialog-provider.blade.php new file mode 100644 index 0000000..912efa7 --- /dev/null +++ b/resources/views/components/support/dialog-provider.blade.php @@ -0,0 +1,7 @@ +
+ +
diff --git a/resources/views/components/support/divider.blade.php b/resources/views/components/support/divider.blade.php new file mode 100644 index 0000000..5dcf731 --- /dev/null +++ b/resources/views/components/support/divider.blade.php @@ -0,0 +1 @@ +
diff --git a/resources/views/components/support/tab.blade.php b/resources/views/components/support/tab.blade.php new file mode 100644 index 0000000..2fb1aea --- /dev/null +++ b/resources/views/components/support/tab.blade.php @@ -0,0 +1 @@ +     diff --git a/resources/views/livewire/inbox.blade.php b/resources/views/livewire/inbox.blade.php index 3864770..563857e 100644 --- a/resources/views/livewire/inbox.blade.php +++ b/resources/views/livewire/inbox.blade.php @@ -3,16 +3,16 @@ x-on:keydown.meta.r.prevent=" window.location.href = '/{{ $this->message?->id }}'; " - class="flex h-screen w-full" + class="flex w-full h-screen" > -
+
@@ -56,13 +56,31 @@ class="w-full" @else
+ + + + settings +
@endif + {{-- Dialogs --}} + + +

Configuration

+ + +
+
+ diff --git a/resources/views/livewire/settings.blade.php b/resources/views/livewire/settings.blade.php new file mode 100644 index 0000000..2ae1278 --- /dev/null +++ b/resources/views/livewire/settings.blade.php @@ -0,0 +1,44 @@ +@use(\App\Enums\Framework) + +
+ {{--

Choose a framework to connect to PHOST

--}} + +
+ @foreach (Framework::cases() as $framework) + + @endforeach +
+ + + + + + {{--

Choose a SMTP port

--}} + +
+ + + + + Cancel + + + + Save + + + + +
From 120d74eb09265808aff6f8bc86f2e529ea3f88e4 Mon Sep 17 00:00:00 2001 From: Willem Leuverink Date: Thu, 25 Apr 2024 09:37:43 +0200 Subject: [PATCH 45/48] boyscouting --- app/Livewire/Concerns/SmtpSupervisor.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/app/Livewire/Concerns/SmtpSupervisor.php b/app/Livewire/Concerns/SmtpSupervisor.php index e92b1ec..8a78f47 100644 --- a/app/Livewire/Concerns/SmtpSupervisor.php +++ b/app/Livewire/Concerns/SmtpSupervisor.php @@ -30,12 +30,15 @@ function () { ->onMessageReceived(function ($content) { $message = Message::fromContent($content); + MessageReceived::dispatch($message); - Notification::title(self::NOTIFICATION_TITLE) - ->message($message->parsed->getHeaderValue(HeaderConsts::SUBJECT)) - ->show(); + // Running as NativePHP app. Send out system notifications + if (config('nativephp-internal.running')) { - MessageReceived::dispatch($message); + Notification::title(self::NOTIFICATION_TITLE) + ->message($message->parsed->getHeaderValue(HeaderConsts::SUBJECT)) + ->show(); + } })->serve(); }, From fa15ad1d535aea9a692a8e6c623d238f281c7e5a Mon Sep 17 00:00:00 2001 From: Willem Leuverink Date: Thu, 25 Apr 2024 11:41:14 +0200 Subject: [PATCH 46/48] make settings configurable --- app/Livewire/Concerns/Config.php | 18 + app/Livewire/Concerns/SmtpSupervisor.php | 5 +- app/Livewire/Settings.php | 23 + app/Settings/Config.php | 15 + composer.json | 1 + composer.lock | 560 +++++++++++------- config/settings.php | 96 +++ ...022_12_14_083707_create_settings_table.php | 24 + .../settings/2024_04_25_074736_config.php | 11 + package-lock.json | 22 + package.json | 1 + .../views/components/input/radio.blade.php | 14 +- .../views/components/message/index.blade.php | 7 + .../views/components/support/config.blade.php | 11 +- resources/views/livewire/inbox.blade.php | 10 +- resources/views/livewire/settings.blade.php | 24 +- tailwind.config.js | 4 +- 17 files changed, 610 insertions(+), 236 deletions(-) create mode 100644 app/Livewire/Concerns/Config.php create mode 100644 app/Settings/Config.php create mode 100644 config/settings.php create mode 100644 database/migrations/2022_12_14_083707_create_settings_table.php create mode 100644 database/settings/2024_04_25_074736_config.php diff --git a/app/Livewire/Concerns/Config.php b/app/Livewire/Concerns/Config.php new file mode 100644 index 0000000..eca14a9 --- /dev/null +++ b/app/Livewire/Concerns/Config.php @@ -0,0 +1,18 @@ +config->port) ->onMessageReceived(function ($content) { $message = Message::fromContent($content); diff --git a/app/Livewire/Settings.php b/app/Livewire/Settings.php index a143fa8..d390ab3 100644 --- a/app/Livewire/Settings.php +++ b/app/Livewire/Settings.php @@ -4,12 +4,35 @@ use Livewire\Component; use App\Enums\Framework; +use App\Livewire\Concerns\Config; use Livewire\Attributes\Computed; +use Livewire\Attributes\Validate; +use App\Livewire\Concerns\SmtpSupervisor; class Settings extends Component { + use Config; + use SmtpSupervisor; + public ?string $framework = 'Laravel'; + #[Validate('required|numeric|min_digits:4|starts_with:25')] + public int $port; + + public function mount() + { + $this->fill($this->config->toArray()); + } + + public function save() + { + $validated = $this->validate(); + $this->config->fill($validated)->save(); + + // Start the SMTP server with updated port nr + $this->supervisor(); + } + #[Computed()] public function selectedFramework(): ?Framework { diff --git a/app/Settings/Config.php b/app/Settings/Config.php new file mode 100644 index 0000000..a78c2e2 --- /dev/null +++ b/app/Settings/Config.php @@ -0,0 +1,15 @@ + [ + Preferences::class, + ], + + /* + * The path where the settings classes will be created. + */ + 'setting_class_path' => app_path('Settings'), + + /* + * In these directories settings migrations will be stored and ran when migrating. A settings + * migration created via the make:settings-migration command will be stored in the first path or + * a custom defined path when running the command. + */ + 'migrations_paths' => [ + database_path('settings'), + ], + + /* + * When no repository was set for a settings class the following repository + * will be used for loading and saving settings. + */ + 'default_repository' => 'database', + + /* + * Settings will be stored and loaded from these repositories. + */ + 'repositories' => [ + 'database' => [ + 'type' => Spatie\LaravelSettings\SettingsRepositories\DatabaseSettingsRepository::class, + 'model' => null, + 'table' => null, + 'connection' => null, + ], + 'redis' => [ + 'type' => Spatie\LaravelSettings\SettingsRepositories\RedisSettingsRepository::class, + 'connection' => null, + 'prefix' => null, + ], + ], + + /* + * The encoder and decoder will determine how settings are stored and + * retrieved in the database. By default, `json_encode` and `json_decode` + * are used. + */ + 'encoder' => null, + 'decoder' => null, + + /* + * The contents of settings classes can be cached through your application, + * settings will be stored within a provided Laravel store and can have an + * additional prefix. + */ + 'cache' => [ + 'enabled' => env('SETTINGS_CACHE_ENABLED', false), + 'store' => null, + 'prefix' => null, + 'ttl' => null, + ], + + /* + * These global casts will be automatically used whenever a property within + * your settings class isn't a default PHP type. + */ + 'global_casts' => [ + DateTimeInterface::class => Spatie\LaravelSettings\SettingsCasts\DateTimeInterfaceCast::class, + DateTimeZone::class => Spatie\LaravelSettings\SettingsCasts\DateTimeZoneCast::class, + // Spatie\DataTransferObject\DataTransferObject::class => Spatie\LaravelSettings\SettingsCasts\DtoCast::class, + Spatie\LaravelData\Data::class => Spatie\LaravelSettings\SettingsCasts\DataCast::class, + ], + + /* + * The package will look for settings in these paths and automatically + * register them. + */ + 'auto_discover_settings' => [ + app_path('Settings'), + ], + + /* + * Automatically discovered settings classes can be cached, so they don't + * need to be searched each time the application boots up. + */ + 'discovered_settings_cache_path' => base_path('bootstrap/cache'), +]; diff --git a/database/migrations/2022_12_14_083707_create_settings_table.php b/database/migrations/2022_12_14_083707_create_settings_table.php new file mode 100644 index 0000000..9b14b86 --- /dev/null +++ b/database/migrations/2022_12_14_083707_create_settings_table.php @@ -0,0 +1,24 @@ +id(); + + $table->string('group'); + $table->string('name'); + $table->boolean('locked')->default(false); + $table->json('payload'); + + $table->timestamps(); + + $table->unique(['group', 'name']); + }); + } +}; diff --git a/database/settings/2024_04_25_074736_config.php b/database/settings/2024_04_25_074736_config.php new file mode 100644 index 0000000..58ee555 --- /dev/null +++ b/database/settings/2024_04_25_074736_config.php @@ -0,0 +1,11 @@ +migrator->add('config.port', 2525); + } +}; diff --git a/package-lock.json b/package-lock.json index 52aac0f..0ace50d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,6 +9,7 @@ }, "devDependencies": { "@shufo/prettier-plugin-blade": "^1.14.1", + "@tailwindcss/forms": "^0.5.7", "autoprefixer": "^10.4.18", "axios": "^1.6.4", "laravel-vite-plugin": "^1.0", @@ -767,6 +768,18 @@ "node": ">= 14.0.0" } }, + "node_modules/@tailwindcss/forms": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/@tailwindcss/forms/-/forms-0.5.7.tgz", + "integrity": "sha512-QE7X69iQI+ZXwldE+rzasvbJiyV/ju1FGHH0Qn2W3FKbuYtqp8LKcy6iSw79fVUT5/Vvf+0XgLCeYVG+UV6hOw==", + "dev": true, + "dependencies": { + "mini-svg-data-uri": "^1.2.3" + }, + "peerDependencies": { + "tailwindcss": ">=3.0.0 || >= 3.0.0-alpha.1" + } + }, "node_modules/@types/estree": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.5.tgz", @@ -1973,6 +1986,15 @@ "node": ">= 0.6" } }, + "node_modules/mini-svg-data-uri": { + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/mini-svg-data-uri/-/mini-svg-data-uri-1.4.4.tgz", + "integrity": "sha512-r9deDe9p5FJUPZAk3A59wGH7Ii9YrjjWw0jmw/liSbHl2CHiyXj6FcDXDu2K3TjVAXqiJdaw3xxwlZZr9E6nHg==", + "dev": true, + "bin": { + "mini-svg-data-uri": "cli.js" + } + }, "node_modules/minimatch": { "version": "9.0.4", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.4.tgz", diff --git a/package.json b/package.json index e8f66ee..d978641 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,7 @@ }, "devDependencies": { "@shufo/prettier-plugin-blade": "^1.14.1", + "@tailwindcss/forms": "^0.5.7", "autoprefixer": "^10.4.18", "axios": "^1.6.4", "laravel-vite-plugin": "^1.0", diff --git a/resources/views/components/input/radio.blade.php b/resources/views/components/input/radio.blade.php index 9d95b3b..060910e 100644 --- a/resources/views/components/input/radio.blade.php +++ b/resources/views/components/input/radio.blade.php @@ -1,8 +1,4 @@ -@props([ - 'value', - 'label' => false, - 'description' => false, -]) +@props(['value', 'label' => false, 'description' => false]) @php $model = $attributes->wire('model')->value; @@ -13,15 +9,15 @@ class="relative flex items-center" {{ $attributes->whereStartsWith(['wire:key']) }} > -
+
whereStartsWith(['wire', 'x']) }} value="{{ $value }}" :id="$id('input')" type="radio" - + @class([ - 'w-4 h-4 text-indigo-600 rounded read-only:ring-opacity-50', + 'w-4 h-4 text-indigo-600 rounded-full read-only:ring-opacity-50', 'border-gray-300 ring-gray-300 focus:ring-indigo-600' => $errors->missing($model), 'border-red-400 ring-red-400 focus:ring-red-500' => $errors->has($model), ]) @@ -33,7 +29,7 @@ class="relative flex items-center" >
-
+
@if ($label)
{{-- tab list --}} diff --git a/resources/views/components/support/config.blade.php b/resources/views/components/support/config.blade.php index 4562859..e212d0a 100644 --- a/resources/views/components/support/config.blade.php +++ b/resources/views/components/support/config.blade.php @@ -2,6 +2,7 @@ @props([ 'framework' => null, + 'port' => 2525, ])
@@ -13,7 +14,7 @@ MAIL_MAILER=smtp MAIL_HOST=127.0.0.1 - MAIL_PORT=2525 + MAIL_PORT={{ $port }} MAIL_PASSWORD=null MAIL_ENCRYPTION=null @@ -24,7 +25,7 @@ Add to your .env file: - MAILER_URL=smtp://127.0.0.1:2525?encryption=null&auth_mode=login&password= + MAILER_URL=smtp://127.0.0.1:{{ $port }}?encryption=null&auth_mode=login&password= @break @@ -35,7 +36,7 @@ function phost($phpmailer) {     $phpmailer->isSMTP();     $phpmailer->Host = '127.0.0.1';     $phpmailer->SMTPAuth = true; -     $phpmailer->Port = 2525; +     $phpmailer->Port = {{ $port }};     $phpmailer->Password = ''; } @@ -56,7 +57,7 @@ function phost($phpmailer) {             'class' => 'Swift_SmtpTransport',             'host' => '127.0.0.1',             'password' => '', -             'port' => '2525', +             'port' => '{{ $port }}',             'encryption' => 'tls',         ],     ], @@ -76,7 +77,7 @@ function phost($phpmailer) {     :password => '',     :address => '127.0.0.1',     :domain => '127.0.0.1', -     :port => '2525', +     :port => '{{ $port }}',     :authentication => :plain } diff --git a/resources/views/livewire/inbox.blade.php b/resources/views/livewire/inbox.blade.php index 563857e..339489a 100644 --- a/resources/views/livewire/inbox.blade.php +++ b/resources/views/livewire/inbox.blade.php @@ -3,16 +3,16 @@ x-on:keydown.meta.r.prevent=" window.location.href = '/{{ $this->message?->id }}'; " - class="flex w-full h-screen" + class="flex h-screen w-full" > -
+
@@ -56,7 +56,7 @@ class="w-full" @else
-

Configuration

+

Configuration

diff --git a/resources/views/livewire/settings.blade.php b/resources/views/livewire/settings.blade.php index 2ae1278..8b3b5b9 100644 --- a/resources/views/livewire/settings.blade.php +++ b/resources/views/livewire/settings.blade.php @@ -1,9 +1,8 @@ @use(\App\Enums\Framework)
- {{--

Choose a framework to connect to PHOST

--}} -
+
@foreach (Framework::cases() as $framework) - - - {{--

Choose a SMTP port

--}} +
- + Date: Thu, 25 Apr 2024 09:50:47 +0000 Subject: [PATCH 47/48] Dusting --- .../2022_12_14_083707_create_settings_table.php | 4 ++-- .../views/components/dialog/footer.blade.php | 2 +- .../views/components/input/group.blade.php | 16 +++++++++++----- .../views/components/input/radio.blade.php | 5 ++--- resources/views/components/input/text.blade.php | 17 ++++++++++------- 5 files changed, 26 insertions(+), 18 deletions(-) diff --git a/database/migrations/2022_12_14_083707_create_settings_table.php b/database/migrations/2022_12_14_083707_create_settings_table.php index 9b14b86..aba8ba2 100644 --- a/database/migrations/2022_12_14_083707_create_settings_table.php +++ b/database/migrations/2022_12_14_083707_create_settings_table.php @@ -1,8 +1,8 @@ +
{{ $slot }}
diff --git a/resources/views/components/input/group.blade.php b/resources/views/components/input/group.blade.php index 0fbe191..68480ae 100644 --- a/resources/views/components/input/group.blade.php +++ b/resources/views/components/input/group.blade.php @@ -1,17 +1,20 @@ @props([ 'label' => false, - 'model' => false + 'model' => false, ]) -