- builder/build.sh: all docker commands → podman (build, run, stop, rm, network create, images, rmi, inspect) - server/src/routes/apps.rs: docker stop/restart → podman - server/src/routes/ui.rs: docker inspect → podman - infra/Dockerfile.server: install podman instead of docker.io - infra/docker-compose.yml: rename docker-proxy → podman-proxy, mount /run/podman/podman.sock (rootful Podman socket), update DOCKER_HOST - infra/Makefile: docker compose → podman compose Podman is daemonless and rootless by default; OCI images are identical so no build-pipeline changes are needed beyond renaming the CLI. https://claude.ai/code/session_01FKCW3FDjNFj6jve4niMFXH
57 lines
1.7 KiB
Makefile
57 lines
1.7 KiB
Makefile
# HIY — podman compose helpers
|
|
# Usage: make <target>
|
|
#
|
|
# Requires: podman + podman-compose (or Docker with compose plugin as fallback)
|
|
#
|
|
# Default (make up) — auto-detects the host platform.
|
|
#
|
|
# Explicit cross-compile targets:
|
|
# up-amd64 / up-x64 / up-win — linux/amd64 (Mac Intel, Windows, Linux x86)
|
|
# up-arm64 — linux/arm64 (Mac M1/M2/M3, Pi 4/5 64-bit OS)
|
|
# up-armv7 — linux/arm/v7 (Pi 2/3/4 32-bit OS)
|
|
# up-armv6 — linux/arm/v6 (Pi Zero, Pi 1)
|
|
|
|
COMPOSE = podman compose
|
|
BUILD = $(COMPOSE) build
|
|
UP = $(COMPOSE) up --build
|
|
|
|
.PHONY: build build-amd64 build-x64 build-win build-arm64 build-armv7 build-armv6 \
|
|
up up-amd64 up-x64 up-win up-arm64 up-armv7 up-armv6 down logs
|
|
|
|
# ── Build only (no start) ─────────────────────────────────────────────────────
|
|
build:
|
|
$(BUILD)
|
|
|
|
build-amd64 build-x64 build-win:
|
|
DOCKER_DEFAULT_PLATFORM=linux/amd64 $(BUILD)
|
|
|
|
build-arm64:
|
|
DOCKER_DEFAULT_PLATFORM=linux/arm64 $(BUILD)
|
|
|
|
build-armv7:
|
|
DOCKER_DEFAULT_PLATFORM=linux/arm/v7 $(BUILD)
|
|
|
|
build-armv6:
|
|
DOCKER_DEFAULT_PLATFORM=linux/arm/v6 $(BUILD)
|
|
|
|
# ── Build + start (foreground) ────────────────────────────────────────────────
|
|
up:
|
|
$(UP)
|
|
|
|
up-amd64 up-x64 up-win:
|
|
DOCKER_DEFAULT_PLATFORM=linux/amd64 $(UP)
|
|
|
|
up-arm64:
|
|
DOCKER_DEFAULT_PLATFORM=linux/arm64 $(UP)
|
|
|
|
up-armv7:
|
|
DOCKER_DEFAULT_PLATFORM=linux/arm/v7 $(UP)
|
|
|
|
up-armv6:
|
|
DOCKER_DEFAULT_PLATFORM=linux/arm/v6 $(UP)
|
|
|
|
down:
|
|
$(COMPOSE) down
|
|
|
|
logs:
|
|
$(COMPOSE) logs -f server
|