Skip to content

Modular logistics and supply chain operating system (LSOS)

fix static issues with octane

Ronald A. Richardson41a469c98370
diff --git a/api/composer.json b/api/composer.json
index 58daca6e..b5005da4 100644
--- a/api/composer.json
+++ b/api/composer.json
@@ -9,8 +9,9 @@
"license": "AGPL-3.0-or-later",
"require": {
"php": "^8.0",
- "fleetbase/core-api": "^1.5.30",
- "fleetbase/fleetops-api": "^0.5.23",
+ "appstract/laravel-opcache": "^4.0",
+ "fleetbase/core-api": "^1.5.31",
+ "fleetbase/fleetops-api": "^0.5.24",
"fleetbase/registry-bridge": "^0.0.18",
"fleetbase/storefront-api": "^0.3.28",
"guzzlehttp/guzzle": "^7.0.1",
diff --git a/api/composer.lock b/api/composer.lock
index e5a9ab7a..76045c1c 100644
--- a/api/composer.lock
+++ b/api/composer.lock
@@ -4,8 +4,70 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
- "content-hash": "b74801901a99e0028b2663391068f74f",
+ "content-hash": "e14d62e6c692586cd7be40ac763fab31",
"packages": [
+ {
+ "name": "appstract/laravel-opcache",
+ "version": "4.0.2",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/appstract/laravel-opcache.git",
+ "reference": "d2ce88cddda6af54c14d1f9ceaaf94b54f38f9d3"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/appstract/laravel-opcache/zipball/d2ce88cddda6af54c14d1f9ceaaf94b54f38f9d3",
+ "reference": "d2ce88cddda6af54c14d1f9ceaaf94b54f38f9d3",
+ "shasum": ""
+ },
+ "require": {
+ "guzzlehttp/guzzle": "^6.3.1|^7.0",
+ "laravel/framework": ">=7.0",
+ "php": ">=7.2.5"
+ },
+ "require-dev": {
+ "orchestra/testbench": "^5.0",
+ "phpunit/phpunit": "^8.5"
+ },
+ "type": "library",
+ "extra": {
+ "laravel": {
+ "providers": [
+ "Appstract\\Opcache\\OpcacheServiceProvider"
+ ]
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Appstract\\Opcache\\": "src"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Olav van Schie",
+ "email": "[email protected]",
+ "homepage": "https://appstract.nl",
+ "role": "Developer"
+ }
+ ],
+ "description": "PHP OPcache Artisan commands for Laravel.",
+ "homepage": "https://github.com/appstract/laravel-opcache",
+ "keywords": [
+ "Opcache",
+ "appstract",
+ "laravel",
+ "php"
+ ],
+ "support": {
+ "issues": "https://github.com/appstract/laravel-opcache/issues",
+ "source": "https://github.com/appstract/laravel-opcache/tree/4.0.2"
+ },
+ "time": "2020-12-01T16:12:14+00:00"
+ },
{
"name": "aws/aws-crt-php",
"version": "v1.2.7",
@@ -2370,16 +2432,16 @@
},
{
"name": "fleetbase/core-api",
- "version": "1.5.30",
+ "version": "1.5.31",
"source": {
"type": "git",
"url": "https://github.com/fleetbase/core-api.git",
- "reference": "3e6f9ef3341ecf52ae8d6441e359ad77d8fa42b8"
+ "reference": "4bc6f0fe676396c7e377d552ee5036b54a9699a8"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/fleetbase/core-api/zipball/3e6f9ef3341ecf52ae8d6441e359ad77d8fa42b8",
- "reference": "3e6f9ef3341ecf52ae8d6441e359ad77d8fa42b8",
+ "url": "https://api.github.com/repos/fleetbase/core-api/zipball/4bc6f0fe676396c7e377d552ee5036b54a9699a8",
+ "reference": "4bc6f0fe676396c7e377d552ee5036b54a9699a8",
"shasum": ""
},
"require": {
@@ -2464,22 +2526,22 @@
],
"support": {
"issues": "https://github.com/fleetbase/core-api/issues",
- "source": "https://github.com/fleetbase/core-api/tree/v1.5.30"
+ "source": "https://github.com/fleetbase/core-api/tree/v1.5.31"
},
- "time": "2025-02-25T08:26:22+00:00"
+ "time": "2025-02-25T11:55:05+00:00"
},
{
"name": "fleetbase/fleetops-api",
- "version": "0.5.23",
+ "version": "0.5.24",
"source": {
"type": "git",
"url": "https://github.com/fleetbase/fleetops.git",
- "reference": "8d2a5230380efda22d59fa38f1f88542f4e036f3"
+ "reference": "226acb791491be916d25b28eb7fcc5deddcb8cc7"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/fleetbase/fleetops/zipball/8d2a5230380efda22d59fa38f1f88542f4e036f3",
- "reference": "8d2a5230380efda22d59fa38f1f88542f4e036f3",
+ "url": "https://api.github.com/repos/fleetbase/fleetops/zipball/226acb791491be916d25b28eb7fcc5deddcb8cc7",
+ "reference": "226acb791491be916d25b28eb7fcc5deddcb8cc7",
"shasum": ""
},
"require": {
@@ -2553,9 +2615,9 @@
],
"support": {
"issues": "https://github.com/fleetbase/fleetops/issues",
- "source": "https://github.com/fleetbase/fleetops/tree/v0.5.23"
+ "source": "https://github.com/fleetbase/fleetops/tree/v0.5.24"
},
- "time": "2025-02-25T08:26:32+00:00"
+ "time": "2025-02-25T11:56:45+00:00"
},
{
"name": "fleetbase/laravel-mysql-spatial",
diff --git a/api/config/opcache.php b/api/config/opcache.php
new file mode 100644
index 00000000..9f27377a
--- /dev/null
+++ b/api/config/opcache.php
@@ -0,0 +1,30 @@
+<?php
+
+return [
+ 'url' => env('OPCACHE_URL', config('app.url')),
+ 'prefix' => 'opcache-api',
+ 'verify' => true,
+ 'headers' => [],
+ 'directories' => [
+ base_path('app'),
+ base_path('bootstrap'),
+ base_path('public'),
+ base_path('resources'),
+ base_path('routes'),
+ base_path('storage'),
+ base_path('vendor'),
+ ],
+ 'exclude' => [
+ 'test',
+ 'Test',
+ 'tests',
+ 'Tests',
+ 'stub',
+ 'Stub',
+ 'stubs',
+ 'Stubs',
+ 'dumper',
+ 'Dumper',
+ 'Autoload',
+ ],
+];
diff --git a/console/package.json b/console/package.json
index ff837781..0b86e72e 100644
--- a/console/package.json
+++ b/console/package.json
@@ -33,7 +33,7 @@
"@fleetbase/ember-core": "latest",
"@fleetbase/ember-ui": "latest",
"@fleetbase/fleetops-data": "latest",
- "@fleetbase/fleetops-engine": "^0.5.23",
+ "@fleetbase/fleetops-engine": "^0.5.24",
"@fleetbase/iam-engine": "^0.1.3",
"@fleetbase/leaflet-routing-machine": "^3.2.16",
"@fleetbase/registry-bridge-engine": "^0.0.18",
diff --git a/console/pnpm-lock.yaml b/console/pnpm-lock.yaml
index 9788bdc9..3f749b40 100644
--- a/console/pnpm-lock.yaml
+++ b/console/pnpm-lock.yaml
@@ -29,8 +29,8 @@ importers:
specifier: latest
'@fleetbase/fleetops-engine':
- specifier: ^0.5.23
+ specifier: ^0.5.24
'@fleetbase/iam-engine':
specifier: ^0.1.3
@@ -1490,8 +1490,8 @@ packages:
resolution: {integrity: sha512-SBiL992igloYgEGMbUX65uW95nv8k32u2QSoqVm7HrWfhCwMEeHubEOA916otDkBalkHNSE6QgWigaJDMNnW4A==}
engines: {node: '>= 18'}
- '@fleetbase/[email protected]':
- resolution: {integrity: sha512-5aCVKO2Ewd5g5xJPjdwAoanwvTez5slYfluLmGN6wJJRFrHHjUoXs2AgKgz60RaSvYXFPMgYyiI3Ry9EGKO36g==}
+ '@fleetbase/[email protected]':
+ resolution: {integrity: sha512-BUuvWxjRHuGSIaZtY/njyX6/jAQ7r51+5/KfTpN2NyuUdCLrb6ma5LAE3SAytBzuRx58PY7C/194cTAmD5RS/w==}
engines: {node: '>= 18'}
peerDependencies:
ember-engines: ^0.9.0
@@ -10495,7 +10495,7 @@ snapshots:
- utf-8-validate
- webpack
dependencies:
'@babel/core': 7.26.9
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 030695df..3417c61d 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -129,9 +129,9 @@ CMD ["php", "artisan", "queue:work"]
# Application dev stage
FROM base as app-dev
ENTRYPOINT ["docker-php-entrypoint"]
-CMD ["sh", "-c", "php artisan octane:frankenphp --workers=6 --max-requests=250 --port=8000 --host=0.0.0.0 --watch"]
+CMD ["sh", "-c", "php artisan octane:frankenphp --max-requests=250 --port=8000 --host=0.0.0.0 --watch"]
# Application stage
FROM base as app
ENTRYPOINT ["/sbin/ssm-parent", "-c", ".ssm-parent.yaml", "run", "--", "docker-php-entrypoint"]
-CMD ["sh", "-c", "php artisan octane:frankenphp --workers=6 --max-requests=250 --port=8000 --host=0.0.0.0 --https --http-redirect"]
+CMD ["sh", "-c", "php artisan octane:frankenphp --max-requests=250 --port=8000 --host=0.0.0.0"]
diff --git a/packages/core-api b/packages/core-api
index 3e6f9ef3..4bc6f0fe 160000
--- a/packages/core-api
+++ b/packages/core-api
@@ -1 +1 @@
-Subproject commit 3e6f9ef3341ecf52ae8d6441e359ad77d8fa42b8
+Subproject commit 4bc6f0fe676396c7e377d552ee5036b54a9699a8
diff --git a/packages/fleetops b/packages/fleetops
index 8d2a5230..226acb79 160000
--- a/packages/fleetops
+++ b/packages/fleetops
@@ -1 +1 @@
-Subproject commit 8d2a5230380efda22d59fa38f1f88542f4e036f3
+Subproject commit 226acb791491be916d25b28eb7fcc5deddcb8cc7