Commit Graph

19 Commits

Author SHA1 Message Date
sHa
277a7e2910 Refactor: Simplify project image build process by removing local discovery logic and enhancing multi-platform support 2025-09-29 00:52:14 +03:00
sHa
5399c864a6 Refactor: Improve temporary tag generation for multi-platform builds with consistent timestamps 2025-09-28 23:20:57 +03:00
sHa
c18df29848 Refactor: Enhance multi-platform build process with improved tagging and manifest creation 2025-09-28 23:19:43 +03:00
sHa
2526957e97 Fix multi-platform image build and push workflow 2025-09-28 21:37:10 +03:00
sHa
22480245ac Refactor: Improve multi-platform build handling and local build logic in image management 2025-09-28 20:43:11 +03:00
sHa
5262d042f8 Refactor: Enhance container image management with intelligent auto-discovery and multi-architecture support 2025-09-28 19:22:40 +03:00
sHa
38cca103b1 Refactor: Enhance auto-discovery logic for Dockerfiles and Containerfiles in build operations 2025-09-28 16:10:47 +03:00
sHa
8590bbb4c2 Refactor: Add [no-cd] annotations to MySQL and container management scripts for improved clarity and consistency 2025-09-27 20:32:23 +03:00
sHa
ca35be512a Refactor: Simplify justfile structure and remove deprecated module declarations 2025-09-27 12:21:57 +03:00
sHa
fff020439d Refactor: Remove unnecessary [group] annotations from management scripts 2025-09-27 11:50:57 +03:00
sHa
d3fec4b85a 🚀 MAJOR: Full migration to Just modules with modern features
BREAKING CHANGES:
- Complete restructure to Just module architecture (requires Just 1.31.0+)
- Command syntax changed: 'just postgres-sql' → 'just postgres sql'
- Import syntax changed: import → mod declarations

NEW FEATURES:
 Module-based architecture with optional modules
 Built-in Just colors ({{RED}}, {{GREEN}}, etc.) replace custom variables
 Enhanced [confirm] attributes for all destructive operations
 Organized [group('name')] attributes for better UX
 Modern justfile with comprehensive help system
 Updated documentation with migration guide

MODULES:
📦 postgres/    - PostgreSQL operations (sql, check, create-database, etc.)
📦 mysql/       - MySQL operations (sql, check, create-user, etc.)
📦 volumes/     - Volume management (clean-all, remove, list)
📦 container/   - Container operations (start, stop, logs, shell, exec)
📦 registry/    - Registry auth (login, logout, check)
📦 images/      - Image operations (build, push, pull, tag, clean)

USAGE:
just postgres sql "SELECT version();"
just volumes clean-all
just images build myapp

This is Just Commons v2.0 - a complete modernization using all of Just's latest features.
2025-09-27 02:27:53 +03:00
sHa
c359858ee9 Replace manual confirmations with [confirm] attribute in destructive commands
- Add [confirm] attribute to all destructive operations:
  - volumes-clean-all, volumes-remove, volumes-remove-pattern
  - postgres-drop-database, postgres-restore
  - mysql-drop-database, mysql-restore
- Remove manual read -p confirmations and conditional logic
- Simplifies code and uses Just's built-in confirmation system
- Ensures consistent confirmation behavior across all destructive operations

This provides better UX and cleaner code using Just's native features.
2025-09-27 01:44:12 +03:00
sHa
5fd0e0370c Fix group attribute syntax: use correct [group('name')] format
- Change all [group: 'name'] to [group('name')] per Just documentation
- Ensures compatibility with Just 1.21.0 and resolves 'Unknown attribute group' error
- Affects all just-commons files: container, volumes, postgres, mysql, images, registry, core
2025-09-27 01:15:35 +03:00
sHa
e2da0282ec Fix Docker template syntax in volume commands
- Escape {{.Name}} as {{{{.Name}}}} to avoid Just variable interpolation conflicts
- Fixes syntax errors in volumes-remove and volumes-remove-pattern commands
2025-09-27 00:59:25 +03:00
sHa
80cefd02dd Add group annotations for container, database, and volume management operations 2025-09-27 00:44:58 +03:00
sHa
4817ca3d35 Add universal volume management operations
- volumes-clean-all: Clean all project volumes with confirmation
- volumes-clean-postgres: Clean only PostgreSQL data volumes
- volumes-clean-servapp: Clean only ServApp data volumes
- volumes-list: List project volumes by prefix

All commands use universal runtime detection from core.just
2025-09-26 23:09:43 +03:00
sHa
f520996be9 Add database management recipes for PostgreSQL and MySQL 2025-09-26 21:57:49 +03:00
sHa
897093f744 Refactor: Add core.just and fix universal structure
- Add core.just with common utilities:
  - _detect_runtime: Detect Docker/Podman
  - _detect_compose: Detect compose command
  - env-check: Environment validation
- Fix container.just to be fully universal (remove servass-specific code)
- Move _detect_runtime from images.just to core.just
- Update container.just to use proper universal operations

Universal structure now:
- core.just: Common utilities
- container.just: Universal container operations
- registry.just: Registry authentication
- images.just: Universal image operations
2025-09-26 21:23:45 +03:00
sHa
30acfc658a Initial commit: Add universal Just recipes
- container.just: Universal container operations (start, stop, logs, shell, exec, status)
- registry.just: GitHub Container Registry authentication
- images.just: Universal image build/push/pull operations
- README.md: Documentation and usage instructions

These recipes work universally across any project with containerfiles.
2025-09-26 21:14:43 +03:00