Skip to content

Golang Based Version#2

Open
boykoandrii wants to merge 33 commits into
digitalspacestdio:masterfrom
zelpex:master
Open

Golang Based Version#2
boykoandrii wants to merge 33 commits into
digitalspacestdio:masterfrom
zelpex:master

Conversation

@boykoandrii

Copy link
Copy Markdown

Golang Based Version

Compare purge command with bash version
Update platform_update command
Add logo and help information
Add auto-assignment of ports between different projects
- Add VERSION file as single source of truth
- Add internal/config/version.go for version reading
- Add -v/--version flag to root command
- Improve version detection from any directory
- Update Homebrew formula to read from VERSION file
- Fixed copyComposeFiles function to check for specific docker-compose.yml file
- Previously failed when config directory existed but compose files didn't
- Now copies compose files even if SSH keys or other files exist in config dir
- Resolves 'no such file or directory' errors during install
- Add port prefix system (301xx, 302xx, etc.) like bash version
- Implement sophisticated find-free-port with conflict detection
- Add automatic hosts file management for *.docker.local domains
- Support multiple projects running simultaneously with unique ports
- Add completion message showing all URLs and credentials
- Fix application URL configuration during installation

Now supports:
- orocommerce-demo1 → nginx:30180, xhgui:30181, db:30132, etc.
- orocommerce-demo2 → nginx:30280, xhgui:30281, db:30232, etc.
- Each project gets https://PROJECT.docker.local URLs
- Shows all containers with status emojis (✅🔴⏸️🔄)
- Displays port mappings and health status
- Lists service URLs (application, development tools, infrastructure)
- Filters containers by current project name
- Shows Docker Compose command being used
- Formatted output with tabwriter for clean alignment

Usage: orodc-go status

Features:
- Project overview (name, directory)
- Container status table with SERVICE/STATUS/PORTS/HEALTH/IMAGE
- Service URLs section with all accessible endpoints
- Environment detection (loads .env-app, assigns ports)
- Health status indicators
- Clean, developer-friendly output
Add status command with comprehensive project overview
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants