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

Just Commons

Universal Just command recipes for container management across projects.

Overview

This repository contains reusable Just recipes for:

  • Container operations: start, stop, restart, logs, shell, exec, status
  • Registry authentication: login, logout, status checks for GitHub Container Registry
  • Image operations: build, push, pull, tag, test, info, clean

Usage

Add as a Git submodule to your project:

git submodule add git@github.com:shadoll/just-commons.git

Import in your justfile:

# Import universal commands
import 'just-commons/container.just'
import 'just-commons/registry.just'
import 'just-commons/images.just'

# Your project-specific commands
import 'just/postgres.just'
import 'just/servapp.just'

Files

  • 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

Requirements

  • Just command runner
  • Docker or Podman
  • Git

Projects Using This

Description
No description provided
Readme 222 KiB
Languages
Just 100%