Skip to content

Modular logistics and supply chain operating system (LSOS)

v0.7.4 ~ new docker install script, added logic condition property shortcut keys

Ronald A. Richardsonebbc4b2bf808
diff --git a/RELEASE.md b/RELEASE.md
index 5fc02456..66f53508 100644
--- a/RELEASE.md
+++ b/RELEASE.md
@@ -1,12 +1,16 @@
-# πŸš€ Fleetbase v0.7.3 β€” 2025-05-24
+# πŸš€ Fleetbase v0.7.4 β€” 2025-05-26
-> β€œHotfix: route optimization without driver, fleetbase seeder command”
+> β€œAdded an official docker install script”
+
+---
+
+## ✨ Highlights
+- Added logic condition property shortcuts for `pickup`, `dropoff`, and `currentWaypoint` (with aliases `waypoint` and `currentWaypointMarker`)
---
## πŸ› Fixes
-- Improved the Fleetbase seeder command
-- Patched route optimization to work without driver as starting position
+- Patched: Saving Fleet-Ops notification settings
---
@@ -24,8 +28,7 @@ git pull origin main --no-rebase
docker compose down && docker compose up -d
# Run deploy script
-docker exec -ti fleetbase-application-1 bash
-sh deploy.sh
+docker compose exec application bash -c "./deploy.sh"
```
## Need help?
diff --git a/api/composer.json b/api/composer.json
index f23c9659..949cfbbf 100644
--- a/api/composer.json
+++ b/api/composer.json
@@ -10,8 +10,8 @@
"require": {
"php": "^8.0",
"appstract/laravel-opcache": "^4.0",
- "fleetbase/core-api": "^1.6.9",
- "fleetbase/fleetops-api": "^0.6.11",
+ "fleetbase/core-api": "^1.6.10",
+ "fleetbase/fleetops-api": "^0.6.12",
"fleetbase/registry-bridge": "^0.0.19",
"fleetbase/storefront-api": "^0.4.0",
"guzzlehttp/guzzle": "^7.0.1",
diff --git a/api/composer.lock b/api/composer.lock
index 73790f53..e230cc78 100644
--- a/api/composer.lock
+++ b/api/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": "a51714b75e969ba9cdf140491b8a47ea",
+ "content-hash": "e426698e09c08acc747b4274abd5639a",
"packages": [
{
"name": "appstract/laravel-opcache",
@@ -2436,16 +2436,16 @@
},
{
"name": "fleetbase/core-api",
- "version": "1.6.9",
+ "version": "1.6.10",
"source": {
"type": "git",
"url": "https://github.com/fleetbase/core-api.git",
- "reference": "63f68ae083f09d9397b78e19b2cad31d1dc9dbc3"
+ "reference": "a551ab80f8f67b2e463f5583015a55d2d68d3725"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/fleetbase/core-api/zipball/63f68ae083f09d9397b78e19b2cad31d1dc9dbc3",
- "reference": "63f68ae083f09d9397b78e19b2cad31d1dc9dbc3",
+ "url": "https://api.github.com/repos/fleetbase/core-api/zipball/a551ab80f8f67b2e463f5583015a55d2d68d3725",
+ "reference": "a551ab80f8f67b2e463f5583015a55d2d68d3725",
"shasum": ""
},
"require": {
@@ -2530,22 +2530,22 @@
],
"support": {
"issues": "https://github.com/fleetbase/core-api/issues",
- "source": "https://github.com/fleetbase/core-api/tree/v1.6.9"
+ "source": "https://github.com/fleetbase/core-api/tree/v1.6.10"
},
- "time": "2025-05-24T04:54:38+00:00"
+ "time": "2025-05-26T05:56:43+00:00"
},
{
"name": "fleetbase/fleetops-api",
- "version": "0.6.11",
+ "version": "0.6.12",
"source": {
"type": "git",
"url": "https://github.com/fleetbase/fleetops.git",
- "reference": "7c8e38204dfcd6e63860f88a3b9e58201cfa730f"
+ "reference": "d9503fd1629263f6d106930822db5aeff7c39141"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/fleetbase/fleetops/zipball/7c8e38204dfcd6e63860f88a3b9e58201cfa730f",
- "reference": "7c8e38204dfcd6e63860f88a3b9e58201cfa730f",
+ "url": "https://api.github.com/repos/fleetbase/fleetops/zipball/d9503fd1629263f6d106930822db5aeff7c39141",
+ "reference": "d9503fd1629263f6d106930822db5aeff7c39141",
"shasum": ""
},
"require": {
@@ -2619,9 +2619,9 @@
],
"support": {
"issues": "https://github.com/fleetbase/fleetops/issues",
- "source": "https://github.com/fleetbase/fleetops/tree/v0.6.11"
+ "source": "https://github.com/fleetbase/fleetops/tree/v0.6.12"
},
- "time": "2025-05-24T04:52:27+00:00"
+ "time": "2025-05-26T05:59:21+00:00"
},
{
"name": "fleetbase/laravel-mysql-spatial",
@@ -12134,16 +12134,16 @@
},
{
"name": "symfony/deprecation-contracts",
- "version": "v3.5.1",
+ "version": "v3.6.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/deprecation-contracts.git",
- "reference": "74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6"
+ "reference": "63afe740e99a13ba87ec199bb07bbdee937a5b62"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6",
- "reference": "74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6",
+ "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/63afe740e99a13ba87ec199bb07bbdee937a5b62",
+ "reference": "63afe740e99a13ba87ec199bb07bbdee937a5b62",
"shasum": ""
},
"require": {
@@ -12156,7 +12156,7 @@
"name": "symfony/contracts"
},
"branch-alias": {
- "dev-main": "3.5-dev"
+ "dev-main": "3.6-dev"
}
},
"autoload": {
@@ -12181,7 +12181,7 @@
"description": "A generic function and convention to trigger deprecation notices",
"homepage": "https://symfony.com",
"support": {
- "source": "https://github.com/symfony/deprecation-contracts/tree/v3.5.1"
+ "source": "https://github.com/symfony/deprecation-contracts/tree/v3.6.0"
},
"funding": [
{
@@ -12197,7 +12197,7 @@
"type": "tidelift"
}
],
- "time": "2024-09-25T14:20:29+00:00"
+ "time": "2024-09-25T14:21:43+00:00"
},
{
"name": "symfony/error-handler",
@@ -12356,16 +12356,16 @@
},
{
"name": "symfony/event-dispatcher-contracts",
- "version": "v3.5.1",
+ "version": "v3.6.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/event-dispatcher-contracts.git",
- "reference": "7642f5e970b672283b7823222ae8ef8bbc160b9f"
+ "reference": "59eb412e93815df44f05f342958efa9f46b1e586"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/7642f5e970b672283b7823222ae8ef8bbc160b9f",
- "reference": "7642f5e970b672283b7823222ae8ef8bbc160b9f",
+ "url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/59eb412e93815df44f05f342958efa9f46b1e586",
+ "reference": "59eb412e93815df44f05f342958efa9f46b1e586",
"shasum": ""
},
"require": {
@@ -12379,7 +12379,7 @@
"name": "symfony/contracts"
},
"branch-alias": {
- "dev-main": "3.5-dev"
+ "dev-main": "3.6-dev"
}
},
"autoload": {
@@ -12412,7 +12412,7 @@
"standards"
],
"support": {
- "source": "https://github.com/symfony/event-dispatcher-contracts/tree/v3.5.1"
+ "source": "https://github.com/symfony/event-dispatcher-contracts/tree/v3.6.0"
},
"funding": [
{
@@ -12428,7 +12428,7 @@
"type": "tidelift"
}
],
- "time": "2024-09-25T14:20:29+00:00"
+ "time": "2024-09-25T14:21:43+00:00"
},
{
"name": "symfony/finder",
@@ -12591,16 +12591,16 @@
},
{
"name": "symfony/http-client-contracts",
- "version": "v3.5.2",
+ "version": "v3.6.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/http-client-contracts.git",
- "reference": "ee8d807ab20fcb51267fdace50fbe3494c31e645"
+ "reference": "75d7043853a42837e68111812f4d964b01e5101c"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/http-client-contracts/zipball/ee8d807ab20fcb51267fdace50fbe3494c31e645",
- "reference": "ee8d807ab20fcb51267fdace50fbe3494c31e645",
+ "url": "https://api.github.com/repos/symfony/http-client-contracts/zipball/75d7043853a42837e68111812f4d964b01e5101c",
+ "reference": "75d7043853a42837e68111812f4d964b01e5101c",
"shasum": ""
},
"require": {
@@ -12613,7 +12613,7 @@
"name": "symfony/contracts"
},
"branch-alias": {
- "dev-main": "3.5-dev"
+ "dev-main": "3.6-dev"
}
},
"autoload": {
@@ -12649,7 +12649,7 @@
"standards"
],
"support": {
- "source": "https://github.com/symfony/http-client-contracts/tree/v3.5.2"
+ "source": "https://github.com/symfony/http-client-contracts/tree/v3.6.0"
},
"funding": [
{
@@ -12665,7 +12665,7 @@
"type": "tidelift"
}
],
- "time": "2024-12-07T08:49:48+00:00"
+ "time": "2025-04-29T11:18:49+00:00"
},
{
"name": "symfony/http-foundation",
@@ -14438,16 +14438,16 @@
},
{
"name": "symfony/service-contracts",
- "version": "v3.5.1",
+ "version": "v3.6.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/service-contracts.git",
- "reference": "e53260aabf78fb3d63f8d79d69ece59f80d5eda0"
+ "reference": "f021b05a130d35510bd6b25fe9053c2a8a15d5d4"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/service-contracts/zipball/e53260aabf78fb3d63f8d79d69ece59f80d5eda0",
- "reference": "e53260aabf78fb3d63f8d79d69ece59f80d5eda0",
+ "url": "https://api.github.com/repos/symfony/service-contracts/zipball/f021b05a130d35510bd6b25fe9053c2a8a15d5d4",
+ "reference": "f021b05a130d35510bd6b25fe9053c2a8a15d5d4",
"shasum": ""
},
"require": {
@@ -14465,7 +14465,7 @@
"name": "symfony/contracts"
},
"branch-alias": {
- "dev-main": "3.5-dev"
+ "dev-main": "3.6-dev"
}
},
"autoload": {
@@ -14501,7 +14501,7 @@
"standards"
],
"support": {
- "source": "https://github.com/symfony/service-contracts/tree/v3.5.1"
+ "source": "https://github.com/symfony/service-contracts/tree/v3.6.0"
},
"funding": [
{
@@ -14517,7 +14517,7 @@
"type": "tidelift"
}
],
- "time": "2024-09-25T14:20:29+00:00"
+ "time": "2025-04-25T09:37:31+00:00"
},
{
"name": "symfony/string",
@@ -14703,16 +14703,16 @@
},
{
"name": "symfony/translation-contracts",
- "version": "v3.5.1",
+ "version": "v3.6.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/translation-contracts.git",
- "reference": "4667ff3bd513750603a09c8dedbea942487fb07c"
+ "reference": "df210c7a2573f1913b2d17cc95f90f53a73d8f7d"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/translation-contracts/zipball/4667ff3bd513750603a09c8dedbea942487fb07c",
- "reference": "4667ff3bd513750603a09c8dedbea942487fb07c",
+ "url": "https://api.github.com/repos/symfony/translation-contracts/zipball/df210c7a2573f1913b2d17cc95f90f53a73d8f7d",
+ "reference": "df210c7a2573f1913b2d17cc95f90f53a73d8f7d",
"shasum": ""
},
"require": {
@@ -14725,7 +14725,7 @@
"name": "symfony/contracts"
},
"branch-alias": {
- "dev-main": "3.5-dev"
+ "dev-main": "3.6-dev"
}
},
"autoload": {
@@ -14761,7 +14761,7 @@
"standards"
],
"support": {
- "source": "https://github.com/symfony/translation-contracts/tree/v3.5.1"
+ "source": "https://github.com/symfony/translation-contracts/tree/v3.6.0"
},
"funding": [
{
@@ -14777,7 +14777,7 @@
"type": "tidelift"
}
],
- "time": "2024-09-25T14:20:29+00:00"
+ "time": "2024-09-27T08:32:26+00:00"
},
{
"name": "symfony/type-info",
diff --git a/console/package.json b/console/package.json
index 181b0f93..5b2e4efb 100644
--- a/console/package.json
+++ b/console/package.json
@@ -1,6 +1,6 @@
{
"name": "@fleetbase/console",
- "version": "0.7.3",
+ "version": "0.7.4",
"private": true,
"description": "Modular logistics and supply chain operating system (LSOS)",
"repository": "https://github.com/fleetbase/fleetbase",
@@ -33,7 +33,7 @@
"@fleetbase/ember-core": "latest",
"@fleetbase/ember-ui": "latest",
"@fleetbase/fleetops-data": "latest",
- "@fleetbase/fleetops-engine": "^0.6.11",
+ "@fleetbase/fleetops-engine": "^0.6.12",
"@fleetbase/iam-engine": "^0.1.3",
"@fleetbase/leaflet-routing-machine": "^3.2.16",
"@fleetbase/registry-bridge-engine": "^0.0.19",
diff --git a/console/pnpm-lock.yaml b/console/pnpm-lock.yaml
index 71a34767..ec0c22f5 100644
--- a/console/pnpm-lock.yaml
+++ b/console/pnpm-lock.yaml
@@ -24,13 +24,13 @@ importers:
'@fleetbase/ember-ui':
specifier: latest
'@fleetbase/fleetops-data':
specifier: latest
'@fleetbase/fleetops-engine':
- specifier: ^0.6.11
+ specifier: ^0.6.12
'@fleetbase/iam-engine':
specifier: ^0.1.3
@@ -1489,16 +1489,16 @@ packages:
resolution: {integrity: sha512-xarwJayvKKqBx1DHOjcuU968Y/v5bKyPTz9ruV9sQ/tBKKaokPy9IvF/P2O0rv0+O8exndATyn7k4qsnYFZunQ==}
engines: {node: '>= 18'}
- '@fleetbase/[email protected]':
- resolution: {integrity: sha512-Synwt8bEKjsvcwSgMkSl3aq21V9s9B4XZvrQb/uxx1Ps378Pffugn2DrHLny+rXR7cFbcr34RWLy78/zw9bTdw==}
+ '@fleetbase/[email protected]':
+ resolution: {integrity: sha512-/efmMSA5k2dLI1Iq0xmjo1dMlAnuGEQVJAaaCCMhhhc4T7e5r2HlWXoHgZopTOM3y2R48O7cUxmkMQcxtaAvnA==}
engines: {node: '>= 18'}
'@fleetbase/[email protected]':
resolution: {integrity: sha512-f/265ud0+nNERmjv7f1GHS34PduF902GAQgsTL1tkf26j7GthScmFI6UuRs5+2IItK+8ZchfRxYBUhPqyiTfbA==}
engines: {node: '>= 18'}
- '@fleetbase/[email protected]':
- resolution: {integrity: sha512-0QG18xnOq4wMri9/lbpY1s4r/hb+hALlNiSFK4Ml2DVocPUVbwu9iSjQih4EuXc2Yajvi3VhkGGLyie8li3qcg==}
+ '@fleetbase/[email protected]':
+ resolution: {integrity: sha512-GfvtsZVqohepU0eTCPe3rJFMdq+RYmyymEd41VwKul94CN76YVuznkQW15nd8oZjrlFdOH2Z4cfFZsUEHjEkKw==}
engines: {node: '>= 18'}
peerDependencies:
ember-engines: ^0.9.0
@@ -1720,8 +1720,8 @@ packages:
resolution: {integrity: sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==}
deprecated: Use @eslint/object-schema instead
- '@inquirer/[email protected]':
- resolution: {integrity: sha512-eOg92lvrn/aRUqbxRyvpEWnrvRuTYRifixHkYVpJiygTgVSBIHDqLh0SrMQXkafvULg3ck11V7xvR+zcgvpHFw==}
+ '@inquirer/[email protected]':
+ resolution: {integrity: sha512-MJttijd8rMFcKJC8NYmprWr6hD3r9Gd9qUC0XwPNwoEPWSMVJwA2MlXxF+nhZZNMY+HXsWa+o7KY2emWYIn0jQ==}
engines: {node: '>=18'}
'@isaacs/[email protected]':
@@ -8675,8 +8675,8 @@ packages:
resolution: {integrity: sha512-lgTS3Xhv1lCOKo7SA5TjKXMjpSM4sBjNV5+q2bqesbSPs5FjGmU6jjtBSkX9b4qW87vDIsCIlUPOEhbZrMdjeQ==}
- resolution: {integrity: sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==}
+ resolution: {integrity: sha512-77R0RDmJfj9dyv5p3bM5pOHa+X8/ZkO9c7kpDstigkC4nIDobadsfSGCwB4bKhMVxqAok8tajaoR8rirM7+VFQ==}
engines: {node: '>=10.13.0'}
@@ -10345,7 +10345,7 @@ snapshots:
dependencies:
'@babel/core': 7.27.1
'@fortawesome/fontawesome-svg-core': 6.4.0
'@fortawesome/free-brands-svg-icons': 6.4.0
@@ -10424,7 +10424,7 @@ snapshots:
- utf-8-validate
- webpack
dependencies:
'@babel/core': 7.27.1
@@ -10544,11 +10544,11 @@ snapshots:
- utf-8-validate
- webpack
dependencies:
'@babel/core': 7.27.1
'@fleetbase/leaflet-routing-machine': 3.2.16
@@ -10604,7 +10604,7 @@ snapshots:
dependencies:
'@babel/core': 7.27.1
'@fortawesome/fontawesome-svg-core': 6.4.0
'@fortawesome/free-brands-svg-icons': 6.4.0
@@ -10658,7 +10658,7 @@ snapshots:
dependencies:
'@babel/core': 7.27.1
'@fortawesome/fontawesome-svg-core': 6.4.0
'@fortawesome/free-brands-svg-icons': 6.4.0
@@ -10703,7 +10703,7 @@ snapshots:
dependencies:
'@babel/core': 7.27.1
'@fortawesome/fontawesome-svg-core': 6.4.0
@@ -11073,7 +11073,7 @@ snapshots:
'@humanwhocodes/[email protected]': {}
- '@inquirer/[email protected]': {}
+ '@inquirer/[email protected]': {}
'@isaacs/[email protected]':
dependencies:
@@ -16618,7 +16618,7 @@ snapshots:
dependencies:
- '@inquirer/figures': 1.0.11
+ '@inquirer/figures': 1.0.12
ansi-escapes: 4.3.2
cli-width: 4.1.0
external-editor: 3.1.0
@@ -20236,7 +20236,7 @@ snapshots:
source-list-map: 2.0.1
source-map: 0.6.1
dependencies:
@@ -20291,7 +20291,7 @@ snapshots:
tapable: 2.2.2
terser-webpack-plugin: 5.3.14([email protected])
watchpack: 2.4.4
- webpack-sources: 3.2.3
+ webpack-sources: 3.3.0
transitivePeerDependencies:
- '@swc/core'
- esbuild
diff --git a/docker-compose.yml b/docker-compose.yml
index 80f7f4dd..fed3ad8f 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -67,6 +67,8 @@ services:
application:
image: fleetbase/fleetbase-api:latest
+ volumes:
+ - ./api/.env:/fleetbase/api/.env
environment:
ENVIRONMENT: development
DATABASE_URL: "mysql://root@database/fleetbase"
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 53ed6d2b..fc911826 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -75,7 +75,7 @@ ENV QUEUE_CONNECTION=redis
ENV CADDYFILE_PATH=/fleetbase/Caddyfile
ENV CONSOLE_PATH=/fleetbase/console
ENV OCTANE_SERVER=frankenphp
-ENV FLEETBASE_VERSION=0.7.3
+ENV FLEETBASE_VERSION=0.7.4
# Set environment
ARG ENVIRONMENT=production
diff --git a/packages/core-api b/packages/core-api
index 63f68ae0..a551ab80 160000
--- a/packages/core-api
+++ b/packages/core-api
@@ -1 +1 @@
-Subproject commit 63f68ae083f09d9397b78e19b2cad31d1dc9dbc3
+Subproject commit a551ab80f8f67b2e463f5583015a55d2d68d3725
diff --git a/packages/ember-ui b/packages/ember-ui
index af6ff8e1..db72d9ee 160000
--- a/packages/ember-ui
+++ b/packages/ember-ui
@@ -1 +1 @@
-Subproject commit af6ff8e1ebcea479ef0c257c565a9d3afd9161ee
+Subproject commit db72d9ee2965c8a97b246f2f68b394aeaf1a50f2
diff --git a/packages/fleetops b/packages/fleetops
index 7c8e3820..d9503fd1 160000
--- a/packages/fleetops
+++ b/packages/fleetops
@@ -1 +1 @@
-Subproject commit 7c8e38204dfcd6e63860f88a3b9e58201cfa730f
+Subproject commit d9503fd1629263f6d106930822db5aeff7c39141
diff --git a/scripts/docker-install.sh b/scripts/docker-install.sh
new file mode 100644
index 00000000..caa8ece5
--- /dev/null
+++ b/scripts/docker-install.sh
@@ -0,0 +1,97 @@
+#!/usr/bin/env bash
+# scripts/docker-install.sh
+# Fleetbase β€œone‑liner” Docker installer
+# --------------------------------------
+set -euo pipefail
+
+# ────────────────────────────────────────────────────────────
+# 1. Get host value (CLI arg β†’ prompt β†’ default)
+# ────────────────────────────────────────────────────────────
+if [[ $# -ge 1 && -n "$1" ]]; then
+ HOST="$1"
+else
+ read -rp "Enter host or IP address to bind to [localhost]: " HOST_INPUT
+ HOST="${HOST_INPUT:-localhost}"
+fi
+echo "➜ Using host: $HOST"
+
+# Resolve project root no matter where the script is called from
+SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
+PROJECT_ROOT="$( cd "$SCRIPT_DIR/.." && pwd )"
+cd "$PROJECT_ROOT"
+
+# ────────────────────────────────────────────────────────────
+# 2. Generate a fresh Laravel APP_KEY
+# ────────────────────────────────────────────────────────────
+if ! command -v openssl >/dev/null 2>&1; then
+ echo "βœ– openssl is required but not found. Install it and retry." >&2
+ exit 1
+fi
+APP_KEY="base64:$(openssl rand -base64 32 | tr -d '\n')"
+echo "βœ” Generated APP_KEY"
+
+# ────────────────────────────────────────────────────────────
+# 3. Ensure docker‑compose.override.yml has the right values
+# ────────────────────────────────────────────────────────────
+OVERRIDE_FILE="docker-compose.override.yml"
+
+# We’ll use yq if available (best for YAML‑safe edits)
+update_override_with_yq() {
+ yq -i "
+ .services.application.environment.APP_KEY = \"$APP_KEY\" |
+ .services.application.environment.CONSOLE_HOST = \"http://$HOST:4200\"
+ " "$OVERRIDE_FILE"
+ echo "βœ” $OVERRIDE_FILE updated (yq)"
+}
+
+# Fallback: createβ€―or append the section with plain Bash if yq isn’t installed
+create_or_append_override() {
+ cat > "$OVERRIDE_FILE" <<YML
+services:
+ application:
+ environment:
+ APP_KEY: "$APP_KEY"
+ CONSOLE_HOST: "http://$HOST:4200"
+YML
+ echo "βœ” $OVERRIDE_FILE written"
+}
+
+if [[ -f "$OVERRIDE_FILE" ]]; then
+ if command -v yq >/dev/null 2>&1; then
+ update_override_with_yq
+ else
+ # simple backup, then naive append‑or‑overwrite section
+ cp "$OVERRIDE_FILE" "${OVERRIDE_FILE}.bak.$(date +%Y%m%d%H%M%S)"
+ echo "β„ΉοΈŽ Existing $OVERRIDE_FILE backed up (no yq found β€” recreating)"
+ create_or_append_override
+ fi
+else
+ create_or_append_override
+fi
+
+# ────────────────────────────────────────────────────────────
+# 4. Update ./console/fleetbase.config.json
+# ────────────────────────────────────────────────────────────
+CONFIG_PATH="console/fleetbase.config.json"
+mkdir -p "$(dirname "$CONFIG_PATH")"
+
+cat > "$CONFIG_PATH" <<JSON
+{
+ "API_HOST": "http://$HOST:8000",
+ "SOCKETCLUSTER_HOST": "$HOST",
+ "SOCKETCLUSTER_PORT": "38000"
+}
+JSON
+echo "βœ” $CONFIG_PATH updated"
+
+# ────────────────────────────────────────────────────────────
+# 5. Start the stack & run the deploy script
+# ────────────────────────────────────────────────────────────
+echo "⏳ Starting Fleetbase containers..."
+docker compose up -d
+
+echo "⏳ Running deploy script inside the application container..."
+docker compose exec application bash -c "./deploy.sh"
+docker compose up -d
+
+echo "🏁 Fleetbase is up! API β†’ http://$HOST:8000 | Console β†’ http://$HOST:4200"
\ No newline at end of file
diff --git a/scripts/install-packages.sh b/scripts/install-packages.sh
deleted file mode 100644
index c3eb3e9e..00000000
--- a/scripts/install-packages.sh
+++ /dev/null
@@ -1,55 +0,0 @@
-#!/bin/bash
-
-# Find the root directory of your repository
-root_dir=$(git rev-parse --show-toplevel)
-
-# Check if the packages directory exists
-packages_dir="$root_dir/packages"
-if [ ! -d "$packages_dir" ]; then
- echo "Packages directory not found."
- exit 1
-fi
-
-# Initialize flags
-remove_lock=false
-remove_modules=false
-
-for arg in "$@"
-do
- case $arg in
- --remove-lock)
- remove_lock=true
- ;;
- --remove-modules)
- remove_modules=true
- ;;
- esac
-done
-
-# Navigate to the packages directory
-cd "$packages_dir"
-
-# Find all child directories and run pnpm install if package.json exists
-for dir in */; do
- if [[ -f "${dir}package.json" ]]; then
- echo "Running pnpm install in $dir"
-
- # Remove pnpm-lock.yaml if the option is set
- if [ "$remove_lock" = true ] && [ -f "${dir}pnpm-lock.yaml" ]; then
- echo "Removing pnpm-lock.yaml in $dir"
- rm "${dir}pnpm-lock.yaml"
- fi
-
- # Remove ./node_modules if the option is set
- if [ "$remove_modules" = true ] && [ -d "${dir}node_modules" ]; then
- echo "Removing /node_modules in $dir"
- rm -rf "${dir}node_modules"
- fi
-
- cd "$dir"
- pnpm install
- cd "$packages_dir" # Go back to the packages directory
- else
- echo "No package.json found in $dir, skipping..."
- fi
-done
diff --git a/scripts/update.sh b/scripts/update.sh
deleted file mode 100644
index dc233fab..00000000
--- a/scripts/update.sh
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/bin/bash
-
-# Exit the script as soon as a command fails
-set -e
-
-echo "Switching to the main branch..."
-# git checkout main
-
-echo "Updating submodules..."
-git submodule update --init --recursive
-
-echo "Updating console..."
-cd console
-git checkout main
-git pull
-cd ..
-
-echo "Building Docker images..."
-docker-compose build console
-docker-compose build application
-
-echo "Update completed. Run \`docker-compose up -d\` to launch!"