chg: pkg: remove all minio related stuff - & clean up and unificate the storage related code #16
Deploy to Production / deploy (push) Successful in 36s

This commit is contained in:
Lang
2026-10-24 18:09:58 +02:00
parent 7de1514cd9
commit 721eada72f
20 changed files with 196 additions and 595 deletions
+8 -28
View File
@@ -4,8 +4,8 @@
help:
@echo "Available commands:"
@echo " make start - Start services (storage migration runs automatically once)"
@echo " make start-build - Build and start services (storage migration runs automatically once)"
@echo " make start - Start services"
@echo " make start-build - Build and start services"
@echo " make stop - Stop running services"
@echo " make build - Build Docker images only"
@echo " make down - Stop and remove containers/networks"
@@ -19,41 +19,21 @@ help:
@echo " make test - Run PHPUnit tests"
start:
docker compose up -d db mail
@if [ -n "$$(docker compose --profile storage-migration ps -a -q minio)" ]; then \
echo "Legacy MinIO found; migrating its data to RustFS..."; \
docker compose --profile storage-migration up -d minio; \
docker compose up -d rustfs; \
docker compose --profile storage-migration up --abort-on-container-exit --exit-code-from storage_migrate storage_migrate; \
else \
echo "No legacy MinIO container found; starting RustFS only."; \
docker compose up -d rustfs; \
fi
docker compose up -d app scheduler
docker compose up -d --remove-orphans app scheduler
start-build:
composer i
bun run build
docker compose up -d --build db mail
@if [ -n "$$(docker compose --profile storage-migration ps -a -q minio)" ]; then \
echo "Legacy MinIO found; migrating its data to RustFS..."; \
docker compose --profile storage-migration up -d minio; \
docker compose up -d rustfs; \
docker compose --profile storage-migration up --build --abort-on-container-exit --exit-code-from storage_migrate storage_migrate; \
else \
echo "No legacy MinIO container found; starting RustFS only."; \
docker compose up -d rustfs; \
fi
docker compose up -d --build app scheduler
docker compose up -d --build --remove-orphans app scheduler
stop:
docker compose --profile storage-migration stop
docker compose stop
build:
docker compose --profile storage-migration build
docker compose build
down:
docker compose --profile storage-migration down
docker compose down
prune-everything:
@echo "WARNING: This will remove ALL containers, volumes, networks and images!"
@@ -62,7 +42,7 @@ prune-everything:
echo "Aborted."; \
exit 1; \
fi
docker compose --profile storage-migration down -v --rmi all --remove-orphans
docker compose down -v --rmi all --remove-orphans
mercure-jwt:
@php bin/generate-mercure-jwt.php