chg: pkg: migrate from shitty Minio to RustFS #16
Deploy to Production / deploy (push) Successful in 3m9s

This commit is contained in:
Lang
2026-10-24 17:45:19 +02:00
parent 1d8d0ac110
commit 3e90bbe5cf
10 changed files with 509 additions and 64 deletions
+28 -14
View File
@@ -4,8 +4,8 @@
help:
@echo "Available commands:"
@echo " make start - Start services and initialize MinIO (uses existing images)"
@echo " make start-build - Build, start services, and initialize MinIO"
@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 stop - Stop running services"
@echo " make build - Build Docker images only"
@echo " make down - Stop and remove containers/networks"
@@ -19,27 +19,41 @@ help:
@echo " make test - Run PHPUnit tests"
start:
docker compose up -d minio
docker compose rm -sf minio_init
docker compose run --rm minio_init
docker compose up -d
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
start-build:
composer i
bun run build
docker compose up -d --build minio
docker compose rm -sf minio_init
docker compose run --rm minio_init
docker compose up -d --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
stop:
docker compose stop
docker compose --profile storage-migration stop
build:
docker compose build
docker compose --profile storage-migration build
down:
docker compose down
docker compose --profile storage-migration down
prune-everything:
@echo "WARNING: This will remove ALL containers, volumes, networks and images!"
@@ -48,7 +62,7 @@ prune-everything:
echo "Aborted."; \
exit 1; \
fi
docker compose down -v --rmi all --remove-orphans
docker compose --profile storage-migration down -v --rmi all --remove-orphans
mercure-jwt:
@php bin/generate-mercure-jwt.php