.PHONY: help build start clean logs stop restart update-version # Default target help: @echo "๐Ÿš€ Palmr - Available Commands:" @echo "" @echo " make build - Build Docker image with multi-platform support" @echo " make update-version - Update version in all package.json files" @echo " make start - Start the application using docker-compose" @echo " make stop - Stop all running containers" @echo " make logs - Show application logs" @echo " make clean - Clean up containers and images" @echo " make shell - Access the application container shell" @echo "" @echo "๐Ÿ“ Scripts location: ./infra/" # Build Docker image using the build script build: @echo "๐Ÿ—๏ธ Building Palmr Docker image..." @echo "๐Ÿ“ This will update version numbers in all package.json files before building" @echo "" @chmod +x ./infra/update-versions.sh @chmod +x ./infra/build-docker.sh @echo "๐Ÿ”„ Starting build process..." @./infra/build-docker.sh # Update version in all package.json files update-version: @echo "๐Ÿ”„ Updating version numbers..." @echo "๐Ÿท๏ธ Please enter the new version (e.g., v3.0.0, 3.0-beta):" @read -p "Version: " VERSION; \ if [ -z "$$VERSION" ]; then \ echo "โŒ Error: Version cannot be empty"; \ exit 1; \ fi; \ chmod +x ./infra/update-versions.sh; \ ./infra/update-versions.sh "$$VERSION" # Start the application start: @echo "๐Ÿš€ Starting Palmr application..." @docker-compose up -d # Stop the application stop: @echo "๐Ÿ›‘ Stopping Palmr application..." @docker-compose down # Show logs logs: @echo "๐Ÿ“‹ Showing Palmr logs..." @docker-compose logs -f # Clean up containers and images clean: @echo "๐Ÿงน Cleaning up Docker containers and images..." @docker-compose down -v @docker system prune -f @echo "โœ… Cleanup completed!" # Access container shell shell: @echo "๐Ÿš Accessing Palmr container shell..." @docker-compose exec palmr /bin/sh