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
This commit is contained in:
sha
2025-09-26 21:23:45 +03:00
parent 30acfc658a
commit 897093f744
3 changed files with 190 additions and 296 deletions
-12
View File
@@ -1,17 +1,5 @@
# Universal image operations - works for any project
# Detect container runtime
_detect_runtime:
#!/usr/bin/env bash
if command -v docker >/dev/null 2>&1 && docker info >/dev/null 2>&1; then
echo "docker"
elif command -v podman >/dev/null 2>&1; then
echo "podman"
else
echo "Error: No container runtime available (docker or podman)" >&2
exit 1
fi
# Build any project's container image
build project *args="":
#!/usr/bin/env bash