Consolidate docker checks

This commit is contained in:
Ryan Hughes committed 2025-10-27 00:23:29 -04:00
1 parent c2d62eddd6
commit e400a65fe4
4 files changed
+32 -45

No files matched your search

+4 -15
View File
@@ -17,21 +17,11 @@ BUILD_DIR="$BUILD_ROOT/build"
# Create directories if they don't exist
mkdir -p "$BUILD_OUTPUT_DIR" "$FINAL_OUTPUT_DIR" "$SRC_DIR"
# Check for Docker
if ! command -v docker &>/dev/null; then
print_error "Docker is not installed"
exit 1
fi
# Check if Docker daemon is running
if ! docker info &>/dev/null; then
print_error "Docker daemon is not running"
print_warning "Start Docker with: sudo systemctl start docker"
exit 1
fi
print_header "Omarchy AUR Package Builder"
# Check Docker is available
check_docker
# Parse command line arguments
while [[ $# -gt 0 ]]; do
case $1 in
@@ -94,8 +84,7 @@ else
fi
# Build/update the Docker image
print_info "Building Docker image..."
docker build -t omarchy-aur-builder:latest -f "$BUILD_DIR/Dockerfile" "$BUILD_DIR"
build_docker_image "$BUILD_DIR"
print_info "Running AUR package build..."