Skip to content

Modular logistics and supply chain operating system (LSOS)

includes small update to retain mysql data locally, also includes update script

Ronald A. Richardson03e6a8769694
diff --git a/.gitignore b/.gitignore
index 73bef806..bbb83cd4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -15,4 +15,6 @@ api/vendor
act.sh
composer-auth.json
packages/billing-api
-packages/billing-engine
\ No newline at end of file
+packages/billing-engine
+docker/database/*
+docker/database/mysql/*
\ No newline at end of file
diff --git a/docker-compose.yml b/docker-compose.yml
index 6961cd54..c4c23dfd 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -10,6 +10,7 @@ services:
- "3306:3306"
volumes:
- "./docker/database/:/docker-entrypoint-initdb.d/"
+ - "./docker/database/mysql:/var/lib/mysql"
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
MYSQL_DATABASE: "fleetbase"
diff --git a/update.sh b/update.sh
new file mode 100644
index 00000000..11118b6b
--- /dev/null
+++ b/update.sh
@@ -0,0 +1,22 @@
+#!/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!"